| 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.6 2011/01/29 21:46:33 pacho Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/emul-linux-x86.eclass,v 1.7 2011/01/30 00:23: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 |
| … | |
… | |
| 34 | |
34 | |
| 35 | emul-linux-x86_src_unpack() { |
35 | emul-linux-x86_src_unpack() { |
| 36 | unpack ${A} |
36 | unpack ${A} |
| 37 | cd "${S}" |
37 | cd "${S}" |
| 38 | |
38 | |
|
|
39 | ALLOWED=${ALLOWED:-^${S}/etc/env.d} |
| 39 | has development "${IUSE//+}" && use development && ALLOWED="${ALLOWED}|/usr/lib32/pkgconfig" |
40 | has development "${IUSE//+}" && use development && ALLOWED="${ALLOWED}|/usr/lib32/pkgconfig" |
| 40 | ALLOWED=${ALLOWED:-^${S}/etc/env.d} |
|
|
| 41 | 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*' |
| 42 | } |
42 | } |
| 43 | |
43 | |
| 44 | emul-linux-x86_src_install() { |
44 | emul-linux-x86_src_install() { |
| 45 | for dir in etc/env.d etc/revdep-rebuild ; do |
45 | for dir in etc/env.d etc/revdep-rebuild ; do |