Add dev-libs/stfl-0.21, thanks to Tim Harder <radhermit@gmail.com> in bug #296735...
authorThomas Anderson <tanderson@gentoo.org>
Sat, 3 Apr 2010 13:41:01 +0000 (13:41 +0000)
committerThomas Anderson <tanderson@gentoo.org>
Sat, 3 Apr 2010 13:41:01 +0000 (13:41 +0000)
Package-Manager: portage-2.1.7.17/cvs/Linux x86_64

dev-libs/stfl/ChangeLog
dev-libs/stfl/Manifest
dev-libs/stfl/files/stfl-0.21-python.patch [new file with mode: 0644]
dev-libs/stfl/stfl-0.21.ebuild [new file with mode: 0644]

index 7c134f1bd853bc4420af02dc7daed14e70ed8110..0905c66f4d353351e5be7d44fd6f0950a584e9fc 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for dev-libs/stfl
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/stfl/ChangeLog,v 1.23 2009/08/30 12:24:35 tanderson Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/stfl/ChangeLog,v 1.24 2010/04/03 13:41:00 tanderson Exp $
+
+*stfl-0.21 (03 Apr 2010)
+
+  03 Apr 2010; Thomas Anderson <tanderson@gentoo.org> +stfl-0.21.ebuild,
+  +files/stfl-0.21-python.patch:
+  Add dev-libs/stfl-0.21, thanks to Tim Harder <radhermit@gmail.com> in bug
+  #296735 for initial ebuild updates and patches.
 
   30 Aug 2009; Thomas Anderson <tanderson@gentoo.org> stfl-0.19.ebuild:
   stable amd64, bug 281352
index a7bdc6d55e15c5bad5a61ad3524212d75619f186..c231d9121f97d3025d5a425c5414f64b9bcfd900 100644 (file)
@@ -1,10 +1,13 @@
 AUX stfl-0.18-multilib.patch 1768 RMD160 aee79ca9107e64a4abd0d31ccdc05a3566f1be82 SHA1 cba05ec3cb6a6755f82a64b67ea831d701b0a90c SHA256 346f187e4922e6652a1a0d9d2699948ccaf3ca4412fe05f8a5ae3cb94985f520
 AUX stfl-0.19-multilib.patch 3388 RMD160 7b067311d1c6c35705d04cdd86eb1d69643ebd57 SHA1 18d7b42880ee46250b5febbb734b6e787f67fbc1 SHA256 aaf38835f1263804f0d8732615733bc18185b9489a1d8c8d5daf121c9111547e
+AUX stfl-0.21-python.patch 1936 RMD160 fce9de74ac0cab5abe0e9b2d53c82cad602a5be1 SHA1 1ae240823806120b94c5cda5ba96b57e289bd730 SHA256 905260dbd13b4ce374d95ced9ea5d443fc44de0f14c0f1140fc8c7cead6c1f06
 DIST stfl-0.17.tar.gz 38950 RMD160 dc0fe9e1c1600667251069f9396fa044841d2d85 SHA1 315591618c7125daf3263b510e0e48aa82d73711 SHA256 d34fa8297bf15f13c206ef6eb3669cf3718fbcf0cd5abb47f704511c5f30ea7a
 DIST stfl-0.18.tar.gz 39188 RMD160 d3fc37aa7542c7e89d0957f8e25572f94e789b8d SHA1 d8ce5c7290ff438fcabac0fe4de2d54ae4ad5d49 SHA256 2295378d21596eb4aa5c775bfd0385db82825a18f093a9c0ba2a32c03f423832
 DIST stfl-0.19.tar.gz 40182 RMD160 e0b3b1a1405baf8b530e3d6a47a00f7167a0fa40 SHA1 f3183b3699687b25a602549284ac96122bc56482 SHA256 658aa189ce2751b0d15a1f2ea8f08fe8bf787dbc1049d606cb14885f73c2e33d
