-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

A near identical copy of emul-libs.eclass, was done for a clean split
from the old emul systems.

I don't receive mail from this list, so CC me if you want me to see your
reply.

- --
=======================================================
Mike Doty                      kingtaco -at- gentoo.org
Gentoo Infrastructure
Gentoo/AMD64 Strategic Lead
GPG: E1A5 1C9C 93FE F430 C1D6  F2AF 806B A2E4 19F4 AE05
=======================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)

iQCVAwUBRzqvM4BrouQZ9K4FAQJ6pQP+ICZKPFemi75VF1CGo4lRE3WAsNaSTFph
ViWxutZAmq17C78IqqDuCIjq1MCa9PZNrF8qE64yWHhk/TESE6JwfDxybmlHJmZD
hvE4/ARvIqubb+8MDEEb3/6HPkXukNccAcI5SM+ytwX5hwKKTn6AkVk3MQV/mjDn
DJ4y5KD5LGU=
=lEtN
-----END PGP SIGNATURE-----
# 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.1 
2007/11/14 03:42:12 kingtaco Exp $

#
# Original Author: Mike Doty <[EMAIL PROTECTED]>
# Adapted from emul-libs.eclass
# Purpose: Providing a template for the app-emulation/emul-linux-* packages
#

EXPORT_FUNCTIONS src_unpack src_install

SRC_URI="mirror://gentoo/${PN}-${PVR}.tar.bz2"

DESCRIPTION="Provides precompiled 32bit libraries"
HOMEPAGE="http://amd64.gentoo.org/emul/content.xml";

RESTRICT="strip"
S=${WORKDIR}

SLOT="0"
IUSE=""

DEPEND=">=sys-apps/findutils-4.2.26"
RDEPEND=""

emul-linux-x86_src_unpack() {
        unpack ${A}
        cd "${S}"

        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*'
}

emul-linux-x86_src_install() {
        for dir in etc/env.d etc/revdep-rebuild ; do
                if [[ -d "${S}"/${dir} ]] ; then
                        for f in "${S}"/${dir}/* ; do
                                mv -f "$f"{,-emul}
                        done
                fi
        done

        # remove void directories
        find "${S}" -depth -type d -print0 | xargs -0 rmdir 2&>/dev/null

        cp -pPR "${S}"/* "${D}"/ || die "copying files failed!"
}

Reply via email to