diff options
author | Jeroen Roovers <jer@gentoo.org> | 2020-05-15 09:25:18 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2020-05-15 09:33:41 +0200 |
commit | b04f51efbcb86d59a1657347973e19168e5dd538 (patch) | |
tree | 3a6ffed55993df8bce1ca8ae01a6b570d224332f /app-cdr/cuecue/cuecue-0.2.2-r3.ebuild | |
parent | dev-python/httpretty: Remove redis tests (diff) | |
download | gentoo-b04f51efbcb86d59a1657347973e19168e5dd538.tar.gz gentoo-b04f51efbcb86d59a1657347973e19168e5dd538.tar.bz2 gentoo-b04f51efbcb86d59a1657347973e19168e5dd538.zip |
app-cdr/cuecue: Fix building with CFLAGS=-fno-common
Also:
- Drop flag-o-matic
- Set AR
- Set RDEPEND
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Closes: https://bugs.gentoo.org/show_bug.cgi?id=707444
Closes: https://bugs.gentoo.org/show_bug.cgi?id=722024
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'app-cdr/cuecue/cuecue-0.2.2-r3.ebuild')
-rw-r--r-- | app-cdr/cuecue/cuecue-0.2.2-r3.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/app-cdr/cuecue/cuecue-0.2.2-r3.ebuild b/app-cdr/cuecue/cuecue-0.2.2-r3.ebuild new file mode 100644 index 000000000000..03166b162e34 --- /dev/null +++ b/app-cdr/cuecue/cuecue-0.2.2-r3.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit toolchain-funcs + +DESCRIPTION="Cuecue converts .cue + [.ogg|.flac|.wav|.mp3] to .cue + .bin" +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +# Enable one use flag by default, bug 254745" +IUSE="flac mp3 +vorbis" +REQUIRED_USE="|| ( flac mp3 vorbis )" + +DEPEND=" + flac? ( media-libs/flac ) + mp3? ( media-libs/libmad ) + vorbis? ( media-libs/libvorbis media-libs/libogg ) +" +RDEPEND=" + ${DEPEND} +" + +PATCHES=( + "${FILESDIR}"/${P}-flac113.diff # bug 157706 + "${FILESDIR}"/${P}-namespace.patch + "${FILESDIR}"/${P}-unused.patch + "${FILESDIR}"/${P}-fno-common.patch +) + +src_configure() { + econf \ + $(use_enable flac) \ + $(use_enable mp3) \ + $(use_enable vorbis ogg) \ + --disable-libFLACtest \ + --disable-oggtest \ + --disable-vorbistest +} + +src_compile() { + emake AR="$(tc-getAR)" CFLAGS="${CFLAGS}" +} + +src_install() { + default + + insinto /usr/include + doins src/libcuecue/cuecue.h +} |