+DIST stfl-0.21.tar.gz 41093 RMD160 d8b56cc97b4d76adba8034ce9bbae631e6e9d17e SHA1 0313eafa1fe4dcfea1f2edd34d453baaa46df277 SHA256 bf0ead0a66b635602222bc9089414b99f99081b956c92baf77699d283bcc88eb
 EBUILD stfl-0.17.ebuild 1634 RMD160 0165b5b08e54aa5a7c210208b74b54183c9fa525 SHA1 ce6566797686581d5b9106eeb0fc57bc21b8cff1 SHA256 e99898ad61650b849a2951083b74d4a5533fe2f31b2a7b7dcfa00483db05090d
 EBUILD stfl-0.18.ebuild 1722 RMD160 b62ddfbe2ac590d277976781f00c16f1f094d70f SHA1 b349274199a02595148ac04d7e5043ec8e0c4741 SHA256 eda581b012a93b5881af2423a2ef36efee6f06dfe5dfd04989e000b7f5bdc9ae
 EBUILD stfl-0.19.ebuild 1921 RMD160 32f3535edf2f128a06f40c7a1c05e3a227166606 SHA1 17450de85a9bc3595afae4a26daeaef4a79b5d6e SHA256 9b57e948a20f22f95eaf5541afae753f2d02d3f11b5a7445308ce912aa35cc0b
-MISC ChangeLog 3751 RMD160 5e6f36652a0a78ac060e22af110987a258ec4671 SHA1 58989a72a538c2bb7eb258a94d682609bcbc86a0 SHA256 c4fc922a9bdfb252d9c22eff381db6bacb223d9e3b29a16a005a70e2d4e80e49
+EBUILD stfl-0.21.ebuild 1793 RMD160 da4fafd72aebf89fedcfcb430d3de26b49ec00f7 SHA1 182660790e22ff33d4566c2cfedaadd646599216 SHA256 5e8f2d34c3ff9d2915ad54b64b176fb02f4bd04103d81a08e6d1d563ed9aee0f
+MISC ChangeLog 4010 RMD160 469e9b8194ed9b5e4a409808ff5055f793bd5d4e SHA1 25e554f27ddf6407a16d1c0857c00f778ce5bc1d SHA256 d0d4452fbe2b856d2880e14d8d19bd89bb5c41baac94602902dc42710e96ca78
 MISC metadata.xml 927 RMD160 e15a38f9a7a71b82c3c827454e287f27f201877f SHA1 ba497d4033f331f97d0aae1cf429d0a2cb86fb55 SHA256 0da6ce084b1398632734e5eaf5510cf7beb9e82e92215786c352ac6fb63b74dc
