summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Anderson <gentoofan23@gentoo.org>2008-09-03 22:58:33 +0000
committerThomas Anderson <gentoofan23@gentoo.org>2008-09-03 22:58:33 +0000
commit2c5b462a1dcc52fce86c47e96378a3f8d40c7ab7 (patch)
tree3b8d43a195d52289b8453aaae61836ca2472c8da /dev-libs/stfl
parentBlock app-text/adiff, bug #227037 (diff)
downloadgentoo-2-2c5b462a1dcc52fce86c47e96378a3f8d40c7ab7.tar.gz
gentoo-2-2c5b462a1dcc52fce86c47e96378a3f8d40c7ab7.tar.bz2
gentoo-2-2c5b462a1dcc52fce86c47e96378a3f8d40c7ab7.zip
Version bump
(Portage version: 2.1.4.4)
Diffstat (limited to 'dev-libs/stfl')
-rw-r--r--dev-libs/stfl/ChangeLog8
-rw-r--r--dev-libs/stfl/files/stfl-0.19-multilib.patch46
-rw-r--r--dev-libs/stfl/metadata.xml4
-rw-r--r--dev-libs/stfl/stfl-0.19.ebuild90
4 files changed, 145 insertions, 3 deletions
diff --git a/dev-libs/stfl/ChangeLog b/dev-libs/stfl/ChangeLog
index d2ebd60160ce..c0e506efe46a 100644
--- a/dev-libs/stfl/ChangeLog
+++ b/dev-libs/stfl/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/stfl
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/stfl/ChangeLog,v 1.17 2008/07/20 22:34:57 gregkh Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/stfl/ChangeLog,v 1.18 2008/09/03 22:58:33 gentoofan23 Exp $
+
+*stfl-0.19 (03 Sep 2008)
+
+ 03 Sep 2008; Thomas Anderson <gentoofan23@gentoo.org>
+ +files/stfl-0.19-multilib.patch, metadata.xml, +stfl-0.19.ebuild:
+ Version bump.
20 Jul 2008; Greg Kroah-Hartman <gregkh@gentoo.org>
files/stfl-0.18-multilib.patch:
diff --git a/dev-libs/stfl/files/stfl-0.19-multilib.patch b/dev-libs/stfl/files/stfl-0.19-multilib.patch
new file mode 100644
index 000000000000..a32b09f0f566
--- /dev/null
+++ b/dev-libs/stfl/files/stfl-0.19-multilib.patch
@@ -0,0 +1,46 @@
+diff -aur stfl-0.19-orig/Makefile stfl-0.19/Makefile
+--- stfl-0.19-orig/Makefile 2007-09-19 19:24:14.000000000 -0400
++++ stfl-0.19/Makefile 2008-09-02 20:05:10.000000000 -0400
+@@ -50,9 +50,9 @@
+ mv -f Makefile.deps_new Makefile.deps
+
+ install: all
+- mkdir -p $(DESTDIR)$(prefix)/lib
++ mkdir -p $(DESTDIR)$(prefix)/$(LIBDIR)
+ mkdir -p $(DESTDIR)$(prefix)/include
+- install -m 644 libstfl.a $(DESTDIR)$(prefix)/lib/
++ install -m 644 libstfl.a $(DESTDIR)$(prefix)/$(LIBDIR)/
+ install -m 644 stfl.h $(DESTDIR)$(prefix)/include/
+
+ ifeq ($(FOUND_SPL),1)
+diff -aur stfl-0.19-orig/python/Makefile.snippet stfl-0.19/python/Makefile.snippet
+--- stfl-0.19-orig/python/Makefile.snippet 2007-09-03 12:13:04.000000000 -0400
++++ stfl-0.19/python/Makefile.snippet 2008-09-02 20:00:40.000000000 -0400
+@@ -32,8 +32,8 @@
+ cd python && python -c 'import stfl'
+
+ install_python: python/_stfl.so python/stfl.py python/stfl.pyc
+- mkdir -p $(DESTDIR)$(prefix)/lib/python$(PYTHON_VERSION)/lib-dynload/
+- cp python/_stfl.so $(DESTDIR)$(prefix)/lib/python$(PYTHON_VERSION)/lib-dynload/
+- cp python/stfl.pyc $(DESTDIR)$(prefix)/lib/python$(PYTHON_VERSION)/
+- cp python/stfl.py $(DESTDIR)$(prefix)/lib/python$(PYTHON_VERSION)/
++ mkdir -p $(DESTDIR)$(prefix)/$(LIBDIR)/python$(PYTHON_VERSION)/lib-dynload/
++ cp python/_stfl.so $(DESTDIR)$(prefix)/$(LIBDIR)/python$(PYTHON_VERSION)/lib-dynload/
++ cp python/stfl.pyc $(DESTDIR)$(prefix)/$(LIBDIR)/python$(PYTHON_VERSION)/
++ cp python/stfl.py $(DESTDIR)$(prefix)/$(LIBDIR)/python$(PYTHON_VERSION)/
+
+diff -aur stfl-0.19-orig/ruby/Makefile.snippet stfl-0.19/ruby/Makefile.snippet
+--- stfl-0.19-orig/ruby/Makefile.snippet 2007-09-03 12:13:04.000000000 -0400
++++ stfl-0.19/ruby/Makefile.snippet 2008-09-02 20:02:40.000000000 -0400
+@@ -25,9 +25,9 @@
+
+ ruby/build_ok: libstfl.a stfl.h ruby/stfl.i swig/*.i
+ cd ruby && swig -ruby stfl.i && ruby extconf.rb
+- $(MAKE) -C ruby clean && $(MAKE) -C ruby LIBS+="../libstfl.a -lncursesw" CFLAGS+="-pthread -I.." DLDFLAGS+="-pthread" DESTDIR=$(DESTDIR) prefix=$(prefix) sitedir=$(prefix)/lib/ruby
++ $(MAKE) -C ruby clean && $(MAKE) -C ruby LIBS+="../libstfl.a -lncursesw" CFLAGS+="-pthread -I.." DLDFLAGS+="-pthread" DESTDIR=$(DESTDIR) prefix=$(prefix) sitedir=$(prefix)/$(LIBDIR)/ruby
+ touch ruby/build_ok
+
+ install_ruby: ruby/build_ok
+- $(MAKE) -C ruby DESTDIR=$(DESTDIR) prefix=$(prefix) sitedir='$(DESTDIR)$(prefix)/lib/ruby' install
++ $(MAKE) -C ruby DESTDIR=$(DESTDIR) prefix=$(prefix) sitedir='$(DESTDIR)$(prefix)/$(LIBDIR)/ruby' install
+
diff --git a/dev-libs/stfl/metadata.xml b/dev-libs/stfl/metadata.xml
index 2605acf6a640..b32e3d8ac98c 100644
--- a/dev-libs/stfl/metadata.xml
+++ b/dev-libs/stfl/metadata.xml
@@ -3,8 +3,8 @@
<pkgmetadata>
<herd>no-herd</herd>
<maintainer>
- <email>maintainer-needed@gentoo.org</email>
- <name>Default assignee for orphaned packages</name>
+ <email>gentoofan23@gmail.com</email>
+ <name>Thomas Anderson</name>
</maintainer>
<longdescription lang="en">
STFL is a library which implements a curses-based widget set for text
diff --git a/dev-libs/stfl/stfl-0.19.ebuild b/dev-libs/stfl/stfl-0.19.ebuild
new file mode 100644
index 000000000000..eba4229df98c
--- /dev/null
+++ b/dev-libs/stfl/stfl-0.19.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/stfl/stfl-0.19.ebuild,v 1.1 2008/09/03 22:58:33 gentoofan23 Exp $
+
+inherit perl-module toolchain-funcs eutils multilib
+
+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 ~x86"
+
+IUSE="examples perl python ruby"
+
+COMMON_DEPEND="sys-libs/ncurses
+ 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}"
+
+pkg_setup() {
+ 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
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i \
+ -e "s!-Os -ggdb!!" \
+ -e "s!^all:.*!all: libstfl.a!" \
+ Makefile
+
+ epatch "${FILESDIR}/${P}-multilib.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() {
+
+ 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
+ ## Remove some empty directories
+ rm -fr "${D}/usr/$(get_libdir)/perl5/5.8.8/" || die "Perl directory cleanup failed"
+}