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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Mon Feb 22 20:52:52 2010 UTC (5 years, 3 months ago) by pacho
Branch: MAIN
Changes since 1.4: +3 -2 lines
Update emul contents homepage

1 kingtaco 1.1 # Copyright 1999-2007 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 pacho 1.5 # $Header: /var/cvsroot/gentoo-x86/eclass/emul-linux-x86.eclass,v 1.4 2007/11/15 05:52:26 kingtaco Exp $
4 kingtaco 1.1
5     #
6     # Original Author: Mike Doty <kingtaco@gentoo.org>
7     # Adapted from emul-libs.eclass
8     # Purpose: Providing a template for the app-emulation/emul-linux-* packages
9     #
10    
11     EXPORT_FUNCTIONS src_unpack src_install
12    
13 kingtaco 1.4 SRC_URI="mirror://gentoo/${PN}-${PV}.tar.bz2"
14 kingtaco 1.1
15     DESCRIPTION="Provides precompiled 32bit libraries"
16 pacho 1.5 #HOMEPAGE="http://amd64.gentoo.org/emul/content.xml"
17     HOMEPAGE="http://dev.gentoo.org/~pacho/emul.html"
18 kingtaco 1.1
19     RESTRICT="strip"
20 kingtaco 1.3 S=${WORKDIR}
21 kingtaco 1.1
22     SLOT="0"
23     IUSE=""
24    
25     DEPEND=">=sys-apps/findutils-4.2.26"
26     RDEPEND=""
27    
28     emul-linux-x86_src_unpack() {
29     unpack ${A}
30     cd "${S}"
31    
32     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*'
34     }
35    
36     emul-linux-x86_src_install() {
37     for dir in etc/env.d etc/revdep-rebuild ; do
38     if [[ -d "${S}"/${dir} ]] ; then
39     for f in "${S}"/${dir}/* ; do
40     mv -f "$f"{,-emul}
41     done
42     fi
43     done
44    
45     # remove void directories
46     find "${S}" -depth -type d -print0 | xargs -0 rmdir 2&>/dev/null
47    
48     cp -pPR "${S}"/* "${D}"/ || die "copying files failed!"
49     }

  ViewVC Help
Powered by ViewVC 1.1.20