* [gentoo-commits] repo/gentoo:master commit in: media-sound/flacon/files/, media-sound/flacon/
@ 2015-12-01 7:02 Ian Delaney
0 siblings, 0 replies; 4+ messages in thread
From: Ian Delaney @ 2015-12-01 7:02 UTC (permalink / raw
To: gentoo-commits
commit: 360d05f414d353600b5816704280ad25c2d7afa8
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com>
AuthorDate: Mon Nov 30 08:39:25 2015 +0000
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Mon Nov 30 12:07:24 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=360d05f4
media-sound/flacon: version bump to 1.2.0 wrt bug #547054, update live
Inherited from Nikoli.
List of changes in 1.2.0 compared to 1.0.0 by Nikoli:
- add Qt5 support
- add Opus output files support
- properly separate DEPEND and RDEPEND
- rename mp4 USE to aac for clarity, since mp4 is just a container while
aac is an actual encoding format that is used
- rename ogg USE to vorbis for clarity, since ogg is just a container
while vorbis is an actual encoding format that is used
- update USE descriptions to clarify which ones are used for input and
which ones are used for output
- remove ugly 9999 conditionals from ebuild as they make it hard to read
- remove defunct, rudimentary translations
- sync DESCRIPTION with upstream
Sync live ebuild with 1.2.0
Gentoo-Bug: 547054
media-sound/flacon/Manifest | 1 +
.../flacon-1.2.0-fix-corrupt-file-crash.patch | 22 ++++++
...0-fix-disks-or-tracks-number-change-crash.patch | 85 ++++++++++++++++++++
.../files/flacon-1.2.0-fix-qpainter-error.patch | 87 +++++++++++++++++++++
media-sound/flacon/flacon-1.2.0.ebuild | 90 ++++++++++++++++++++++
media-sound/flacon/flacon-9999.ebuild | 69 +++++++++++------
media-sound/flacon/metadata.xml | 5 +-
7 files changed, 332 insertions(+), 27 deletions(-)
diff --git a/media-sound/flacon/Manifest b/media-sound/flacon/Manifest
index e347c20..55bdd11 100644
--- a/media-sound/flacon/Manifest
+++ b/media-sound/flacon/Manifest
@@ -2,3 +2,4 @@ DIST flacon-0.7.2.tgz 238604 SHA256 b10cfe6d7f99c3b64082edc5bf926c1759714719ef5e
DIST flacon-0.8.0.tgz 272910 SHA256 d2889b364ea49b19c400ce8081d829e5a37149dfdcb82d55f6ab453b679d1f85 SHA512 58b2cd57266533ae3bdd524d18c279171c3092665e20332a16c421d6931492deb6d201e2b3f818ecda7e2d50fdbe7170597b12922aa9cbe07cc24dc7b6d4d0d1 WHIRLPOOL e515de827886d95c6e67c8549ef4ec3ec6700d6d7cc9f06d9e568d79274942d37e0153b88391bedfda7d5b28fc3231ceb59a7faecd0830a01468d61c1cd5197f
DIST flacon-0.9.4.tar.gz 242933 SHA256 ef97a89897f95112d623c37f64a2c42a58f3527d66a4c322637d721ff2675e64 SHA512 3ea923fe68bcecd505f75ef25f6117209489ed57321c06bd5370bcd6c2919d709ce18d2ecbd1f6e1834f003f80f38665e522960bd7114d7c0c011296aec9e996 WHIRLPOOL efc4863b1c0f3ee1e46a60cbae3f922ca155d6d578e27f8eb4a5db6137f9b19b1ffbad0fdbda796ac1eb5c1970e7343b5c75dee7130681bad8b5946bdca20703
DIST flacon-1.0.0.tar.gz 249473 SHA256 60487a85e828a08afbaf2fe5f7228a94e1f4094606456f73d59ae351f75e1284 SHA512 2336ec0b0bc7cdaa3792f64adb88a7fd62e7b6f4c84b6cc465e6f6546ca5cae21929de87aa3ab4c7b12754d3480cc66f412f25969707765798ecbb8aea78b7db WHIRLPOOL 50c6b2737de9d82616377048a8fee0b0feec97ae337562d53ecaa2476b417d98327c481ea162d8970615becc6b75754e8cf195fd56285b34414df1d85ba37013
+DIST flacon-1.2.0.tar.gz 283187 SHA256 2ebc83d733ea6d50f2bd4ad8c20c65368be5eaf351e0195c9b4d47a54957b8f8 SHA512 4cc64467350c941eed16299a562ddc3c6c83d785dddffe6825e3df50a988ce9494517b3ea862d90398110564ec3f828ef6760a6c02d24163f9247930330a3b6d WHIRLPOOL 918926069daaf5e9a16711d641c873a70d1dc97f04b05387f649f1d1d6e1d652f3e676f1100d5fe0d70d03fa9edb1d4e64fc67b489f5c5e74d21108a437f87ea
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
new file mode 100644
index 0000000..11a4f13
--- /dev/null
+++ b/media-sound/flacon/files/flacon-1.2.0-fix-corrupt-file-crash.patch
@@ -0,0 +1,22 @@
+From 01bf112e4bfd0718829b7dc6f83de6fbceb3ac0c Mon Sep 17 00:00:00 2001
+From: "sokoloff (Alexander)" <sokoloff.a@gmail.com>
+Date: Fri, 18 Sep 2015 20:15:16 +0300
+Subject: [PATCH] Fix crash if audio file is corrupt
+
+---
+ disk.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/disk.cpp b/disk.cpp
+index 99c7dff..23d7ab2 100644
+--- a/disk.cpp
++++ b/disk.cpp
+@@ -577,7 +577,7 @@ bool Disk::replaceAudioFile(const QString &fileName, bool force)
+ audio = 0;
+ }
+
+- if (force || audio->isValid())
++ if (force || audio)
+ {
+ delete mAudioFile;
+ mAudioFile = audio;
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
new file mode 100644
index 0000000..1e9a336
--- /dev/null
+++ b/media-sound/flacon/files/flacon-1.2.0-fix-disks-or-tracks-number-change-crash.patch
@@ -0,0 +1,85 @@
+From bf2dc4aa42e91bda2d41e129f7fe6597b9f86673 Mon Sep 17 00:00:00 2001
+From: "sokoloff (Alexander)" <sokoloff.a@gmail.com>
+Date: Sun, 27 Sep 2015 09:24:35 +0300
+Subject: [PATCH] Fix: the program sometimes crash when you change the number
+ of disks or tracks
+
+---
+ disk.cpp | 3 +++
+ project.cpp | 9 +++++----
+ tests/testflacon.cpp | 6 +++---
+ 3 files changed, 11 insertions(+), 7 deletions(-)
+
+diff --git a/disk.cpp b/disk.cpp
+index 969cb71..3b624de 100644
+--- a/disk.cpp
++++ b/disk.cpp
+@@ -433,6 +433,9 @@ void Disk::loadFromCue(const CueTagSet &cueTags, bool activate)
+ for (int i=mTracks.count(); i<mCount; ++i)
+ mTracks.append(new Track(this, i));
+
++ while (mTracks.count() > mCount)
++ mTracks.takeLast()->deleteLater();
++
+ for (int t=0; t<cueTags.tracksCount(); ++t)
+ {
+ for (int idx=0; idx<100; ++idx)
+diff --git a/project.cpp b/project.cpp
+index 00486e4..38710ae 100644
+--- a/project.cpp
++++ b/project.cpp
+@@ -169,7 +169,8 @@ void Project::removeDisk(const QList<Disk*> *disks)
+ Disk *disk = disks->at(i);
+ emit beforeRemoveDisk(disk);
+ if (mDisks.removeAll(disk))
+- delete disk;
++ disk->deleteLater();
++
+ emit afterRemoveDisk();
+ }
+
+@@ -274,10 +275,10 @@ DiskList Project::addCueFile(const QString &fileName, bool showErrors)
+ }
+ else
+ {
+- foreach(Disk *d, res)
++ foreach(Disk *disk, res)
+ {
+- mDisks.removeAll(d);
+- delete d;
++ mDisks.removeAll(disk);
++ disk->deleteLater();
+ }
+
+ emit layoutChanged();
+diff --git a/tests/testflacon.cpp b/tests/testflacon.cpp
+index bcd7c46..571b425 100644
+--- a/tests/testflacon.cpp
++++ b/tests/testflacon.cpp
+@@ -830,7 +830,7 @@ void TestFlacon::testTrackResultFileName()
+ expected);
+ QFAIL(msg.toLocal8Bit());
+ }
+- delete disk;
++ disk->deleteLater();
+ }
+
+
+@@ -983,7 +983,7 @@ void TestFlacon::testTrackResultFilePath()
+ QFAIL(msg.toLocal8Bit());
+ }
+ //QCOMPARE(result, expected);
+- delete disk;
++ disk->deleteLater();
+ }
+
+
+@@ -1117,7 +1117,7 @@ void TestFlacon::testTrackSetCodepages()
+ QFAIL((msg + "\n " + cmd).toLocal8Bit());
+ }
+
+- delete disk;
++ disk->deleteLater();
+ }
+
+
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
new file mode 100644
index 0000000..cc73987
--- /dev/null
+++ b/media-sound/flacon/files/flacon-1.2.0-fix-qpainter-error.patch
@@ -0,0 +1,87 @@
+From 8ffd4d83e19e8f1e28841f37248e99fae0796b10 Mon Sep 17 00:00:00 2001
+From: "sokoloff (Alexander)" <sokoloff.a@gmail.com>
+Date: Fri, 18 Sep 2015 20:14:31 +0300
+Subject: [PATCH] Fix QPainter::font: Painter not active error
+
+---
+ gui/trackviewdelegate.cpp | 20 +++++++++-----------
+ gui/trackviewdelegate.h | 4 ++--
+ 2 files changed, 11 insertions(+), 13 deletions(-)
+
+diff --git a/gui/trackviewdelegate.cpp b/gui/trackviewdelegate.cpp
+index ab05833..02b6137 100644
+--- a/gui/trackviewdelegate.cpp
++++ b/gui/trackviewdelegate.cpp
+@@ -261,8 +261,8 @@ void TrackViewDelegate::paintDisk(QPainter *painter, const QStyleOptionViewItem
+ //cache = self.cache(index)
+ painter->save();
+ painter->setClipRect(option.rect);
+- QFont titleFont = this->titleFont(painter);
+- QFont filesFont = this->filesFont(painter);
++ QFont titleFont = this->titleFont(painter->font());
++ QFont filesFont = this->filesFont(painter->font());
+
+
+ int topPadding = index.row() ? TOP_PADDING : 0;
+@@ -408,19 +408,17 @@ QSize TrackViewDelegate::sizeHint(const QStyleOptionViewItem &option, const QMod
+
+ if (!index.parent().isValid())
+ {
+-
+ if (!mDiskHeightHint)
+ {
+ int h = 8;
+- QPainter painter(mTrackView);
+- QFont titleFont = this->titleFont(&painter);
+- QFont filesFont = this->filesFont(&painter);
++
++ QFont titleFont = this->titleFont(option.font);
++ QFont filesFont = this->filesFont(option.font);
+ h += QFontMetrics(titleFont).height();
+ h += QFontMetrics(filesFont).height() * 2;
+ mDiskHeightHint = qMax(IMG_HEIGHT, h) + 2 * MARGIN + BOTTOM_PADDING; //For Line
+ }
+
+-
+ res.rheight() = mDiskHeightHint;
+ if (index.row())
+ res.rheight() += TOP_PADDING;
+@@ -533,9 +531,9 @@ void TrackViewDelegate::downloadingFinished(DataProvider *provider)
+ /************************************************
+
+ ************************************************/
+-QFont TrackViewDelegate::titleFont(const QPainter *painter) const
++QFont TrackViewDelegate::titleFont(const QFont &font) const
+ {
+- QFont res = painter->font();
++ QFont res = font;
+ res.setPointSize(res.pointSize() + 1);
+ res.setBold(true);
+ return res;
+@@ -545,9 +543,9 @@ QFont TrackViewDelegate::titleFont(const QPainter *painter) const
+ /************************************************
+
+ ************************************************/
+-QFont TrackViewDelegate::filesFont(const QPainter *painter) const
++QFont TrackViewDelegate::filesFont(const QFont &font) const
+ {
+- QFont res = painter->font();
++ QFont res = font;
+ return res;
+ }
+
+diff --git a/gui/trackviewdelegate.h b/gui/trackviewdelegate.h
+index 3a6aa09..492e514 100644
+--- a/gui/trackviewdelegate.h
++++ b/gui/trackviewdelegate.h
+@@ -76,8 +76,8 @@ private slots:
+ QMovie mDownloadMovie;
+ mutable int mDiskHeightHint;
+
+- QFont titleFont(const QPainter *painter) const;
+- QFont filesFont(const QPainter *painter) const;
++ QFont titleFont(const QFont &font) const;
++ QFont filesFont(const QFont &font) const;
+ void paintTrack(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index, const Track *track) const;
+ void paintDisk(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index, const Disk *disk) const;
+ QRect drawLabel(const QString &text, QRect rect, QPainter *painter) const;
diff --git a/media-sound/flacon/flacon-1.2.0.ebuild b/media-sound/flacon/flacon-1.2.0.ebuild
new file mode 100644
index 0000000..64599b7
--- /dev/null
+++ b/media-sound/flacon/flacon-1.2.0.ebuild
@@ -0,0 +1,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}_uz@Latn.desktop" || 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
+}
diff --git a/media-sound/flacon/flacon-9999.ebuild b/media-sound/flacon/flacon-9999.ebuild
index e491e87..82dbb725 100644
--- a/media-sound/flacon/flacon-9999.ebuild
+++ b/media-sound/flacon/flacon-9999.ebuild
@@ -1,53 +1,72 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI="5"
+EAPI=5
-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"
+# Ignore rudimentary et, uz@Latn, zh_TW translation(s)
+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"
-EGIT_REPO_URI="https://github.com/flacon/flacon.git"
+inherit cmake-utils fdo-mime gnome2-utils l10n git-r3
-inherit cmake-utils l10n fdo-mime gnome2-utils
-[[ ${PV} == *9999* ]] && inherit git-r3
-
-DESCRIPTION="Extracts audio tracks from audio CD image to separate tracks"
+DESCRIPTION="Extracts audio tracks from an audio CD image to separate tracks"
HOMEPAGE="https://flacon.github.io/"
-[[ ${PV} == *9999* ]] || \
-SRC_URI="https://github.com/flacon/flacon/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+EGIT_REPO_URI="git://github.com/${PN}/${PN}.git"
LICENSE="LGPL-2.1"
SLOT="0"
-[[ ${PV} == *9999* ]] || \
-KEYWORDS="~amd64 ~x86"
-IUSE="flac mac mp3 mp4 ogg replaygain tta wavpack"
+KEYWORDS=""
+IUSE="aac flac mac mp3 opus qt4 qt5 replaygain tta vorbis wavpack"
-RDEPEND="
- dev-qt/qtcore:4
- dev-qt/qtgui:4
+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 )
- mp4? ( media-libs/faac )
- ogg? ( media-sound/vorbis-tools )
- tta? ( media-sound/ttaenc )
- wavpack? ( media-sound/wavpack )
+ opus? ( media-sound/opus-tools )
replaygain? (
mp3? ( media-sound/mp3gain )
- ogg? ( media-sound/vorbisgain )
+ vorbis? ( media-sound/vorbisgain )
)
+ tta? ( media-sound/ttaenc )
+ vorbis? ( media-sound/vorbis-tools )
+ wavpack? ( media-sound/wavpack )
"
-DEPEND="${RDEPEND}"
+
+REQUIRED_USE="^^ ( qt4 qt5 )"
src_prepare() {
- my_rm_loc() {
+ # Ignore rudimentary et, uz@Latn, zh_TW translation(s)
+ rm "translations/${PN}_uz@Latn.desktop" || die
+ rm "translations/${PN}"_{et,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 my_rm_loc
+ 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() {
diff --git a/media-sound/flacon/metadata.xml b/media-sound/flacon/metadata.xml
index ecc017d..d35aac6 100644
--- a/media-sound/flacon/metadata.xml
+++ b/media-sound/flacon/metadata.xml
@@ -16,9 +16,10 @@
<description>Proxied maintainer; set to assignee in all bugs</description>
</maintainer>
<use>
- <flag name="mac">Add support for Monkey's Audio files</flag>
+ <flag name="mac">Add support for Monkey's Audio input files</flag>
+ <flag name="opus">Add support for Opus output files</flag>
<flag name="replaygain">Support for Replay Gain metadata, for relative volume adjustment</flag>
- <flag name="tta">Add support for True Audio encoding</flag>
+ <flag name="tta">Add support for True Audio input files</flag>
</use>
<upstream>
<remote-id type="github">flacon/flacon</remote-id>
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-sound/flacon/files/, media-sound/flacon/
@ 2019-12-07 15:43 Andreas Sturmlechner
0 siblings, 0 replies; 4+ messages in thread
From: Andreas Sturmlechner @ 2019-12-07 15:43 UTC (permalink / raw
To: gentoo-commits
commit: c7006791439e1cda9d248a1de9580693c771b853
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 7 15:42:55 2019 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Dec 7 15:43:11 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7006791
media-sound/flacon: RESTRICT="!test? ( test )"
Package-Manager: Portage-2.3.81, Repoman-2.3.19
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
.../flacon/files/flacon-5.5.1-ninja-warning.patch | 63 ++++++++++++++++++++++
.../files/flacon-5.5.1-no-man-compress.patch | 23 ++++++++
media-sound/flacon/flacon-5.5.1.ebuild | 2 +
3 files changed, 88 insertions(+)
diff --git a/media-sound/flacon/files/flacon-5.5.1-ninja-warning.patch b/media-sound/flacon/files/flacon-5.5.1-ninja-warning.patch
new file mode 100644
index 00000000000..358e0464c80
--- /dev/null
+++ b/media-sound/flacon/files/flacon-5.5.1-ninja-warning.patch
@@ -0,0 +1,63 @@
+From bc6346175db9f89777141b6d17b52143b3caafeb Mon Sep 17 00:00:00 2001
+From: Alexander Sokolov <sokoloff.a@gmail.com>
+Date: Mon, 21 Oct 2019 22:08:18 +0300
+Subject: [PATCH] Fixed issue #104. Correct CMake policy CMP0058 warnings.
+
+---
+ CMakeLists.txt | 10 +++++++++-
+ translations/translatorsinfo.cmake | 10 ++--------
+ 2 files changed, 11 insertions(+), 9 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1fbbca2..95f25cd 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -244,7 +244,15 @@ include(FindPkgConfig)
+ pkg_search_module(UCHARDET REQUIRED uchardet)
+
+ include(translations/translatorsinfo.cmake)
+-create_translatorsinfo_qrc(TRANSLATORS_INFO_QRC translations)
++add_custom_target("translators")
++add_custom_command(
++ TARGET "translators"
++ PRE_BUILD
++ BYPRODUCTS ${TRANSLATORS_INFO_FILE}
++ COMMAND create_translatorsinfo_qrc(TRANSLATORS_INFO_QRC translations)
++)
++
++
+ set(LIBRARIES ${LIBRARIES} ${UCHARDET_LIBRARIES})
+ include_directories(${UCHARDET_INCLUDE_DIRS})
+ link_directories(${UCHARDET_LIBRARY_DIRS})
+diff --git a/translations/translatorsinfo.cmake b/translations/translatorsinfo.cmake
+index b439a05..650174b 100644
+--- a/translations/translatorsinfo.cmake
++++ b/translations/translatorsinfo.cmake
+@@ -23,13 +23,11 @@
+ #
+ # END_COMMON_COPYRIGHT_HEADER
+
++set(TRANSLATORS_INFO_FILE ${CMAKE_CURRENT_BINARY_DIR}/translators.info)
+
+ FUNCTION(create_translatorsinfo_qrc _qrcFile _DIR)
+ get_filename_component(srcDir ${_DIR}/ ABSOLUTE)
+
+-
+- set(TRANSLATORS_INFO_FILE ${CMAKE_CURRENT_BINARY_DIR}/translators.info)
+-
+ file(GLOB IN_FILES ${srcDir}/translators_*.info)
+ file(WRITE ${TRANSLATORS_INFO_FILE} "")
+
+@@ -42,11 +40,7 @@ FUNCTION(create_translatorsinfo_qrc _qrcFile _DIR)
+
+ configure_file(${srcDir}/translatorsinfo.qrc.in ${CMAKE_CURRENT_BINARY_DIR}/translatorsinfo.qrc)
+
+- if(USE_QT4)
+- qt4_add_resources(__qrcFile ${CMAKE_CURRENT_BINARY_DIR}/translatorsinfo.qrc)
+- else()
+- qt5_add_resources(__qrcFile ${CMAKE_CURRENT_BINARY_DIR}/translatorsinfo.qrc)
+- endif()
++ qt5_add_resources(__qrcFile ${CMAKE_CURRENT_BINARY_DIR}/translatorsinfo.qrc)
+
+ set(${_qrcFile} ${__qrcFile} PARENT_SCOPE)
+ ENDFUNCTION()
diff --git a/media-sound/flacon/files/flacon-5.5.1-no-man-compress.patch b/media-sound/flacon/files/flacon-5.5.1-no-man-compress.patch
new file mode 100644
index 00000000000..191d863fb31
--- /dev/null
+++ b/media-sound/flacon/files/flacon-5.5.1-no-man-compress.patch
@@ -0,0 +1,23 @@
+--- a/CMakeLists.txt 2019-12-07 15:55:24.155414989 +0100
++++ b/CMakeLists.txt 2019-12-07 15:56:38.266998439 +0100
+@@ -341,11 +341,6 @@
+ @ONLY
+ )
+
+-add_custom_command(TARGET ${PROJECT_NAME}
+- COMMAND gzip -c -n ${CMAKE_CURRENT_BINARY_DIR}/flacon.1 > ${CMAKE_CURRENT_BINARY_DIR}/flacon.1.gz
+-)
+-
+-
+ if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
+ set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "Flacon")
+ install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION Flacon.app/Contents/MacOS)
+@@ -357,7 +352,7 @@
+ else()
+ install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)
+ install(FILES ${QM_FILES} DESTINATION ${TRANSLATIONS_DIR})
+- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/flacon.1.gz DESTINATION share/man/man1)
++ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/flacon.1 DESTINATION share/man/man1)
+
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.desktop DESTINATION "share/applications")
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/com.github.Flacon.metadata.xml DESTINATION "share/metainfo")
diff --git a/media-sound/flacon/flacon-5.5.1.ebuild b/media-sound/flacon/flacon-5.5.1.ebuild
index 40b359b8d0a..e6310352d35 100644
--- a/media-sound/flacon/flacon-5.5.1.ebuild
+++ b/media-sound/flacon/flacon-5.5.1.ebuild
@@ -39,6 +39,8 @@ DEPEND="${RDEPEND}
)
"
+RESTRICT="!test? ( test )"
+
PATCHES=(
"${FILESDIR}/${P}-no-man-compress.patch"
"${FILESDIR}/${P}-ninja-warning.patch" # git master
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-sound/flacon/files/, media-sound/flacon/
@ 2022-08-04 7:25 Joonas Niilola
0 siblings, 0 replies; 4+ messages in thread
From: Joonas Niilola @ 2022-08-04 7:25 UTC (permalink / raw
To: gentoo-commits
commit: bfae5e760772730a6d7c66c5eaeb51f9e240ee39
Author: Philipp Rösner <rndxelement <AT> protonmail <DOT> com>
AuthorDate: Sun Jul 24 21:15:42 2022 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Aug 4 07:25:34 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfae5e76
media-sound/flacon: fix compressed man pages on 9.0.0
The Makefile contained instructions for installing gzip
compressed man pages to certain locations, which
resulted in the QA error: "
* QA Notice: One or more compressed files were found in docompress-ed
* directories. Please fix the ebuild not to install compressed files
* (manpages, documentation) when automatic compression is used:
*
* /usr/share/man/man1/flacon.1.gz
"
Installing the uncompressed version of flacon.1 fixes the issue.
Closes: https://bugs.gentoo.org/831605
Signed-off-by: Philipp Rösner <rndxelement <AT> protonmail.com>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
.../flacon/files/flacon-9.0.0-no-man-compress.patch | 21 +++++++++++++++++++++
media-sound/flacon/flacon-9.0.0.ebuild | 4 ++++
2 files changed, 25 insertions(+)
diff --git a/media-sound/flacon/files/flacon-9.0.0-no-man-compress.patch b/media-sound/flacon/files/flacon-9.0.0-no-man-compress.patch
new file mode 100644
index 000000000000..6ceff9bda276
--- /dev/null
+++ b/media-sound/flacon/files/flacon-9.0.0-no-man-compress.patch
@@ -0,0 +1,21 @@
+diff --git a/CMakeLists.txt.oirg b/CMakeLists.txt
+index f143d91..fd16a9b 100644
+--- a/CMakeLists.txt.oirg
++++ b/CMakeLists.txt
+@@ -302,14 +302,14 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
+ set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "Flacon")
+ install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION Flacon.app/Contents/MacOS)
+ install(FILES ${QM_FILES} DESTINATION Flacon.app/Contents/translations)
+- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/flacon.1.gz DESTINATION Flacon.app/Contents/Resources)
++ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/flacon.1 DESTINATION Flacon.app/Contents/Resources)
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Info.plist DESTINATION Flacon.app/Contents)
+ install(FILES images/mainicon/Flacon.icns DESTINATION Flacon.app/Contents/Resources)
+
+ else()
+ install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)
+ install(FILES ${QM_FILES} DESTINATION ${TRANSLATIONS_DIR})
+- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/flacon.1.gz DESTINATION share/man/man1)
++ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/flacon.1 DESTINATION share/man/man1)
+
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.desktop DESTINATION "share/applications")
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/com.github.Flacon.metainfo.xml DESTINATION "share/metainfo")
diff --git a/media-sound/flacon/flacon-9.0.0.ebuild b/media-sound/flacon/flacon-9.0.0.ebuild
index ed4cffb9c113..6de27bcb88a1 100644
--- a/media-sound/flacon/flacon-9.0.0.ebuild
+++ b/media-sound/flacon/flacon-9.0.0.ebuild
@@ -40,6 +40,10 @@ DEPEND="${RDEPEND}
)
"
+PATCHES=(
+ "${FILESDIR}"/${PN}-9.0.0-no-man-compress.patch
+)
+
RESTRICT="!test? ( test )"
pkg_pretend() {
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-sound/flacon/files/, media-sound/flacon/
@ 2024-02-28 7:12 Joonas Niilola
0 siblings, 0 replies; 4+ messages in thread
From: Joonas Niilola @ 2024-02-28 7:12 UTC (permalink / raw
To: gentoo-commits
commit: 9953db2741720305e95a5d3f23341d42a52d5183
Author: Philipp Rösner <rndxelement <AT> protonmail <DOT> com>
AuthorDate: Thu Feb 1 18:39:18 2024 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Feb 28 07:12:17 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9953db27
media-sound/flacon: add 11.3.0
Add media-sound/sox for proper audio conversion,
add media-video/mediainfo for extracting descriptions,
fix tests by adding several packages that were missing,
add support for ALAC and OPUS formats.
Closes: https://bugs.gentoo.org/831592
Signed-off-by: Philipp Rösner <rndxelement <AT> protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/35138
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
media-sound/flacon/Manifest | 1 +
.../files/flacon-11.3.0-no-man-compress.patch | 20 ++++
media-sound/flacon/flacon-11.3.0.ebuild | 102 +++++++++++++++++++++
3 files changed, 123 insertions(+)
diff --git a/media-sound/flacon/Manifest b/media-sound/flacon/Manifest
index a52381cad7af..4639c85ac650 100644
--- a/media-sound/flacon/Manifest
+++ b/media-sound/flacon/Manifest
@@ -1 +1,2 @@
DIST flacon-10.0.0.tar.gz 3802889 BLAKE2B e99be9ad2da98e84455426df853bb38cecb91a6c66cb3f532459637adee97078fb034d3c5b5cc905b74756adbf6c11276f589d450c1506fba2dace264efe8b9c SHA512 55744b3ef46f298e8082ab172b8e0b5ad428ec3c965ae69befe7f9abb4e87417cf2373385240000471c92391d243ef3b33f25ae565c8e9497021d3b619a5ac1a
+DIST flacon-11.3.0.tar.gz 4081613 BLAKE2B 791628fe40f49548d65b2a49f259d4ffaf42ba97f9674649669ceded7073fb805f277fefca1d3fffaae86438f9d7cff443dccbb6c8bef5e40f0eb60554c11db9 SHA512 e4b4f3876f4f647dafa21118c13482678c2766dce94b650142d7b2b21897d6e8f1f85601877b388c7f8554d5e57778de9a6db82ae38c1f089e7c2f88b1c497b8
diff --git a/media-sound/flacon/files/flacon-11.3.0-no-man-compress.patch b/media-sound/flacon/files/flacon-11.3.0-no-man-compress.patch
new file mode 100644
index 000000000000..9c06e2d8c4b7
--- /dev/null
+++ b/media-sound/flacon/files/flacon-11.3.0-no-man-compress.patch
@@ -0,0 +1,20 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -308,7 +308,7 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
+ set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "Flacon")
+ install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION Flacon.app/Contents/MacOS)
+ install(FILES ${QM_FILES} DESTINATION Flacon.app/Contents/translations)
+- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/flacon.1.gz DESTINATION Flacon.app/Contents/Resources)
++ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/flacon.1 DESTINATION Flacon.app/Contents/Resources)
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Info.plist DESTINATION Flacon.app/Contents)
+ install(FILES images/mainicon/Flacon.icns DESTINATION Flacon.app/Contents/Resources)
+
+@@ -337,7 +337,7 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
+ else()
+ install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)
+ install(FILES ${QM_FILES} DESTINATION ${TRANSLATIONS_DIR})
+- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/flacon.1.gz DESTINATION share/man/man1)
++ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/flacon.1 DESTINATION share/man/man1)
+
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.desktop DESTINATION "share/applications")
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/com.github.Flacon.metainfo.xml DESTINATION "share/metainfo")
diff --git a/media-sound/flacon/flacon-11.3.0.ebuild b/media-sound/flacon/flacon-11.3.0.ebuild
new file mode 100644
index 000000000000..5ac03f87c718
--- /dev/null
+++ b/media-sound/flacon/flacon-11.3.0.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Tests require lots of disk space
+CHECKREQS_DISK_BUILD=10G
+inherit check-reqs cmake optfeature virtualx xdg-utils
+
+DESCRIPTION="Extracts audio tracks from an audio CD image to separate tracks"
+HOMEPAGE="https://flacon.github.io/"
+SRC_URI="https://github.com/flacon/flacon/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+BDEPEND="
+ dev-qt/linguist-tools:5
+ virtual/pkgconfig
+"
+RDEPEND="
+ app-i18n/uchardet
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5[jpeg]
+ dev-qt/qtnetwork:5
+ dev-qt/qtwidgets:5
+ media-libs/taglib
+ media-sound/sox[flac,wavpack]
+ media-video/mediainfo
+"
+DEPEND="${RDEPEND}
+ dev-qt/qtconcurrent:5
+ test? (
+ dev-cpp/yaml-cpp
+ dev-qt/qttest:5
+ media-libs/faac
+ media-libs/flac
+ media-sound/alacenc
+ media-sound/alac_decoder
+ media-sound/lame
+ <=media-sound/mac-4.12
+ media-sound/opus-tools
+ media-sound/shntool
+ media-sound/ttaenc
+ media-sound/vorbis-tools
+ media-sound/wavpack
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-no-man-compress.patch
+)
+
+RESTRICT="!test? ( test )"
+
+pkg_pretend() {
+ use test && check-reqs_pkg_pretend
+}
+
+pkg_setup() {
+ use test && check-reqs_pkg_setup
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TESTS="$(usex test)"
+ )
+ cmake_src_configure
+}
+
+src_test() {
+ # All tests fail with enabled sandbox
+ # TODO: Get all tests to pass
+ # See bug: #831592
+ local -x SANDBOX_ON=0
+
+ virtx "${BUILD_DIR}/tests/${PN}_test" || die
+}
+
+pkg_postinst() {
+ optfeature_header "${PN} optionally supports formats listed below."
+ optfeature 'FLAC input and output support' media-libs/flac
+ optfeature 'WavPack input and output support' media-sound/wavpack
+ optfeature 'APE input support' media-sound/mac
+ optfeature 'ALAC input support' media-sound/alacenc
+ optfeature 'ALAC output support' media-sound/alac_decoder
+ optfeature 'TTA input support' media-sound/ttaenc
+ optfeature 'AAC output support' media-libs/faac
+ optfeature 'MP3 output support' media-sound/lame
+ optfeature 'Vorbis output support' media-sound/vorbis-tools
+ optfeature 'Opus input/output support' media-sound/opus-tools
+
+ xdg_icon_cache_update
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ xdg_icon_cache_update
+ xdg_desktop_database_update
+}
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-02-28 7:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-28 7:12 [gentoo-commits] repo/gentoo:master commit in: media-sound/flacon/files/, media-sound/flacon/ Joonas Niilola
-- strict thread matches above, loose matches on Subject: below --
2022-08-04 7:25 Joonas Niilola
2019-12-07 15:43 Andreas Sturmlechner
2015-12-01 7:02 Ian Delaney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox