diff options
Diffstat (limited to 'dev-libs/stfl/stfl-0.18.ebuild')
-rw-r--r-- | dev-libs/stfl/stfl-0.18.ebuild | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/dev-libs/stfl/stfl-0.18.ebuild b/dev-libs/stfl/stfl-0.18.ebuild index 7b94b2c14f45..22998a8a67d6 100644 --- a/dev-libs/stfl/stfl-0.18.ebuild +++ b/dev-libs/stfl/stfl-0.18.ebuild @@ -1,8 +1,9 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/stfl/stfl-0.18.ebuild,v 1.2 2008/06/22 17:30:49 gentoofan23 Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/stfl/stfl-0.18.ebuild,v 1.3 2009/03/07 19:23:13 gentoofan23 Exp $ -inherit perl-module toolchain-funcs eutils multilib +EAPI="2" +inherit eutils multilib perl-module python toolchain-funcs DESCRIPTION="A library which implements a curses-based widget set for text terminals" HOMEPAGE="http://www.clifford.at/stfl/" @@ -14,11 +15,11 @@ KEYWORDS="~amd64 ~x86" IUSE="examples perl ruby" -DEPEND="sys-libs/ncurses +DEPEND="sys-libs/ncurses[unicode] perl? ( dev-lang/swig dev-lang/perl ) ruby? ( dev-lang/swig dev-lang/ruby )" -RDEPEND="sys-libs/ncurses +RDEPEND="sys-libs/ncurses[unicode] perl? ( dev-lang/perl ) ruby? ( dev-lang/ruby )" @@ -31,7 +32,8 @@ src_unpack() { Makefile epatch "${FILESDIR}/${P}-multilib.patch" - sed -i -e "s:/usr/lib/python2.4:${D}/usr/lib/python2.4:" \ + python_version + sed -i -e "s:/usr/lib/python2.4:${D}/usr/lib/python${PYVER}:" \ python/Makefile.snippet if ! use perl; then @@ -43,20 +45,13 @@ src_unpack() { } src_compile() { - if ! built_with_use sys-libs/ncurses unicode ; then - eerror "For this package to compile you must" - eerror "enable unicode use flag for ncurses." - eerror "Please re-emerge ncurses with unicode" - eerror "use flag." - die - fi emake -j1 CC="$(tc-getCC)" || die "make failed" } src_install() { local exdir="/usr/share/doc/${PF}/examples" - dodir /usr/lib/python2.4/lib-dynload + dodir /usr/lib/python${PYVER}/lib-dynload emake -j1 prefix="/usr" DESTDIR="${D}" LIBDIR="$(get_libdir)" install || die "make install failed" dodoc README |