summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Briesenick <sbriesen@gentoo.org>2011-10-20 13:37:50 +0000
committerStefan Briesenick <sbriesen@gentoo.org>2011-10-20 13:37:50 +0000
commit2f1a9fdd93b486c168c5b717953c4aacf0a5736b (patch)
tree863ddaba467e355aeb6470d8661a0dd406b7f478
parentVersion bump. (diff)
downloadgentoo-2-2f1a9fdd93b486c168c5b717953c4aacf0a5736b.tar.gz
gentoo-2-2f1a9fdd93b486c168c5b717953c4aacf0a5736b.tar.bz2
gentoo-2-2f1a9fdd93b486c168c5b717953c4aacf0a5736b.zip
bump to EAPI=4, solving bug #378519.
(Portage version: 2.2.0_alpha67/cvs/Linux x86_64)
-rw-r--r--app-cdr/cuecue/ChangeLog7
-rw-r--r--app-cdr/cuecue/cuecue-0.2.2-r1.ebuild40
2 files changed, 21 insertions, 26 deletions
diff --git a/app-cdr/cuecue/ChangeLog b/app-cdr/cuecue/ChangeLog
index 28c2afa395ae..75479ac9ef6a 100644
--- a/app-cdr/cuecue/ChangeLog
+++ b/app-cdr/cuecue/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-cdr/cuecue
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-cdr/cuecue/ChangeLog,v 1.9 2009/03/10 22:08:00 beandog Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-cdr/cuecue/ChangeLog,v 1.10 2011/10/20 13:37:50 sbriesen Exp $
+
+ 20 Oct 2011; Stefan Briesenick <sbriesen@gentoo.org> cuecue-0.2.2-r1.ebuild:
+ bump to EAPI=4, solving bug #378519.
10 Mar 2009; Steve Dibb <beandog@gentoo.org> cuecue-0.2.2-r1.ebuild:
Enable vorbis by default, bug 254745
diff --git a/app-cdr/cuecue/cuecue-0.2.2-r1.ebuild b/app-cdr/cuecue/cuecue-0.2.2-r1.ebuild
index af3b87da5845..d0e722fe2a13 100644
--- a/app-cdr/cuecue/cuecue-0.2.2-r1.ebuild
+++ b/app-cdr/cuecue/cuecue-0.2.2-r1.ebuild
@@ -1,9 +1,10 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-cdr/cuecue/cuecue-0.2.2-r1.ebuild,v 1.5 2009/03/10 22:08:00 beandog Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-cdr/cuecue/cuecue-0.2.2-r1.ebuild,v 1.6 2011/10/20 13:37:50 sbriesen Exp $
-EAPI="1"
-inherit eutils
+EAPI=4
+
+inherit base eutils flag-o-matic
DESCRIPTION="Cuecue is a suite to convert .cue + [.ogg|.flac|.wav|.mp3] to .cue + .bin."
HOMEPAGE="http://cuecue.berlios.de/"
@@ -14,26 +15,16 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
# Enable one use flag by default, bug 254745"
IUSE="flac mp3 +vorbis"
+REQUIRED_USE="|| ( flac mp3 vorbis )"
DEPEND="mp3? ( media-libs/libmad )
flac? ( media-libs/flac )
vorbis? ( media-libs/libvorbis media-libs/libogg )"
-pkg_setup() {
- for X in ${IUSE}; do
- use ${X} && return 0
- done
- eerror "You must enable at least one of these USE flags: ${IUSE}"
- die "no format, no compile! ;-)"
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${P}-flac113.diff # bug 157706
-}
+PATCHES=( "${FILESDIR}/${P}-flac113.diff" ) # bug 157706
+DOCS="CHANGES README TODO"
-src_compile() {
+src_configure() {
econf \
--disable-dependency-tracking \
$(use_enable mp3) \
@@ -41,16 +32,17 @@ src_compile() {
--disable-oggtest \
--disable-vorbistest \
$(use_enable flac) \
- --disable-libFLACtest \
- || die "econf failed."
+ --disable-libFLACtest
+}
- emake CFLAGS="-ansi -pedantic ${CFLAGS}" \
- || die "emake failed."
+src_compile() {
+ # fixes portage QA notice
+ append-flags "-ansi -pedantic"
+ emake CFLAGS="${CFLAGS}"
}
src_install () {
- emake DESTDIR="${D}" install || die "emake install failed."
+ default
insinto /usr/include
doins src/libcuecue/cuecue.h || die "doins failed."
- dodoc CHANGES README TODO
}