diff options
author | Pacho Ramos <pacho@gentoo.org> | 2011-01-29 21:46:33 +0000 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2011-01-29 21:46:33 +0000 |
commit | 92352ab080de5b104303c3a0e23d054e59a7a7e3 (patch) | |
tree | 1e169849265566efe1df839b2871256be2b3c23d /eclass/emul-linux-x86.eclass | |
parent | Restrict tests in old versions so people will never hit 342611 again (diff) | |
download | gentoo-2-92352ab080de5b104303c3a0e23d054e59a7a7e3.tar.gz gentoo-2-92352ab080de5b104303c3a0e23d054e59a7a7e3.tar.bz2 gentoo-2-92352ab080de5b104303c3a0e23d054e59a7a7e3.zip |
Provide a 'development' USE for installing .pc files as requested in bug #262414. Thanks a lot to Markos Chandras for his help.
Diffstat (limited to 'eclass/emul-linux-x86.eclass')
-rw-r--r-- | eclass/emul-linux-x86.eclass | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/eclass/emul-linux-x86.eclass b/eclass/emul-linux-x86.eclass index 9085e365789c..a91a09930937 100644 --- a/eclass/emul-linux-x86.eclass +++ b/eclass/emul-linux-x86.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/emul-linux-x86.eclass,v 1.5 2010/02/22 20:52:52 pacho Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/emul-linux-x86.eclass,v 1.6 2011/01/29 21:46:33 pacho Exp $ # # Original Author: Mike Doty <kingtaco@gentoo.org> @@ -8,9 +8,17 @@ # Purpose: Providing a template for the app-emulation/emul-linux-* packages # +inherit versionator + +if version_is_at_least 20110129; then + IUSE="development" +else + IUSE="" +fi + EXPORT_FUNCTIONS src_unpack src_install -SRC_URI="mirror://gentoo/${PN}-${PV}.tar.bz2" +SRC_URI="http://dev.gentoo.org/~pacho/emul/${P}.tar.bz2" DESCRIPTION="Provides precompiled 32bit libraries" #HOMEPAGE="http://amd64.gentoo.org/emul/content.xml" @@ -20,7 +28,6 @@ RESTRICT="strip" S=${WORKDIR} SLOT="0" -IUSE="" DEPEND=">=sys-apps/findutils-4.2.26" RDEPEND="" @@ -29,6 +36,7 @@ emul-linux-x86_src_unpack() { unpack ${A} cd "${S}" + has development "${IUSE//+}" && use development && ALLOWED="${ALLOWED}|/usr/lib32/pkgconfig" ALLOWED=${ALLOWED:-^${S}/etc/env.d} find "${S}" ! -type d ! -name '*.so*' | egrep -v "${ALLOWED}" | xargs -d $'\n' rm -f || die 'failed to remove everything but *.so*' } |