diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2009-05-11 22:25:58 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2009-05-11 22:25:58 +0000 |
commit | 489cc558730960d36eaf21ebffb1fa016b311d26 (patch) | |
tree | 5a9608ee94b4d4288665ae38aa85efa3aab5afcb /media-libs/libifp | |
parent | New version for GNOME 2.26. Drop libgnome/libgnomeui dependencies, support fo... (diff) | |
download | gentoo-2-489cc558730960d36eaf21ebffb1fa016b311d26.tar.gz gentoo-2-489cc558730960d36eaf21ebffb1fa016b311d26.tar.bz2 gentoo-2-489cc558730960d36eaf21ebffb1fa016b311d26.zip |
Respect CFLAGS and CXXFLAGS wrt #240814, thanks to Diego E. Pettenò.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/libifp')
-rw-r--r-- | media-libs/libifp/ChangeLog | 7 | ||||
-rw-r--r-- | media-libs/libifp/libifp-1.0.0.2.ebuild | 29 |
2 files changed, 22 insertions, 14 deletions
diff --git a/media-libs/libifp/ChangeLog b/media-libs/libifp/ChangeLog index b283ebeaf59a..a506af5ab870 100644 --- a/media-libs/libifp/ChangeLog +++ b/media-libs/libifp/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for media-libs/libifp -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libifp/ChangeLog,v 1.10 2007/02/22 01:55:21 peper Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libifp/ChangeLog,v 1.11 2009/05/11 22:25:58 ssuominen Exp $ + + 11 May 2009; Samuli Suominen <ssuominen@gentoo.org> libifp-1.0.0.2.ebuild: + Respect CFLAGS and CXXFLAGS wrt #240814, thanks to Diego E. Pettenò. 22 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog: Transition to Manifest2. diff --git a/media-libs/libifp/libifp-1.0.0.2.ebuild b/media-libs/libifp/libifp-1.0.0.2.ebuild index c15816ce12d4..efd473a3319b 100644 --- a/media-libs/libifp/libifp-1.0.0.2.ebuild +++ b/media-libs/libifp/libifp-1.0.0.2.ebuild @@ -1,6 +1,8 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libifp/libifp-1.0.0.2.ebuild,v 1.9 2006/07/18 17:34:31 tsunam Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libifp/libifp-1.0.0.2.ebuild,v 1.10 2009/05/11 22:25:58 ssuominen Exp $ + +EAPI=2 DESCRIPTION="A general-purpose library-driver for iRiver's iFP portable audio players." HOMEPAGE="http://ifp-driver.sourceforge.net/libifp/" @@ -11,15 +13,21 @@ SLOT="0" KEYWORDS="amd64 ~ia64 ppc ppc64 x86" IUSE="doc examples module" -DEPEND=">=dev-libs/libusb-0.1.0 - doc? ( >=app-doc/doxygen-1.3.7 )" - -RDEPEND=">=dev-libs/libusb-0.1.0 +RDEPEND=">=dev-libs/libusb-0.1 module? ( kernel_linux? ( ~media-sound/libifp-module-${PV} ) )" +DEPEND="${RDEPEND} + doc? ( >=app-doc/doxygen-1.3.7 ) + sys-apps/sed" + +src_prepare() { + sed -e '/CFLAGS=/s:-g -O2:${CFLAGS}:' \ + -e '/CXXFLAGS=/s:-g -O2:${CXXFLAGS}:' \ + -i configure || die "sed failed" +} -src_compile() { +src_configure() { # hack to prevent docs from building use doc || DOCS="have_doxygen=no" @@ -27,14 +35,11 @@ src_compile() { --with-libusb \ --with-libifp \ --without-kmodule \ - $(use_enable examples) \ - || die "configure failed" - - emake || die "emake failed" + $(use_enable examples) } src_install() { - make install DESTDIR="${D}" || die "make install failed" + emake DESTDIR="${D}" install || die "emake install failed" # clean /usr/bin after installation # by moving examples to examples dir |