diff --git a/dev-libs/stfl/files/stfl-0.21-python.patch b/dev-libs/stfl/files/stfl-0.21-python.patch
new file mode 100644 (file)
index 0000000..dbec12b
--- /dev/null
@@ -0,0 +1,39 @@
+diff -ur stfl-0.21.orig/Makefile stfl-0.21/Makefile
+--- stfl-0.21.orig/Makefile    2009-06-19 10:30:52.000000000 -0700
++++ stfl-0.21/Makefile 2009-12-23 15:12:34.986593069 -0800
+@@ -46,7 +46,7 @@
+       rm -f widgets/*.o spl/mod_stfl.so spl/example.db
+       cd perl5 && perl Makefile.PL && make clean && rm -f Makefile.old
+       rm -f perl5/stfl_wrap.c perl5/stfl.pm perl5/build_ok
+-      rm -f python/stfl.py python/stfl.pyc python/_stfl.so 
++      rm -f python/stfl.py python/_stfl.so 
+       rm -f python/stfl_wrap.c python/stfl_wrap.o
+       rm -f ruby/Makefile ruby/stfl_wrap.c ruby/stfl_wrap.o
+       rm -f ruby/stfl.so ruby/build_ok Makefile.deps_new
+diff -ur stfl-0.21.orig/python/Makefile.snippet stfl-0.21/python/Makefile.snippet
+--- stfl-0.21.orig/python/Makefile.snippet     2009-06-18 01:27:16.000000000 -0700
++++ stfl-0.21/python/Makefile.snippet  2009-12-23 15:14:54.237606055 -0800
+@@ -21,20 +21,17 @@
+ PYTHON_VERSION = $(shell python -V 2>&1 | cut -f2 -d' ' | cut -f1-2 -d'.')
+ PYTHON_SITEARCH = $(shell python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
+ 
+-all: python/_stfl.so python/stfl.py python/stfl.pyc
++all: python/_stfl.so python/stfl.py
+ 
+ install: install_python
+ 
+-python/_stfl.so python/stfl.py python/stfl.pyc: libstfl.a stfl.h python/stfl.i swig/*.i
++python/_stfl.so python/stfl.py: libstfl.a stfl.h python/stfl.i swig/*.i
+       cd python && swig -python -threads stfl.i
+       gcc -shared -pthread -fPIC python/stfl_wrap.c -I/usr/include/python$(PYTHON_VERSION) \
+               -I. libstfl.a -lncursesw -o python/_stfl.so
+-      cd python && python -c 'import stfl'
+ 
+-install_python: python/_stfl.so python/stfl.py python/stfl.pyc
+-      mkdir -p $(DESTDIR)$(PYTHON_SITEARCH)/
++install_python: python/_stfl.so python/stfl.py
+       mkdir -p $(DESTDIR)$(PYTHON_SITEARCH)/lib-dynload/
+       cp python/_stfl.so $(DESTDIR)$(PYTHON_SITEARCH)/lib-dynload/
+-      cp python/stfl.pyc $(DESTDIR)$(PYTHON_SITEARCH)/
+       cp python/stfl.py $(DESTDIR)$(PYTHON_SITEARCH)/
+ 
diff --git a/dev-libs/stfl/stfl-0.21.ebuild b/dev-libs/stfl/stfl-0.21.ebuild
new file mode 100644 (file)
index 0000000..5dc2af9
--- /dev/null
@@ -0,0 +1,85 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/stfl/stfl-0.21.ebuild,v 1.1 2010/04/03 13:41:00 tanderson Exp $
+
+EAPI="2"
+inherit eutils multilib perl-module python
+
+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="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+IUSE="examples perl python ruby"
+
+COMMON_DEPEND="sys-libs/ncurses[unicode]
+       perl? ( dev-lang/perl )
+       ruby? ( dev-lang/ruby )
+       python? ( dev-lang/python )"
+
+DEPEND="${COMMON_DEPEND}
+       perl? ( dev-lang/swig )
+       ruby? ( dev-lang/swig )"
+
+RDEPEND="${COMMON_DEPEND}"
+
+src_prepare() {
+       sed -i \
+               -e "s!-Os -ggdb!!" \
+               -e "s!^\(all:.*\) example!\1!" \
+               Makefile
+
+       epatch "${FILESDIR}/${P}-python.patch"
+
+       if ! use perl; then
+               echo "FOUND_PERL5=0" >>Makefile.cfg
+       fi
+
+       if ! use ruby; then
+               echo "FOUND_RUBY=0" >>Makefile.cfg
+       fi
+
+       if ! use python; then
+               echo "FOUND_PYTHON=0" >>Makefile.cfg
+       fi
+}
+
+src_compile() {
+       emake CC="$(tc-getCC)" || die "make failed"
+}
+
+src_install() {
+       PYTHON
+       emake prefix="/usr" DESTDIR="${D}" libdir="$(get_libdir)" install || die "make install failed"
+
+       dodoc README
+
+       local exdir="/usr/share/doc/${PF}/examples"
+       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
+}
+
+pkg_postinst() {
+       use python && python_mod_optimize usr/$(get_libdir)/python$(python_get_version)/site-packages/stfl.py
+}
+
+pkg_postrm() {
+       python_mod_cleanup
+}