1 |
commit: 360d05f414d353600b5816704280ad25c2d7afa8 |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Nov 30 08:39:25 2015 +0000 |
4 |
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 30 12:07:24 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=360d05f4 |
7 |
|
8 |
media-sound/flacon: version bump to 1.2.0 wrt bug #547054, update live |
9 |
|
10 |
Inherited from Nikoli. |
11 |
List of changes in 1.2.0 compared to 1.0.0 by Nikoli: |
12 |
- add Qt5 support |
13 |
- add Opus output files support |
14 |
- properly separate DEPEND and RDEPEND |
15 |
- rename mp4 USE to aac for clarity, since mp4 is just a container while |
16 |
aac is an actual encoding format that is used |
17 |
- rename ogg USE to vorbis for clarity, since ogg is just a container |
18 |
while vorbis is an actual encoding format that is used |
19 |
- update USE descriptions to clarify which ones are used for input and |
20 |
which ones are used for output |
21 |
- remove ugly 9999 conditionals from ebuild as they make it hard to read |
22 |
- remove defunct, rudimentary translations |
23 |
- sync DESCRIPTION with upstream |
24 |
|
25 |
Sync live ebuild with 1.2.0 |
26 |
|
27 |
Gentoo-Bug: 547054 |
28 |
|
29 |
media-sound/flacon/Manifest | 1 + |
30 |
.../flacon-1.2.0-fix-corrupt-file-crash.patch | 22 ++++++ |
31 |
...0-fix-disks-or-tracks-number-change-crash.patch | 85 ++++++++++++++++++++ |
32 |
.../files/flacon-1.2.0-fix-qpainter-error.patch | 87 +++++++++++++++++++++ |
33 |
media-sound/flacon/flacon-1.2.0.ebuild | 90 ++++++++++++++++++++++ |
34 |
media-sound/flacon/flacon-9999.ebuild | 69 +++++++++++------ |
35 |
media-sound/flacon/metadata.xml | 5 +- |
36 |
7 files changed, 332 insertions(+), 27 deletions(-) |
37 |
|
38 |
diff --git a/media-sound/flacon/Manifest b/media-sound/flacon/Manifest |
39 |
index e347c20..55bdd11 100644 |
40 |
--- a/media-sound/flacon/Manifest |
41 |
+++ b/media-sound/flacon/Manifest |
42 |
@@ -2,3 +2,4 @@ DIST flacon-0.7.2.tgz 238604 SHA256 b10cfe6d7f99c3b64082edc5bf926c1759714719ef5e |
43 |
DIST flacon-0.8.0.tgz 272910 SHA256 d2889b364ea49b19c400ce8081d829e5a37149dfdcb82d55f6ab453b679d1f85 SHA512 58b2cd57266533ae3bdd524d18c279171c3092665e20332a16c421d6931492deb6d201e2b3f818ecda7e2d50fdbe7170597b12922aa9cbe07cc24dc7b6d4d0d1 WHIRLPOOL e515de827886d95c6e67c8549ef4ec3ec6700d6d7cc9f06d9e568d79274942d37e0153b88391bedfda7d5b28fc3231ceb59a7faecd0830a01468d61c1cd5197f |
44 |
DIST flacon-0.9.4.tar.gz 242933 SHA256 ef97a89897f95112d623c37f64a2c42a58f3527d66a4c322637d721ff2675e64 SHA512 3ea923fe68bcecd505f75ef25f6117209489ed57321c06bd5370bcd6c2919d709ce18d2ecbd1f6e1834f003f80f38665e522960bd7114d7c0c011296aec9e996 WHIRLPOOL efc4863b1c0f3ee1e46a60cbae3f922ca155d6d578e27f8eb4a5db6137f9b19b1ffbad0fdbda796ac1eb5c1970e7343b5c75dee7130681bad8b5946bdca20703 |
45 |
DIST flacon-1.0.0.tar.gz 249473 SHA256 60487a85e828a08afbaf2fe5f7228a94e1f4094606456f73d59ae351f75e1284 SHA512 2336ec0b0bc7cdaa3792f64adb88a7fd62e7b6f4c84b6cc465e6f6546ca5cae21929de87aa3ab4c7b12754d3480cc66f412f25969707765798ecbb8aea78b7db WHIRLPOOL 50c6b2737de9d82616377048a8fee0b0feec97ae337562d53ecaa2476b417d98327c481ea162d8970615becc6b75754e8cf195fd56285b34414df1d85ba37013 |
46 |
+DIST flacon-1.2.0.tar.gz 283187 SHA256 2ebc83d733ea6d50f2bd4ad8c20c65368be5eaf351e0195c9b4d47a54957b8f8 SHA512 4cc64467350c941eed16299a562ddc3c6c83d785dddffe6825e3df50a988ce9494517b3ea862d90398110564ec3f828ef6760a6c02d24163f9247930330a3b6d WHIRLPOOL 918926069daaf5e9a16711d641c873a70d1dc97f04b05387f649f1d1d6e1d652f3e676f1100d5fe0d70d03fa9edb1d4e64fc67b489f5c5e74d21108a437f87ea |
47 |
|
48 |
diff --git a/media-sound/flacon/files/flacon-1.2.0-fix-corrupt-file-crash.patch b/media-sound/flacon/files/flacon-1.2.0-fix-corrupt-file-crash.patch |
49 |
new file mode 100644 |
50 |
index 0000000..11a4f13 |
51 |
--- /dev/null |
52 |
+++ b/media-sound/flacon/files/flacon-1.2.0-fix-corrupt-file-crash.patch |
53 |
@@ -0,0 +1,22 @@ |
54 |
+From 01bf112e4bfd0718829b7dc6f83de6fbceb3ac0c Mon Sep 17 00:00:00 2001 |
55 |
+From: "sokoloff (Alexander)" <sokoloff.a@×××××.com> |
56 |
+Date: Fri, 18 Sep 2015 20:15:16 +0300 |
57 |
+Subject: [PATCH] Fix crash if audio file is corrupt |
58 |
+ |
59 |
+--- |
60 |
+ disk.cpp | 2 +- |
61 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
62 |
+ |
63 |
+diff --git a/disk.cpp b/disk.cpp |
64 |
+index 99c7dff..23d7ab2 100644 |
65 |
+--- a/disk.cpp |
66 |
++++ b/disk.cpp |
67 |
+@@ -577,7 +577,7 @@ bool Disk::replaceAudioFile(const QString &fileName, bool force) |
68 |
+ audio = 0; |
69 |
+ } |
70 |
+ |
71 |
+- if (force || audio->isValid()) |
72 |
++ if (force || audio) |
73 |
+ { |
74 |
+ delete mAudioFile; |
75 |
+ mAudioFile = audio; |
76 |
|
77 |
diff --git a/media-sound/flacon/files/flacon-1.2.0-fix-disks-or-tracks-number-change-crash.patch b/media-sound/flacon/files/flacon-1.2.0-fix-disks-or-tracks-number-change-crash.patch |
78 |
new file mode 100644 |
79 |
index 0000000..1e9a336 |
80 |
--- /dev/null |
81 |
+++ b/media-sound/flacon/files/flacon-1.2.0-fix-disks-or-tracks-number-change-crash.patch |
82 |
@@ -0,0 +1,85 @@ |
83 |
+From bf2dc4aa42e91bda2d41e129f7fe6597b9f86673 Mon Sep 17 00:00:00 2001 |
84 |
+From: "sokoloff (Alexander)" <sokoloff.a@×××××.com> |
85 |
+Date: Sun, 27 Sep 2015 09:24:35 +0300 |
86 |
+Subject: [PATCH] Fix: the program sometimes crash when you change the number |
87 |
+ of disks or tracks |
88 |
+ |
89 |
+--- |
90 |
+ disk.cpp | 3 +++ |
91 |
+ project.cpp | 9 +++++---- |
92 |
+ tests/testflacon.cpp | 6 +++--- |
93 |
+ 3 files changed, 11 insertions(+), 7 deletions(-) |
94 |
+ |
95 |
+diff --git a/disk.cpp b/disk.cpp |
96 |
+index 969cb71..3b624de 100644 |
97 |
+--- a/disk.cpp |
98 |
++++ b/disk.cpp |
99 |
+@@ -433,6 +433,9 @@ void Disk::loadFromCue(const CueTagSet &cueTags, bool activate) |
100 |
+ for (int i=mTracks.count(); i<mCount; ++i) |
101 |
+ mTracks.append(new Track(this, i)); |
102 |
+ |
103 |
++ while (mTracks.count() > mCount) |
104 |
++ mTracks.takeLast()->deleteLater(); |
105 |
++ |
106 |
+ for (int t=0; t<cueTags.tracksCount(); ++t) |
107 |
+ { |
108 |
+ for (int idx=0; idx<100; ++idx) |
109 |
+diff --git a/project.cpp b/project.cpp |
110 |
+index 00486e4..38710ae 100644 |
111 |
+--- a/project.cpp |
112 |
++++ b/project.cpp |
113 |
+@@ -169,7 +169,8 @@ void Project::removeDisk(const QList<Disk*> *disks) |
114 |
+ Disk *disk = disks->at(i); |
115 |
+ emit beforeRemoveDisk(disk); |
116 |
+ if (mDisks.removeAll(disk)) |
117 |
+- delete disk; |
118 |
++ disk->deleteLater(); |
119 |
++ |
120 |
+ emit afterRemoveDisk(); |
121 |
+ } |
122 |
+ |
123 |
+@@ -274,10 +275,10 @@ DiskList Project::addCueFile(const QString &fileName, bool showErrors) |
124 |
+ } |
125 |
+ else |
126 |
+ { |
127 |
+- foreach(Disk *d, res) |
128 |
++ foreach(Disk *disk, res) |
129 |
+ { |
130 |
+- mDisks.removeAll(d); |
131 |
+- delete d; |
132 |
++ mDisks.removeAll(disk); |
133 |
++ disk->deleteLater(); |
134 |
+ } |
135 |
+ |
136 |
+ emit layoutChanged(); |
137 |
+diff --git a/tests/testflacon.cpp b/tests/testflacon.cpp |
138 |
+index bcd7c46..571b425 100644 |
139 |
+--- a/tests/testflacon.cpp |
140 |
++++ b/tests/testflacon.cpp |
141 |
+@@ -830,7 +830,7 @@ void TestFlacon::testTrackResultFileName() |
142 |
+ expected); |
143 |
+ QFAIL(msg.toLocal8Bit()); |
144 |
+ } |
145 |
+- delete disk; |
146 |
++ disk->deleteLater(); |
147 |
+ } |
148 |
+ |
149 |
+ |
150 |
+@@ -983,7 +983,7 @@ void TestFlacon::testTrackResultFilePath() |
151 |
+ QFAIL(msg.toLocal8Bit()); |
152 |
+ } |
153 |
+ //QCOMPARE(result, expected); |
154 |
+- delete disk; |
155 |
++ disk->deleteLater(); |
156 |
+ } |
157 |
+ |
158 |
+ |
159 |
+@@ -1117,7 +1117,7 @@ void TestFlacon::testTrackSetCodepages() |
160 |
+ QFAIL((msg + "\n " + cmd).toLocal8Bit()); |
161 |
+ } |
162 |
+ |
163 |
+- delete disk; |
164 |
++ disk->deleteLater(); |
165 |
+ } |
166 |
+ |
167 |
+ |
168 |
|
169 |
diff --git a/media-sound/flacon/files/flacon-1.2.0-fix-qpainter-error.patch b/media-sound/flacon/files/flacon-1.2.0-fix-qpainter-error.patch |
170 |
new file mode 100644 |
171 |
index 0000000..cc73987 |
172 |
--- /dev/null |
173 |
+++ b/media-sound/flacon/files/flacon-1.2.0-fix-qpainter-error.patch |
174 |
@@ -0,0 +1,87 @@ |
175 |
+From 8ffd4d83e19e8f1e28841f37248e99fae0796b10 Mon Sep 17 00:00:00 2001 |
176 |
+From: "sokoloff (Alexander)" <sokoloff.a@×××××.com> |
177 |
+Date: Fri, 18 Sep 2015 20:14:31 +0300 |
178 |
+Subject: [PATCH] Fix QPainter::font: Painter not active error |
179 |
+ |
180 |
+--- |
181 |
+ gui/trackviewdelegate.cpp | 20 +++++++++----------- |
182 |
+ gui/trackviewdelegate.h | 4 ++-- |
183 |
+ 2 files changed, 11 insertions(+), 13 deletions(-) |
184 |
+ |
185 |
+diff --git a/gui/trackviewdelegate.cpp b/gui/trackviewdelegate.cpp |
186 |
+index ab05833..02b6137 100644 |
187 |
+--- a/gui/trackviewdelegate.cpp |
188 |
++++ b/gui/trackviewdelegate.cpp |
189 |
+@@ -261,8 +261,8 @@ void TrackViewDelegate::paintDisk(QPainter *painter, const QStyleOptionViewItem |
190 |
+ //cache = self.cache(index) |
191 |
+ painter->save(); |
192 |
+ painter->setClipRect(option.rect); |
193 |
+- QFont titleFont = this->titleFont(painter); |
194 |
+- QFont filesFont = this->filesFont(painter); |
195 |
++ QFont titleFont = this->titleFont(painter->font()); |
196 |
++ QFont filesFont = this->filesFont(painter->font()); |
197 |
+ |
198 |
+ |
199 |
+ int topPadding = index.row() ? TOP_PADDING : 0; |
200 |
+@@ -408,19 +408,17 @@ QSize TrackViewDelegate::sizeHint(const QStyleOptionViewItem &option, const QMod |
201 |
+ |
202 |
+ if (!index.parent().isValid()) |
203 |
+ { |
204 |
+- |
205 |
+ if (!mDiskHeightHint) |
206 |
+ { |
207 |
+ int h = 8; |
208 |
+- QPainter painter(mTrackView); |
209 |
+- QFont titleFont = this->titleFont(&painter); |
210 |
+- QFont filesFont = this->filesFont(&painter); |
211 |
++ |
212 |
++ QFont titleFont = this->titleFont(option.font); |
213 |
++ QFont filesFont = this->filesFont(option.font); |
214 |
+ h += QFontMetrics(titleFont).height(); |
215 |
+ h += QFontMetrics(filesFont).height() * 2; |
216 |
+ mDiskHeightHint = qMax(IMG_HEIGHT, h) + 2 * MARGIN + BOTTOM_PADDING; //For Line |
217 |
+ } |
218 |
+ |
219 |
+- |
220 |
+ res.rheight() = mDiskHeightHint; |
221 |
+ if (index.row()) |
222 |
+ res.rheight() += TOP_PADDING; |
223 |
+@@ -533,9 +531,9 @@ void TrackViewDelegate::downloadingFinished(DataProvider *provider) |
224 |
+ /************************************************ |
225 |
+ |
226 |
+ ************************************************/ |
227 |
+-QFont TrackViewDelegate::titleFont(const QPainter *painter) const |
228 |
++QFont TrackViewDelegate::titleFont(const QFont &font) const |
229 |
+ { |
230 |
+- QFont res = painter->font(); |
231 |
++ QFont res = font; |
232 |
+ res.setPointSize(res.pointSize() + 1); |
233 |
+ res.setBold(true); |
234 |
+ return res; |
235 |
+@@ -545,9 +543,9 @@ QFont TrackViewDelegate::titleFont(const QPainter *painter) const |
236 |
+ /************************************************ |
237 |
+ |
238 |
+ ************************************************/ |
239 |
+-QFont TrackViewDelegate::filesFont(const QPainter *painter) const |
240 |
++QFont TrackViewDelegate::filesFont(const QFont &font) const |
241 |
+ { |
242 |
+- QFont res = painter->font(); |
243 |
++ QFont res = font; |
244 |
+ return res; |
245 |
+ } |
246 |
+ |
247 |
+diff --git a/gui/trackviewdelegate.h b/gui/trackviewdelegate.h |
248 |
+index 3a6aa09..492e514 100644 |
249 |
+--- a/gui/trackviewdelegate.h |
250 |
++++ b/gui/trackviewdelegate.h |
251 |
+@@ -76,8 +76,8 @@ private slots: |
252 |
+ QMovie mDownloadMovie; |
253 |
+ mutable int mDiskHeightHint; |
254 |
+ |
255 |
+- QFont titleFont(const QPainter *painter) const; |
256 |
+- QFont filesFont(const QPainter *painter) const; |
257 |
++ QFont titleFont(const QFont &font) const; |
258 |
++ QFont filesFont(const QFont &font) const; |
259 |
+ void paintTrack(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index, const Track *track) const; |
260 |
+ void paintDisk(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index, const Disk *disk) const; |
261 |
+ QRect drawLabel(const QString &text, QRect rect, QPainter *painter) const; |
262 |
|
263 |
diff --git a/media-sound/flacon/flacon-1.2.0.ebuild b/media-sound/flacon/flacon-1.2.0.ebuild |
264 |
new file mode 100644 |
265 |
index 0000000..64599b7 |
266 |
--- /dev/null |
267 |
+++ b/media-sound/flacon/flacon-1.2.0.ebuild |
268 |
@@ -0,0 +1,90 @@ |
269 |
+# Copyright 1999-2015 Gentoo Foundation |
270 |
+# Distributed under the terms of the GNU General Public License v2 |
271 |
+# $Id$ |
272 |
+ |
273 |
+EAPI=5 |
274 |
+ |
275 |
+# Ignore rudimentary uz@Latn, zh_TW translation(s) |
276 |
+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" |
277 |
+ |
278 |
+inherit cmake-utils fdo-mime gnome2-utils l10n |
279 |
+ |
280 |
+DESCRIPTION="Extracts audio tracks from an audio CD image to separate tracks" |
281 |
+HOMEPAGE="https://flacon.github.io/" |
282 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
283 |
+ |
284 |
+LICENSE="LGPL-2.1" |
285 |
+SLOT="0" |
286 |
+KEYWORDS="~amd64 ~x86" |
287 |
+IUSE="aac flac mac mp3 opus qt4 qt5 replaygain tta vorbis wavpack" |
288 |
+ |
289 |
+DEPEND=" |
290 |
+ dev-libs/uchardet |
291 |
+ qt4? ( |
292 |
+ dev-qt/qtcore:4 |
293 |
+ dev-qt/qtgui:4 |
294 |
+ ) |
295 |
+ qt5? ( |
296 |
+ dev-qt/linguist-tools:5 |
297 |
+ dev-qt/qtnetwork:5 |
298 |
+ dev-qt/qtwidgets:5 |
299 |
+ ) |
300 |
+" |
301 |
+RDEPEND="${DEPEND} |
302 |
+ media-sound/shntool[mac?] |
303 |
+ aac? ( media-libs/faac ) |
304 |
+ flac? ( media-libs/flac ) |
305 |
+ mac? ( media-sound/mac ) |
306 |
+ mp3? ( media-sound/lame ) |
307 |
+ opus? ( media-sound/opus-tools ) |
308 |
+ replaygain? ( |
309 |
+ mp3? ( media-sound/mp3gain ) |
310 |
+ vorbis? ( media-sound/vorbisgain ) |
311 |
+ ) |
312 |
+ tta? ( media-sound/ttaenc ) |
313 |
+ vorbis? ( media-sound/vorbis-tools ) |
314 |
+ wavpack? ( media-sound/wavpack ) |
315 |
+" |
316 |
+ |
317 |
+REQUIRED_USE="^^ ( qt4 qt5 )" |
318 |
+ |
319 |
+PATCHES=( |
320 |
+ "${FILESDIR}/${P}-fix-qpainter-error.patch" |
321 |
+ "${FILESDIR}/${P}-fix-corrupt-file-crash.patch" |
322 |
+ "${FILESDIR}/${P}-fix-disks-or-tracks-number-change-crash.patch" |
323 |
+) |
324 |
+ |
325 |
+src_prepare() { |
326 |
+ # Ignore rudimentary uz@Latn, zh_TW translation(s) |
327 |
+ rm "translations/${PN}_uz@××××.desktop" || die |
328 |
+ rm "translations/${PN}_zh_TW.ts" || die |
329 |
+ |
330 |
+ remove_locale() { |
331 |
+ rm "translations/${PN}_${1}."{ts,desktop} || die |
332 |
+ } |
333 |
+ |
334 |
+ l10n_find_plocales_changes 'translations' "${PN}_" '.ts' |
335 |
+ l10n_for_each_disabled_locale_do remove_locale |
336 |
+} |
337 |
+ |
338 |
+src_configure() { |
339 |
+ local mycmakeargs=( |
340 |
+ $(cmake-utils_use_use qt4 QT4) |
341 |
+ $(cmake-utils_use_use qt5 QT5) |
342 |
+ ) |
343 |
+ cmake-utils_src_configure |
344 |
+} |
345 |
+ |
346 |
+pkg_preinst() { |
347 |
+ gnome2_icon_savelist |
348 |
+} |
349 |
+ |
350 |
+pkg_postinst() { |
351 |
+ fdo-mime_desktop_database_update |
352 |
+ gnome2_icon_cache_update |
353 |
+} |
354 |
+ |
355 |
+pkg_postrm() { |
356 |
+ fdo-mime_desktop_database_update |
357 |
+ gnome2_icon_cache_update |
358 |
+} |
359 |
|
360 |
diff --git a/media-sound/flacon/flacon-9999.ebuild b/media-sound/flacon/flacon-9999.ebuild |
361 |
index e491e87..82dbb725 100644 |
362 |
--- a/media-sound/flacon/flacon-9999.ebuild |
363 |
+++ b/media-sound/flacon/flacon-9999.ebuild |
364 |
@@ -1,53 +1,72 @@ |
365 |
-# Copyright 1999-2014 Gentoo Foundation |
366 |
+# Copyright 1999-2015 Gentoo Foundation |
367 |
# Distributed under the terms of the GNU General Public License v2 |
368 |
# $Id$ |
369 |
|
370 |
-EAPI="5" |
371 |
+EAPI=5 |
372 |
|
373 |
-PLOCALES="cs_CZ cs de es_MX es fr gl hu it pl_PL pl pt_BR pt_PT ro_RO ru si_LK uk zh_CN zh_TW" |
374 |
+# Ignore rudimentary et, uz@Latn, zh_TW translation(s) |
375 |
+PLOCALES="cs_CZ cs de es_MX es fr gl hu it ja_JP lt nb pl_PL pl pt_BR pt_PT ro_RO ru sr tr uk zh_CN" |
376 |
|
377 |
-EGIT_REPO_URI="https://github.com/flacon/flacon.git" |
378 |
+inherit cmake-utils fdo-mime gnome2-utils l10n git-r3 |
379 |
|
380 |
-inherit cmake-utils l10n fdo-mime gnome2-utils |
381 |
-[[ ${PV} == *9999* ]] && inherit git-r3 |
382 |
- |
383 |
-DESCRIPTION="Extracts audio tracks from audio CD image to separate tracks" |
384 |
+DESCRIPTION="Extracts audio tracks from an audio CD image to separate tracks" |
385 |
HOMEPAGE="https://flacon.github.io/" |
386 |
-[[ ${PV} == *9999* ]] || \ |
387 |
-SRC_URI="https://github.com/flacon/flacon/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
388 |
+EGIT_REPO_URI="git://github.com/${PN}/${PN}.git" |
389 |
|
390 |
LICENSE="LGPL-2.1" |
391 |
SLOT="0" |
392 |
-[[ ${PV} == *9999* ]] || \ |
393 |
-KEYWORDS="~amd64 ~x86" |
394 |
-IUSE="flac mac mp3 mp4 ogg replaygain tta wavpack" |
395 |
+KEYWORDS="" |
396 |
+IUSE="aac flac mac mp3 opus qt4 qt5 replaygain tta vorbis wavpack" |
397 |
|
398 |
-RDEPEND=" |
399 |
- dev-qt/qtcore:4 |
400 |
- dev-qt/qtgui:4 |
401 |
+DEPEND=" |
402 |
dev-libs/uchardet |
403 |
+ qt4? ( |
404 |
+ dev-qt/qtcore:4 |
405 |
+ dev-qt/qtgui:4 |
406 |
+ ) |
407 |
+ qt5? ( |
408 |
+ dev-qt/linguist-tools:5 |
409 |
+ dev-qt/qtnetwork:5 |
410 |
+ dev-qt/qtwidgets:5 |
411 |
+ ) |
412 |
+" |
413 |
+RDEPEND="${DEPEND} |
414 |
media-sound/shntool[mac?] |
415 |
+ aac? ( media-libs/faac ) |
416 |
flac? ( media-libs/flac ) |
417 |
mac? ( media-sound/mac ) |
418 |
mp3? ( media-sound/lame ) |
419 |
- mp4? ( media-libs/faac ) |
420 |
- ogg? ( media-sound/vorbis-tools ) |
421 |
- tta? ( media-sound/ttaenc ) |
422 |
- wavpack? ( media-sound/wavpack ) |
423 |
+ opus? ( media-sound/opus-tools ) |
424 |
replaygain? ( |
425 |
mp3? ( media-sound/mp3gain ) |
426 |
- ogg? ( media-sound/vorbisgain ) |
427 |
+ vorbis? ( media-sound/vorbisgain ) |
428 |
) |
429 |
+ tta? ( media-sound/ttaenc ) |
430 |
+ vorbis? ( media-sound/vorbis-tools ) |
431 |
+ wavpack? ( media-sound/wavpack ) |
432 |
" |
433 |
-DEPEND="${RDEPEND}" |
434 |
+ |
435 |
+REQUIRED_USE="^^ ( qt4 qt5 )" |
436 |
|
437 |
src_prepare() { |
438 |
- my_rm_loc() { |
439 |
+ # Ignore rudimentary et, uz@Latn, zh_TW translation(s) |
440 |
+ rm "translations/${PN}_uz@××××.desktop" || die |
441 |
+ rm "translations/${PN}"_{et,zh_TW}.ts || die |
442 |
+ |
443 |
+ remove_locale() { |
444 |
rm "translations/${PN}_${1}."{ts,desktop} || die |
445 |
} |
446 |
|
447 |
- l10n_find_plocales_changes "translations" "${PN}_" '.ts' |
448 |
- l10n_for_each_disabled_locale_do my_rm_loc |
449 |
+ l10n_find_plocales_changes 'translations' "${PN}_" '.ts' |
450 |
+ l10n_for_each_disabled_locale_do remove_locale |
451 |
+} |
452 |
+ |
453 |
+src_configure() { |
454 |
+ local mycmakeargs=( |
455 |
+ $(cmake-utils_use_use qt4 QT4) |
456 |
+ $(cmake-utils_use_use qt5 QT5) |
457 |
+ ) |
458 |
+ cmake-utils_src_configure |
459 |
} |
460 |
|
461 |
pkg_preinst() { |
462 |
|
463 |
diff --git a/media-sound/flacon/metadata.xml b/media-sound/flacon/metadata.xml |
464 |
index ecc017d..d35aac6 100644 |
465 |
--- a/media-sound/flacon/metadata.xml |
466 |
+++ b/media-sound/flacon/metadata.xml |
467 |
@@ -16,9 +16,10 @@ |
468 |
<description>Proxied maintainer; set to assignee in all bugs</description> |
469 |
</maintainer> |
470 |
<use> |
471 |
- <flag name="mac">Add support for Monkey's Audio files</flag> |
472 |
+ <flag name="mac">Add support for Monkey's Audio input files</flag> |
473 |
+ <flag name="opus">Add support for Opus output files</flag> |
474 |
<flag name="replaygain">Support for Replay Gain metadata, for relative volume adjustment</flag> |
475 |
- <flag name="tta">Add support for True Audio encoding</flag> |
476 |
+ <flag name="tta">Add support for True Audio input files</flag> |
477 |
</use> |
478 |
<upstream> |
479 |
<remote-id type="github">flacon/flacon</remote-id> |