Lines 3-9
Link Here
|
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/slang/slang-2.2.4.ebuild,v 1.14 2013/11/19 12:41:59 slyfox Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/slang/slang-2.2.4.ebuild,v 1.14 2013/11/19 12:41:59 slyfox Exp $ |
4 |
|
4 |
|
5 |
EAPI=4 |
5 |
EAPI=4 |
6 |
inherit eutils |
6 |
inherit eutils multilib-minimal |
7 |
|
7 |
|
8 |
DESCRIPTION="A multi-platform programmer's library designed to allow a developer to create robust software" |
8 |
DESCRIPTION="A multi-platform programmer's library designed to allow a developer to create robust software" |
9 |
HOMEPAGE="http://www.jedsoft.org/slang/" |
9 |
HOMEPAGE="http://www.jedsoft.org/slang/" |
Lines 16-26
Link Here
|
16 |
|
16 |
|
17 |
# ncurses for ncurses5-config to get terminfo directory |
17 |
# ncurses for ncurses5-config to get terminfo directory |
18 |
RDEPEND="sys-libs/ncurses |
18 |
RDEPEND="sys-libs/ncurses |
19 |
pcre? ( dev-libs/libpcre ) |
19 |
pcre? ( dev-libs/libpcre[${MULTILIB_USEDEP}] ) |
20 |
png? ( >=media-libs/libpng-1.2:0 ) |
20 |
png? ( >=media-libs/libpng-1.2:0[${MULTILIB_USEDEP}] ) |
21 |
cjk? ( dev-libs/oniguruma ) |
21 |
cjk? ( dev-libs/oniguruma[${MULTILIB_USEDEP}] ) |
22 |
readline? ( sys-libs/readline ) |
22 |
readline? ( sys-libs/readline[${MULTILIB_USEDEP}] ) |
23 |
zlib? ( sys-libs/zlib )" |
23 |
zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] ) |
|
|
24 |
abi_x86_32? ( |
25 |
!app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] |
26 |
!<=app-emulation/emul-linux-x86-baselibs-20131008-r8 |
27 |
)" |
24 |
DEPEND="${RDEPEND}" |
28 |
DEPEND="${RDEPEND}" |
25 |
|
29 |
|
26 |
MAKEOPTS="${MAKEOPTS} -j1" |
30 |
MAKEOPTS="${MAKEOPTS} -j1" |
Lines 34-42
Link Here
|
34 |
# we use the GNU linker also on Solaris |
38 |
# we use the GNU linker also on Solaris |
35 |
sed -i -e 's/-G -fPIC/-shared -fPIC/g' \ |
39 |
sed -i -e 's/-G -fPIC/-shared -fPIC/g' \ |
36 |
-e 's/-Wl,-h,/-Wl,-soname,/g' configure || die |
40 |
-e 's/-Wl,-h,/-Wl,-soname,/g' configure || die |
|
|
41 |
|
42 |
# slang does not support configuration from another dir |
43 |
multilib_copy_sources |
37 |
} |
44 |
} |
38 |
|
45 |
|
39 |
src_configure() { |
46 |
multilib_src_configure() { |
40 |
local myconf=slang |
47 |
local myconf=slang |
41 |
use readline && myconf=gnu |
48 |
use readline && myconf=gnu |
42 |
|
49 |
|
Lines 48-54
Link Here
|
48 |
$(use_with zlib z) |
55 |
$(use_with zlib z) |
49 |
} |
56 |
} |
50 |
|
57 |
|
51 |
src_compile() { |
58 |
multilib_src_compile() { |
52 |
emake elf $(use static-libs && echo static) |
59 |
emake elf $(use static-libs && echo static) |
53 |
|
60 |
|
54 |
pushd slsh >/dev/null |
61 |
pushd slsh >/dev/null |
Lines 56-66
Link Here
|
56 |
popd |
63 |
popd |
57 |
} |
64 |
} |
58 |
|
65 |
|
59 |
src_install() { |
66 |
multilib_src_install() { |
60 |
emake DESTDIR="${D}" install $(use static-libs && echo install-static) |
67 |
emake DESTDIR="${D}" install $(use static-libs && echo install-static) |
|
|
68 |
} |
61 |
|
69 |
|
|
|
70 |
multilib_src_install_all() { |
62 |
rm -rf "${ED}"/usr/share/doc/{slang,slsh} |
71 |
rm -rf "${ED}"/usr/share/doc/{slang,slsh} |
63 |
|
|
|
64 |
dodoc NEWS README *.txt doc/{,internal,text}/*.txt |
72 |
dodoc NEWS README *.txt doc/{,internal,text}/*.txt |
65 |
dohtml doc/slangdoc.html slsh/doc/html/*.html |
73 |
dohtml doc/slangdoc.html slsh/doc/html/*.html |
66 |
} |
74 |
} |