summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrej Kacian <ticho@gentoo.org>2007-05-31 08:01:22 +0000
committerAndrej Kacian <ticho@gentoo.org>2007-05-31 08:01:22 +0000
commit92ca2afee8c15c6bd146ce457989e50af72d8922 (patch)
tree6e1b662778e63d9f0a0cb84c6deb89a62b101aa0 /dev-libs
parentDepend on stfl older than 0.9, since 0.9 brings API changes and newsbeuter do... (diff)
downloadhistorical-92ca2afee8c15c6bd146ce457989e50af72d8922.tar.gz
historical-92ca2afee8c15c6bd146ce457989e50af72d8922.tar.bz2
historical-92ca2afee8c15c6bd146ce457989e50af72d8922.zip
Version bump.
Package-Manager: portage-2.1.2.7
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/stfl/ChangeLog7
-rw-r--r--dev-libs/stfl/files/digest-stfl-0.93
-rw-r--r--dev-libs/stfl/stfl-0.9.ebuild72
3 files changed, 81 insertions, 1 deletions
diff --git a/dev-libs/stfl/ChangeLog b/dev-libs/stfl/ChangeLog
index e6ab1662dffd..ee0fe8a011ae 100644
--- a/dev-libs/stfl/ChangeLog
+++ b/dev-libs/stfl/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-libs/stfl
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/stfl/ChangeLog,v 1.2 2007/04/18 21:04:21 ticho Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/stfl/ChangeLog,v 1.3 2007/05/31 08:01:22 ticho Exp $
+
+*stfl-0.9 (31 May 2007)
+
+ 31 May 2007; Andrej Kacian <ticho@gentoo.org> +stfl-0.9.ebuild:
+ Version bump.
18 Apr 2007; Andrej Kacian <ticho@gentoo.org> stfl-0.8.ebuild:
Specify toolchain compiler. Do not build perl or ruby bindings if respective
diff --git a/dev-libs/stfl/files/digest-stfl-0.9 b/dev-libs/stfl/files/digest-stfl-0.9
new file mode 100644
index 000000000000..1397183727b6
--- /dev/null
+++ b/dev-libs/stfl/files/digest-stfl-0.9
@@ -0,0 +1,3 @@
+MD5 577d490181d02786397d8808dcc082ba stfl-0.9.tar.gz 30906
+RMD160 4bfa4b4be6b86e76a32da1c8b7c8ca2be129dc56 stfl-0.9.tar.gz 30906
+SHA256 bbfef98340ed710016b639500ce6328c7bd6211e757e70554d8d2946bbe98b49 stfl-0.9.tar.gz 30906
diff --git a/dev-libs/stfl/stfl-0.9.ebuild b/dev-libs/stfl/stfl-0.9.ebuild
new file mode 100644
index 000000000000..3bdf8d090dd6
--- /dev/null
+++ b/dev-libs/stfl/stfl-0.9.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/stfl/stfl-0.9.ebuild,v 1.1 2007/05/31 08:01:22 ticho Exp $
+
+inherit perl-module toolchain-funcs
+
+DESCRIPTION="A library which implements a curses-based widget set for text terminals"
+HOMEPAGE="http://www.clifford.at/stfl/"
+SRC_URI="http://www.clifford.at/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE="examples perl ruby"
+
+DEPEND="sys-libs/ncurses
+ perl? ( dev-lang/swig dev-lang/perl )
+ ruby? ( dev-lang/swig dev-lang/ruby )"
+
+RDEPEND="sys-libs/ncurses
+ perl? ( dev-lang/perl )
+ ruby? ( dev-lang/ruby )"
+
+src_unpack() {
+ unpack "${A}"
+ cd "${S}"
+ sed -i \
+ -e "s!-O0 -ggdb!!" \
+ -e "s!^all:.*!all: libstfl.a!" \
+ Makefile
+
+ sed -i -e "s:/usr/lib/python2.4:${D}/usr/lib/python2.4:" \
+ python/Makefile.snippet
+
+ if ! use perl; then
+ echo "FOUND_PERL5=0" >>Makefile.cfg
+ fi
+ if ! use ruby; then
+ echo "FOUND_RUBY=0" >>Makefile.cfg
+ fi
+}
+
+src_compile() {
+ emake -j1 CC="$(tc-getCC)" || die "make failed"
+}
+
+src_install() {
+ local exdir="/usr/share/doc/${PF}/examples"
+
+ dodir /usr/lib/python2.4/lib-dynload
+ emake prefix="/usr" DESTDIR="${D}" install || die "make install failed"
+
+ dodoc README
+
+ if use examples; then
+ insinto ${exdir}
+ doins example.{c,stfl}
+ insinto ${exdir}/python
+ doins python/example.py
+ if use perl; then
+ insinto ${exdir}/perl
+ doins perl5/example.pl
+ fi
+ if use ruby; then
+ insinto ${exdir}/ruby
+ doins ruby/example.rb
+ fi
+ fi
+
+ fixlocalpod
+}