Lines 2-20
Link Here
|
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/sys-libs/lib-compat/lib-compat-1.4.ebuild,v 1.3 2005/02/17 18:49:17 plasmaroo Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/lib-compat/lib-compat-1.4.ebuild,v 1.3 2005/02/17 18:49:17 plasmaroo Exp $ |
4 |
|
4 |
|
|
|
5 |
inherit multilib |
6 |
|
5 |
DESCRIPTION="Compatibility C++ and libc5 and libc6 libraries for programs new and old" |
7 |
DESCRIPTION="Compatibility C++ and libc5 and libc6 libraries for programs new and old" |
6 |
HOMEPAGE="http://www.gentoo.org/" |
8 |
HOMEPAGE="http://www.gentoo.org/" |
7 |
SRC_URI="mirror://gentoo/${P}.tar.bz2" |
9 |
SRC_URI="mirror://gentoo/${P}.tar.bz2" |
8 |
|
10 |
|
9 |
LICENSE="GPL-2" |
11 |
LICENSE="GPL-2" |
10 |
SLOT="0" |
12 |
SLOT="0" |
11 |
KEYWORDS="x86 ppc sparc alpha ~ia64" |
13 |
KEYWORDS="amd64 x86 ppc sparc alpha ~ia64" |
12 |
IUSE="sdl" |
14 |
IUSE="sdl" |
13 |
|
15 |
|
14 |
RDEPEND="virtual/libc |
16 |
RDEPEND="virtual/libc |
15 |
sdl? ( media-libs/libsdl )" |
17 |
sdl? ( media-libs/libsdl )" |
16 |
|
18 |
|
17 |
S=${WORKDIR}/${P}/${ARCH} |
19 |
( use amd64 || S=${WORKDIR}/${P}/${ARCH} ) && S=${WORKDIR}/${P}/x86 |
18 |
|
20 |
|
19 |
src_unpack() { |
21 |
src_unpack() { |
20 |
unpack ${A} |
22 |
unpack ${A} |
Lines 31-37
Link Here
|
31 |
} |
33 |
} |
32 |
|
34 |
|
33 |
src_install() { |
35 |
src_install() { |
34 |
if use x86 ; then |
36 |
# if we have pre 2005.0 profile on amd64 do nothing |
|
|
37 |
# since this compatibility libraries are provided |
38 |
# by emul-linux-x86-compat package |
39 |
if ( use amd64 && has_multilib_profile ) || -n use amd64; then |
40 |
local OABI=${ABI} |
41 |
if use amd64; then |
42 |
ABI="x86" |
43 |
fi |
44 |
src_install-multi |
45 |
ABI=${OABI} |
46 |
unset OABI |
47 |
fi |
48 |
} |
49 |
|
50 |
src_install-multi() { |
51 |
if use x86 || use amd64 ; then |
35 |
into / |
52 |
into / |
36 |
dolib.so ld-linux.so.1* |
53 |
dolib.so ld-linux.so.1* |
37 |
rm -f ld-linux.so.1* |
54 |
rm -f ld-linux.so.1* |