forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flacon-1.2.0.ebuild
90 lines (75 loc) · 2 KB
/
flacon-1.2.0.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
# Ignore rudimentary uz@Latn, zh_TW translation(s)
PLOCALES="cs_CZ cs de es_MX es fr gl hu it ja_JP lt pl_PL pl pt_BR pt_PT ro_RO ru sr tr uk zh_CN"
inherit cmake-utils fdo-mime gnome2-utils l10n
DESCRIPTION="Extracts audio tracks from an audio CD image to separate tracks"
HOMEPAGE="https://flacon.github.io/"
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="aac flac mac mp3 opus qt4 qt5 replaygain tta vorbis wavpack"
DEPEND="
dev-libs/uchardet
qt4? (
dev-qt/qtcore:4
dev-qt/qtgui:4
)
qt5? (
dev-qt/linguist-tools:5
dev-qt/qtnetwork:5
dev-qt/qtwidgets:5
)
"
RDEPEND="${DEPEND}
media-sound/shntool[mac?]
aac? ( media-libs/faac )
flac? ( media-libs/flac )
mac? ( media-sound/mac )
mp3? ( media-sound/lame )
opus? ( media-sound/opus-tools )
replaygain? (
mp3? ( media-sound/mp3gain )
vorbis? ( media-sound/vorbisgain )
)
tta? ( media-sound/ttaenc )
vorbis? ( media-sound/vorbis-tools )
wavpack? ( media-sound/wavpack )
"
REQUIRED_USE="^^ ( qt4 qt5 )"
PATCHES=(
"${FILESDIR}/${P}-fix-qpainter-error.patch"
"${FILESDIR}/${P}-fix-corrupt-file-crash.patch"
"${FILESDIR}/${P}-fix-disks-or-tracks-number-change-crash.patch"
)
src_prepare() {
# Ignore rudimentary uz@Latn, zh_TW translation(s)
rm "translations/${PN}[email protected]" || die
rm "translations/${PN}_zh_TW.ts" || die
remove_locale() {
rm "translations/${PN}_${1}."{ts,desktop} || die
}
l10n_find_plocales_changes 'translations' "${PN}_" '.ts'
l10n_for_each_disabled_locale_do remove_locale
}
src_configure() {
local mycmakeargs=(
$(cmake-utils_use_use qt4 QT4)
$(cmake-utils_use_use qt5 QT5)
)
cmake-utils_src_configure
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
fdo-mime_desktop_database_update
gnome2_icon_cache_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
gnome2_icon_cache_update
}