diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2008-02-15 19:58:42 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2008-02-15 19:58:42 +0000 |
commit | c85c0e59fa8b29c76bd5b283737586466ae7438e (patch) | |
tree | 27795cf0f9157975b997b9287aa29a99bb26a9ce /sys-libs/slang/slang-2.1.3-r1.ebuild | |
parent | libgg gets ppc64 love for mplayer dep (diff) | |
download | historical-c85c0e59fa8b29c76bd5b283737586466ae7438e.tar.gz historical-c85c0e59fa8b29c76bd5b283737586466ae7438e.tar.bz2 historical-c85c0e59fa8b29c76bd5b283737586466ae7438e.zip |
If USE readline is used, and it's enabled by default in profiles use system readline for slsh instead of native slang.
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'sys-libs/slang/slang-2.1.3-r1.ebuild')
-rw-r--r-- | sys-libs/slang/slang-2.1.3-r1.ebuild | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/sys-libs/slang/slang-2.1.3-r1.ebuild b/sys-libs/slang/slang-2.1.3-r1.ebuild index f30ee8241f23..4dac8dc8a8ba 100644 --- a/sys-libs/slang/slang-2.1.3-r1.ebuild +++ b/sys-libs/slang/slang-2.1.3-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/slang/slang-2.1.3-r1.ebuild,v 1.7 2008/02/15 19:24:50 drac Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/slang/slang-2.1.3-r1.ebuild,v 1.8 2008/02/15 19:58:42 drac Exp $ inherit eutils @@ -11,12 +11,13 @@ SRC_URI="ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v${PV%.*}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" -IUSE="cjk pcre png" +IUSE="cjk pcre png readline" RDEPEND="sys-libs/ncurses pcre? ( dev-libs/libpcre ) png? ( media-libs/libpng ) - cjk? ( dev-libs/oniguruma )" + cjk? ( dev-libs/oniguruma ) + readline? ( sys-libs/readline )" DEPEND="${RDEPEND} !=sys-libs/slang-2.1.2" @@ -35,15 +36,25 @@ src_unpack() { } src_compile() { - econf $(use_with pcre) $(use_with png) \ - $(use_with cjk onig) + local readline + + if use readline; then + readline=gnu + else + readline=slang + fi + + econf $(use_with cjk onig) $(use_with pcre) $(use_with png) \ + --with-readline=${readline} + emake -j1 elf static || die "emake elf static failed." + cd slsh emake -j1 slsh || die "emake slsh failed." } src_install() { - emake -j1 DESTDIR="${D}" install-all || die "emake install failed." + emake -j1 DESTDIR="${D}" install-all || die "emake install-all failed." rm -rf "${D}"/usr/share/doc/{slang,slsh} |