1 |
commit: 0375c41e91444b5a8374c0ab6ccb76c5730832bc |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Oct 25 17:42:37 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 26 21:29:21 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0375c41e |
7 |
|
8 |
media-sound/flacon: verbump to 2.1.0 |
9 |
|
10 |
Convert many RDEPEND entries to optfeature, since they aren't linked and can be |
11 |
freely removed/installed to adjust flacon features post install. |
12 |
|
13 |
See also: https://github.com/flacon/flacon/issues/35 |
14 |
|
15 |
Gentoo-Bug: https://bugs.gentoo.org/596082 |
16 |
Closes: https://github.com/gentoo/gentoo/pull/2665 |
17 |
|
18 |
Package-Manager: portage-2.3.2 |
19 |
|
20 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
21 |
|
22 |
media-sound/flacon/Manifest | 1 + |
23 |
media-sound/flacon/flacon-2.1.0.ebuild | 101 +++++++++++++++++++++++++++++++++ |
24 |
2 files changed, 102 insertions(+) |
25 |
|
26 |
diff --git a/media-sound/flacon/Manifest b/media-sound/flacon/Manifest |
27 |
index 626e41a..04bc114 100644 |
28 |
--- a/media-sound/flacon/Manifest |
29 |
+++ b/media-sound/flacon/Manifest |
30 |
@@ -1 +1,2 @@ |
31 |
DIST flacon-2.0.1.tar.gz 317356 SHA256 3408304e7ab524a2e8a621ea780579e1be7b3359fefe7d37a1b88f34d6120e02 SHA512 d095880f4aba0d528fb03a860aef6cb818af7fea52642db4a42ed26a1e5bf412d6fb8bff604e148a885ac661275fcc43966b3f56fea133e6acb3ccea15fe5f2c WHIRLPOOL e1c95430473616d79396fa42a7d9c8e4e6ac92ccd32e2c74e185e164607f61faeeb59743c052a93fb140a77e3a0b40738716bbe5e2efdae5ae6a99aae693ae9a |
32 |
+DIST flacon-2.1.0.tar.gz 337008 SHA256 787b84ba6f068bb54954ec4681f21aa815fe6f25f19f43f10942c5fcec967e2d SHA512 30bd08d890274af1a087b8354f243b32daa63ef0cbfff8db44a4826f23adc2cb243aa1e4c4f8140809d3cd9b2414ff7fe60a1fba5f8b5e665e537088dd676217 WHIRLPOOL d26d253dd81e05eeb4d4c01537c79a763806324acad2e2e4ed7371ac7ac9cb9513e2382d1c4518620aecce66c94747b58dcfa77eba4af8d04ec9aad3290f0355 |
33 |
|
34 |
diff --git a/media-sound/flacon/flacon-2.1.0.ebuild b/media-sound/flacon/flacon-2.1.0.ebuild |
35 |
new file mode 100644 |
36 |
index 00000000..4ca6d1a |
37 |
--- /dev/null |
38 |
+++ b/media-sound/flacon/flacon-2.1.0.ebuild |
39 |
@@ -0,0 +1,101 @@ |
40 |
+# Copyright 1999-2016 Gentoo Foundation |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+# $Id$ |
43 |
+ |
44 |
+EAPI=6 |
45 |
+ |
46 |
+# Ignore rudimentary et, uz@Latn, zh_TW translation(s). |
47 |
+PLOCALES="cs cs_CZ de es es_MX fr gl hu it ja_JP lt nb nl pl pl_PL pt_BR pt_PT ro_RO ru sr sr@latin tr uk zh_CN" |
48 |
+ |
49 |
+inherit cmake-utils eutils gnome2-utils l10n virtualx xdg-utils |
50 |
+ |
51 |
+DESCRIPTION="Extracts audio tracks from an audio CD image to separate tracks" |
52 |
+HOMEPAGE="https://flacon.github.io/" |
53 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
54 |
+ |
55 |
+LICENSE="LGPL-2.1+" |
56 |
+SLOT="0" |
57 |
+KEYWORDS="~amd64 ~x86" |
58 |
+IUSE="qt5 test" |
59 |
+ |
60 |
+COMMON_DEPEND=" |
61 |
+ dev-libs/uchardet |
62 |
+ !qt5? ( |
63 |
+ dev-qt/qtcore:4 |
64 |
+ dev-qt/qtgui:4 |
65 |
+ ) |
66 |
+ qt5? ( |
67 |
+ dev-qt/qtcore:5 |
68 |
+ dev-qt/qtnetwork:5 |
69 |
+ dev-qt/qtwidgets:5 |
70 |
+ ) |
71 |
+" |
72 |
+RDEPEND="${COMMON_DEPEND} |
73 |
+ media-sound/shntool |
74 |
+" |
75 |
+DEPEND="${COMMON_DEPEND} |
76 |
+ virtual/pkgconfig |
77 |
+ qt5? ( dev-qt/linguist-tools:5 ) |
78 |
+ test? ( |
79 |
+ media-sound/shntool |
80 |
+ virtual/ffmpeg |
81 |
+ !qt5? ( dev-qt/qttest:4 ) |
82 |
+ qt5? ( dev-qt/qttest:5 ) |
83 |
+ ) |
84 |
+" |
85 |
+ |
86 |
+src_prepare() { |
87 |
+ cmake-utils_src_prepare |
88 |
+ |
89 |
+ # Ignore rudimentary et, uz@Latn, zh_TW translation(s). |
90 |
+ rm "translations/${PN}_uz@××××.desktop" || die |
91 |
+ rm "translations/${PN}"_{et,zh_TW}.ts || die |
92 |
+ |
93 |
+ remove_locale() { |
94 |
+ rm "translations/${PN}_${1}".{ts,desktop} || die |
95 |
+ } |
96 |
+ |
97 |
+ l10n_find_plocales_changes 'translations' "${PN}_" '.ts' |
98 |
+ l10n_for_each_disabled_locale_do remove_locale |
99 |
+} |
100 |
+ |
101 |
+src_configure() { |
102 |
+ local mycmakeargs=( |
103 |
+ -DUSE_QT4="$(usex !qt5)" |
104 |
+ -DUSE_QT5="$(usex qt5)" |
105 |
+ -DTEST_DATA_DIR="${S}/tests/data/" |
106 |
+ -DBUILD_TESTS="$(usex test 'Yes')" |
107 |
+ ) |
108 |
+ cmake-utils_src_configure |
109 |
+} |
110 |
+ |
111 |
+src_test() { |
112 |
+ virtx "${BUILD_DIR}/tests/${PN}_test" |
113 |
+} |
114 |
+ |
115 |
+pkg_preinst() { |
116 |
+ gnome2_icon_savelist |
117 |
+} |
118 |
+ |
119 |
+pkg_postinst() { |
120 |
+ elog "${PN} optionally supports formats listed below." |
121 |
+ elog "(List will be empty if all extra packages are installed.)" |
122 |
+ elog "Please install the required packages and restart ${PN}." |
123 |
+ optfeature 'FLAC input and output support' media-libs/flac |
124 |
+ optfeature 'WavPack input and output support' media-sound/wavpack |
125 |
+ optfeature 'APE input support' media-sound/mac |
126 |
+ optfeature 'TTA input support' media-sound/ttaenc |
127 |
+ optfeature 'AAC output support' media-libs/faac |
128 |
+ optfeature 'MP3 output support' media-sound/lame |
129 |
+ optfeature 'Vorbis output support' media-sound/vorbis-tools |
130 |
+ optfeature 'MP3 Replay Gain support' media-sound/mp3gain |
131 |
+ optfeature 'Vorbis Replay Gain support' media-sound/vorbisgain |
132 |
+ |
133 |
+ gnome2_icon_cache_update |
134 |
+ xdg_desktop_database_update |
135 |
+} |
136 |
+ |
137 |
+pkg_postrm() { |
138 |
+ gnome2_icon_cache_update |
139 |
+ xdg_desktop_database_update |
140 |
+} |