diff options
author | Philipp Rösner <rndxelement@protonmail.com> | 2023-02-14 16:43:36 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2023-02-26 09:04:28 +0200 |
commit | 48adf63f9c148a6e575e33de4783565377a3c6bd (patch) | |
tree | 7dd53a31cd34a43afa84a816c88936a5142bd040 /media-sound | |
parent | media-sound/flacon: disable sandbox for tests on 9.4.0 (diff) | |
download | gentoo-48adf63f9c148a6e575e33de4783565377a3c6bd.tar.gz gentoo-48adf63f9c148a6e575e33de4783565377a3c6bd.tar.bz2 gentoo-48adf63f9c148a6e575e33de4783565377a3c6bd.zip |
media-sound/flacon: add 10.0.0
Signed-off-by: Philipp Rösner <rndxelement@protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/29580
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/flacon/Manifest | 1 | ||||
-rw-r--r-- | media-sound/flacon/flacon-10.0.0.ebuild | 91 |
2 files changed, 92 insertions, 0 deletions
diff --git a/media-sound/flacon/Manifest b/media-sound/flacon/Manifest index 630484b00f72..dee7a125ac36 100644 --- a/media-sound/flacon/Manifest +++ b/media-sound/flacon/Manifest @@ -1,2 +1,3 @@ +DIST flacon-10.0.0.tar.gz 3802889 BLAKE2B e99be9ad2da98e84455426df853bb38cecb91a6c66cb3f532459637adee97078fb034d3c5b5cc905b74756adbf6c11276f589d450c1506fba2dace264efe8b9c SHA512 55744b3ef46f298e8082ab172b8e0b5ad428ec3c965ae69befe7f9abb4e87417cf2373385240000471c92391d243ef3b33f25ae565c8e9497021d3b619a5ac1a DIST flacon-9.1.0.tar.gz 3769110 BLAKE2B 9e0c4aaef3f6019a8c8196a204e8281ca4250df441ea14127d9347f26557091e87019388bd2942afc39e45a7864d653e2ae887f665ce190f18e646448c3f8e3e SHA512 be35c61e082be7d05bebee5f99192201f91e90f3a80827ac5808e6798f7ed0ada28ab7c2456702c443be51356ec192cd059408c2c3feb5b48b5bab048d0efb00 DIST flacon-9.4.0.tar.gz 3772714 BLAKE2B b45d6f934e80ae1d3546c1c54fdab22dac38d7ccf01b903a8c820145465c5732d34d6118bafcbbb4bde8c5bb528a707ebbee8b6a53ab5a1c29f1562a52c61382 SHA512 9dfd4ce558c4e3ce902c3b2e43b3c3fb94606f68dd550f774e3704d19ce6a28e887a7410054d6becfe3d20166aa687b7689821d6ee095e4efdc30e35a85e70ad diff --git a/media-sound/flacon/flacon-10.0.0.ebuild b/media-sound/flacon/flacon-10.0.0.ebuild new file mode 100644 index 000000000000..5ae4223ddc54 --- /dev/null +++ b/media-sound/flacon/flacon-10.0.0.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2023 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 + dev-qt/qtnetwork:5 + dev-qt/qtwidgets:5 + media-libs/taglib +" +DEPEND="${RDEPEND} + dev-qt/qtconcurrent:5 + test? ( + dev-qt/qttest:5 + media-libs/flac + media-sound/mac + media-sound/shntool + media-sound/ttaenc + media-sound/wavpack + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-9.0.0-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 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 + + xdg_icon_cache_update + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_icon_cache_update + xdg_desktop_database_update +} |