Lines 2-8
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/gdbm/gdbm-1.8.3-r1.ebuild,v 1.11 2004/12/07 20:21:00 hardave Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/gdbm/gdbm-1.8.3-r1.ebuild,v 1.11 2004/12/07 20:21:00 hardave Exp $ |
4 |
|
4 |
|
5 |
inherit gnuconfig flag-o-matic eutils libtool |
5 |
inherit gnuconfig flag-o-matic eutils libtool multilib |
6 |
|
6 |
|
7 |
DESCRIPTION="Standard GNU database libraries included for compatibility with Perl" |
7 |
DESCRIPTION="Standard GNU database libraries included for compatibility with Perl" |
8 |
HOMEPAGE="http://www.gnu.org/software/gdbm/gdbm.html" |
8 |
HOMEPAGE="http://www.gnu.org/software/gdbm/gdbm.html" |
Lines 14-20
Link Here
|
14 |
IUSE="berkdb" |
14 |
IUSE="berkdb" |
15 |
|
15 |
|
16 |
DEPEND="virtual/libc |
16 |
DEPEND="virtual/libc |
17 |
berkdb? ( =sys-libs/db-1* )" |
17 |
berkdb? ( =sys-libs/db-1* ) |
|
|
18 |
!app-emulation/emul-linux-x86-baselibs" |
18 |
RDEPEND="virtual/libc" |
19 |
RDEPEND="virtual/libc" |
19 |
|
20 |
|
20 |
src_unpack() { |
21 |
src_unpack() { |
Lines 23-37
Link Here
|
23 |
gnuconfig_update |
24 |
gnuconfig_update |
24 |
append-flags -fomit-frame-pointer |
25 |
append-flags -fomit-frame-pointer |
25 |
uclibctoolize |
26 |
uclibctoolize |
|
|
27 |
if use amd64 && has_multilib_profile; then |
28 |
cp -ar ${S} ${S}-x86 |
29 |
mv ${S} ${S}-amd64 |
30 |
fi |
26 |
} |
31 |
} |
27 |
|
32 |
|
28 |
src_compile() { |
33 |
src_compile() { |
29 |
econf || die |
34 |
if use amd64 && has_multilib_profile; then |
|
|
35 |
local OABI=${ABI} |
36 |
local OPWD=$PWD |
37 |
ABI="x86" |
38 |
cd ${S}-x86 |
39 |
src_compile-multilib --libdir=/usr/lib32 |
40 |
ABI="amd64" |
41 |
cd ${S}-amd64 |
42 |
src_compile-multilib --libdir=/usr/lib64 |
43 |
ABI=${OABI} |
44 |
cd ${OPWD} |
45 |
unset OABI |
46 |
unset OPWD |
47 |
else |
48 |
src_compile-multilib |
49 |
fi |
50 |
} |
51 |
|
52 |
src_compile-multilib() { |
53 |
econf ${1} || die |
30 |
use berkdb || sed -i '/HAVE_LIBNDBM/s:.*::' autoconf.h |
54 |
use berkdb || sed -i '/HAVE_LIBNDBM/s:.*::' autoconf.h |
31 |
emake || die |
55 |
emake || die |
32 |
} |
56 |
} |
33 |
|
57 |
|
34 |
src_install() { |
58 |
src_install() { |
|
|
59 |
if use amd64 && has_multilib_profile; then |
60 |
local OABI=${ABI} |
61 |
local OPWD=$PWD |
62 |
ABI="x86" |
63 |
cd ${S}-x86 |
64 |
src_install-multilib |
65 |
ABI="amd64" |
66 |
cd ${S}-amd64 |
67 |
src_install-multilib |
68 |
ABI=${OABI} |
69 |
cd ${OPWD} |
70 |
unset OABI |
71 |
unset OPWD |
72 |
else |
73 |
src_install-multilib |
74 |
fi |
75 |
} |
76 |
|
77 |
src_install-multilib() { |
35 |
make INSTALL_ROOT=${D} install || die |
78 |
make INSTALL_ROOT=${D} install || die |
36 |
|
79 |
|
37 |
make \ |
80 |
make \ |