/[gentoo-x86]/eclass/emul-linux-x86.eclass
Gentoo

Diff of /eclass/emul-linux-x86.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 Revision 1.6
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/emul-linux-x86.eclass,v 1.5 2010/02/22 20:52:52 pacho Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/emul-linux-x86.eclass,v 1.6 2011/01/29 21:46:33 pacho Exp $
4 4
5# 5#
6# Original Author: Mike Doty <kingtaco@gentoo.org> 6# Original Author: Mike Doty <kingtaco@gentoo.org>
7# Adapted from emul-libs.eclass 7# Adapted from emul-libs.eclass
8# Purpose: Providing a template for the app-emulation/emul-linux-* packages 8# Purpose: Providing a template for the app-emulation/emul-linux-* packages
9# 9#
10 10
11inherit versionator
12
13if version_is_at_least 20110129; then
14 IUSE="development"
15else
16 IUSE=""
17fi
18
11EXPORT_FUNCTIONS src_unpack src_install 19EXPORT_FUNCTIONS src_unpack src_install
12 20
13SRC_URI="mirror://gentoo/${PN}-${PV}.tar.bz2" 21SRC_URI="http://dev.gentoo.org/~pacho/emul/${P}.tar.bz2"
14 22
15DESCRIPTION="Provides precompiled 32bit libraries" 23DESCRIPTION="Provides precompiled 32bit libraries"
16#HOMEPAGE="http://amd64.gentoo.org/emul/content.xml" 24#HOMEPAGE="http://amd64.gentoo.org/emul/content.xml"
17HOMEPAGE="http://dev.gentoo.org/~pacho/emul.html" 25HOMEPAGE="http://dev.gentoo.org/~pacho/emul.html"
18 26
19RESTRICT="strip" 27RESTRICT="strip"
20S=${WORKDIR} 28S=${WORKDIR}
21 29
22SLOT="0" 30SLOT="0"
23IUSE=""
24 31
25DEPEND=">=sys-apps/findutils-4.2.26" 32DEPEND=">=sys-apps/findutils-4.2.26"
26RDEPEND="" 33RDEPEND=""
27 34
28emul-linux-x86_src_unpack() { 35emul-linux-x86_src_unpack() {
29 unpack ${A} 36 unpack ${A}
30 cd "${S}" 37 cd "${S}"
31 38
39 has development "${IUSE//+}" && use development && ALLOWED="${ALLOWED}|/usr/lib32/pkgconfig"
32 ALLOWED=${ALLOWED:-^${S}/etc/env.d} 40 ALLOWED=${ALLOWED:-^${S}/etc/env.d}
33 find "${S}" ! -type d ! -name '*.so*' | egrep -v "${ALLOWED}" | xargs -d $'\n' rm -f || die 'failed to remove everything but *.so*' 41 find "${S}" ! -type d ! -name '*.so*' | egrep -v "${ALLOWED}" | xargs -d $'\n' rm -f || die 'failed to remove everything but *.so*'
34} 42}
35 43
36emul-linux-x86_src_install() { 44emul-linux-x86_src_install() {

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20