Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 496586 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/sys-libs/slang/slang-2.2.4.ebuild (-10 / +14 lines)
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
DEPEND="${RDEPEND}"
24
DEPEND="${RDEPEND}"
25
25
26
MAKEOPTS="${MAKEOPTS} -j1"
26
MAKEOPTS="${MAKEOPTS} -j1"
Lines 34-42 Link Here
34
	# we use the GNU linker also on Solaris
34
	# we use the GNU linker also on Solaris
35
	sed -i -e 's/-G -fPIC/-shared -fPIC/g' \
35
	sed -i -e 's/-G -fPIC/-shared -fPIC/g' \
36
		-e 's/-Wl,-h,/-Wl,-soname,/g' configure || die
36
		-e 's/-Wl,-h,/-Wl,-soname,/g' configure || die
37
38
	# slang does not support configuration from another dir
39
	multilib_copy_sources 
37
}
40
}
38
41
39
src_configure() {
42
multilib_src_configure() {
40
	local myconf=slang
43
	local myconf=slang
41
	use readline && myconf=gnu
44
	use readline && myconf=gnu
42
45
Lines 48-54 Link Here
48
		$(use_with zlib z)
51
		$(use_with zlib z)
49
}
52
}
50
53
51
src_compile() {
54
multilib_src_compile() {
52
	emake elf $(use static-libs && echo static)
55
	emake elf $(use static-libs && echo static)
53
56
54
	pushd slsh >/dev/null
57
	pushd slsh >/dev/null
Lines 56-66 Link Here
56
	popd
59
	popd
57
}
60
}
58
61
59
src_install() {
62
multilib_src_install() {
60
	emake DESTDIR="${D}" install $(use static-libs && echo install-static)
63
	emake DESTDIR="${D}" install $(use static-libs && echo install-static)
61
62
	rm -rf "${ED}"/usr/share/doc/{slang,slsh}
64
	rm -rf "${ED}"/usr/share/doc/{slang,slsh}
65
}
63
66
67
multilib_src_install_all() {
64
	dodoc NEWS README *.txt doc/{,internal,text}/*.txt
68
	dodoc NEWS README *.txt doc/{,internal,text}/*.txt
65
	dohtml doc/slangdoc.html slsh/doc/html/*.html
69
	dohtml doc/slangdoc.html slsh/doc/html/*.html
66
}
70
}

Return to bug 496586