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/ncurses/ncurses-5.4-r5.ebuild,v 1.20 2005/02/25 04:44:51 vapier Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/ncurses/ncurses-5.4-r5.ebuild,v 1.20 2005/02/25 04:44:51 vapier Exp $ |
4 |
|
4 |
|
5 |
inherit eutils flag-o-matic gnuconfig toolchain-funcs |
5 |
inherit eutils flag-o-matic gnuconfig toolchain-funcs multilib |
6 |
|
6 |
|
7 |
DESCRIPTION="console display library" |
7 |
DESCRIPTION="console display library" |
8 |
HOMEPAGE="http://www.gnu.org/software/ncurses/ncurses.html" |
8 |
HOMEPAGE="http://www.gnu.org/software/ncurses/ncurses.html" |
Lines 13-19
Link Here
|
13 |
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86" |
13 |
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86" |
14 |
IUSE="gpm build bootstrap debug doc uclibc unicode nocxx" |
14 |
IUSE="gpm build bootstrap debug doc uclibc unicode nocxx" |
15 |
|
15 |
|
16 |
DEPEND="gpm? ( sys-libs/gpm )" |
16 |
DEPEND="gpm? ( sys-libs/gpm ) |
|
|
17 |
!app-emulation/emul-linux-x86-baselibs" |
17 |
|
18 |
|
18 |
src_unpack() { |
19 |
src_unpack() { |
19 |
unpack ${A} |
20 |
unpack ${A} |
Lines 23-31
Link Here
|
23 |
# Bug #42336. |
24 |
# Bug #42336. |
24 |
epatch ${FILESDIR}/${P}-share-sed.patch |
25 |
epatch ${FILESDIR}/${P}-share-sed.patch |
25 |
gnuconfig_update |
26 |
gnuconfig_update |
|
|
27 |
|
28 |
if use amd64 && has_multilib_profile; then |
29 |
cp -ar ${S} ${S}-x86 |
30 |
mv ${S} ${S}-amd64 |
31 |
fi |
26 |
} |
32 |
} |
27 |
|
33 |
|
28 |
src_compile() { |
34 |
src_compile() { |
|
|
35 |
if use amd64 && has_multilib_profile; then |
36 |
local OABI=${ABI} |
37 |
local OPWD=$PWD |
38 |
ABI="x86" |
39 |
cd ${S}-x86 |
40 |
src_compile-multilib |
41 |
ABI="amd64" |
42 |
cd ${S}-amd64 |
43 |
src_compile-multilib |
44 |
ABI=${OABI} |
45 |
cd ${OPWD} |
46 |
unset OABI |
47 |
unset OPWD |
48 |
else |
49 |
src_compile-multilib |
50 |
fi |
51 |
} |
52 |
|
53 |
src_compile-multilib() { |
29 |
local myconf= |
54 |
local myconf= |
30 |
|
55 |
|
31 |
filter-flags -fno-exceptions |
56 |
filter-flags -fno-exceptions |
Lines 78-83
Link Here
|
78 |
} |
103 |
} |
79 |
|
104 |
|
80 |
src_install() { |
105 |
src_install() { |
|
|
106 |
if use amd64 && has_multilib_profile; then |
107 |
local OABI=${ABI} |
108 |
local OPWD=$PWD |
109 |
ABI="x86" |
110 |
cd ${S}-x86 |
111 |
src_install-multilib |
112 |
ABI="amd64" |
113 |
cd ${S}-amd64 |
114 |
src_install-multilib |
115 |
ABI=${OABI} |
116 |
cd ${OPWD} |
117 |
unset OABI |
118 |
unset OPWD |
119 |
else |
120 |
src_install-multilib |
121 |
fi |
122 |
} |
123 |
|
124 |
src_install-multilib() { |
81 |
local x= |
125 |
local x= |
82 |
|
126 |
|
83 |
make DESTDIR="${D}" install || die "make install failed" |
127 |
make DESTDIR="${D}" install || die "make install failed" |