summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrej Kacian <ticho@gentoo.org>2007-06-03 09:27:10 +0000
committerAndrej Kacian <ticho@gentoo.org>2007-06-03 09:27:10 +0000
commit03da9c030512cc77c2e189ac23285d5e76804c3f (patch)
treea6923581c0c1997e04078469981b45de7dfb392b /dev-libs/stfl
parentAdded keyword ~amd64 as it works fine there. (diff)
downloadgentoo-2-03da9c030512cc77c2e189ac23285d5e76804c3f.tar.gz
gentoo-2-03da9c030512cc77c2e189ac23285d5e76804c3f.tar.bz2
gentoo-2-03da9c030512cc77c2e189ac23285d5e76804c3f.zip
Version bump.
(Portage version: 2.1.2.9)
Diffstat (limited to 'dev-libs/stfl')
-rw-r--r--dev-libs/stfl/ChangeLog7
-rw-r--r--dev-libs/stfl/files/digest-stfl-0.103
-rw-r--r--dev-libs/stfl/stfl-0.10.ebuild72
3 files changed, 81 insertions, 1 deletions
diff --git a/dev-libs/stfl/ChangeLog b/dev-libs/stfl/ChangeLog
index ee0fe8a011ae..6eafb53f8c0d 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.3 2007/05/31 08:01:22 ticho Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/stfl/ChangeLog,v 1.4 2007/06/03 09:27:10 ticho Exp $
+
+*stfl-0.10 (03 Jun 2007)
+
+ 03 Jun 2007; Andrej Kacian <ticho@gentoo.org> +stfl-0.10.ebuild:
+ Version bump.
*stfl-0.9 (31 May 2007)
diff --git a/dev-libs/stfl/files/digest-stfl-0.10 b/dev-libs/stfl/files/digest-stfl-0.10
new file mode 100644
index 000000000000..b049cd59ca7d
--- /dev/null
+++ b/dev-libs/stfl/files/digest-stfl-0.10
@@ -0,0 +1,3 @@
+MD5 21166426918fe4ac81f7ac6594b44b1d stfl-0.10.tar.gz 31168
+RMD160 319b09d8692c90cfd371295477c024d7cad5e7a2 stfl-0.10.tar.gz 31168
+SHA256 a5dcbe8543bfc573814027b767a5bff25dbc64d555593e29983a9c4dcc96b537 stfl-0.10.tar.gz 31168
diff --git a/dev-libs/stfl/stfl-0.10.ebuild b/dev-libs/stfl/stfl-0.10.ebuild
new file mode 100644
index 000000000000..e27d5c0b0038
--- /dev/null
+++ b/dev-libs/stfl/stfl-0.10.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.10.ebuild,v 1.1 2007/06/03 09:27:10 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
+}