summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2008-02-04 17:16:52 +0000
committerAkinori Hattori <hattya@gentoo.org>2008-02-04 17:16:52 +0000
commit1598b426b74de2d3e88002662e6287a34ce97c4e (patch)
tree7ed9cc28e6d3778911b71a5e896fab3f87b2a43f /dev-db/qdbm
parentDropped ppc-macos keyword, see you in prefix (diff)
downloadgentoo-2-1598b426b74de2d3e88002662e6287a34ce97c4e.tar.gz
gentoo-2-1598b426b74de2d3e88002662e6287a34ce97c4e.tar.bz2
gentoo-2-1598b426b74de2d3e88002662e6287a34ce97c4e.zip
new upstream release.
(Portage version: 2.1.3.19)
Diffstat (limited to 'dev-db/qdbm')
-rw-r--r--dev-db/qdbm/ChangeLog10
-rw-r--r--dev-db/qdbm/files/qdbm-1.8.77-runpath.diff36
-rw-r--r--dev-db/qdbm/qdbm-1.8.77.ebuild112
3 files changed, 156 insertions, 2 deletions
diff --git a/dev-db/qdbm/ChangeLog b/dev-db/qdbm/ChangeLog
index 4650e8c3a990..22ff44895e98 100644
--- a/dev-db/qdbm/ChangeLog
+++ b/dev-db/qdbm/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-db/qdbm
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/qdbm/ChangeLog,v 1.118 2007/12/29 10:53:29 welp Exp $
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/qdbm/ChangeLog,v 1.119 2008/02/04 17:16:51 hattya Exp $
+
+*qdbm-1.8.77 (04 Feb 2008)
+
+ 04 Feb 2008; Akinori Hattori <hattya@gentoo.org>
+ +files/qdbm-1.8.77-runpath.diff, +qdbm-1.8.77.ebuild:
+ new upstream release.
29 Dec 2007; <welp@gentoo.org> qdbm-1.8.75-r1.ebuild:
Keyworded ~x86-fbsd; bug 203149
diff --git a/dev-db/qdbm/files/qdbm-1.8.77-runpath.diff b/dev-db/qdbm/files/qdbm-1.8.77-runpath.diff
new file mode 100644
index 000000000000..9d83fb4dcd83
--- /dev/null
+++ b/dev-db/qdbm/files/qdbm-1.8.77-runpath.diff
@@ -0,0 +1,36 @@
+diff -urN qdbm-1.8.77.orig/Makefile.in qdbm-1.8.77/Makefile.in
+--- qdbm-1.8.77.orig/Makefile.in 2007-03-07 11:40:47.000000000 +0900
++++ qdbm-1.8.77/Makefile.in 2007-12-15 22:02:36.719642580 +0900
+@@ -61,7 +61,7 @@
+ LIBS = -lqdbm @LIBS@
+ LIBLDFLAGS = @LDFLAGS@ -L. -L$(MYLIBDIR) -L$(HOME)/lib -L/usr/local/lib @LIBS@
+ LDFLAGS = @LDFLAGS@ -L. -L$(MYLIBDIR) -L$(HOME)/lib -L/usr/local/lib $(LIBS)
+-LDENV = LD_RUN_PATH=/lib:/usr/lib:$(MYLIBDIR):$(HOME)/lib:/usr/local/lib
++LDENV =
+ AR = @AR@
+ ARFLAGS = rcsv
+ RUNENV = LD_LIBRARY_PATH=.:/lib:/usr/lib:$(MYLIBDIR):$(HOME)/lib:/usr/local/lib
+diff -urN qdbm-1.8.77.orig/cgi/Makefile.in qdbm-1.8.77/cgi/Makefile.in
+--- qdbm-1.8.77.orig/cgi/Makefile.in 2006-08-24 11:55:12.000000000 +0900
++++ qdbm-1.8.77/cgi/Makefile.in 2007-12-15 22:02:43.804668256 +0900
+@@ -28,7 +28,7 @@
+ CFLAGS = -Wall -ansi -pedantic -fsigned-char -O2
+ LIBS = -lqdbm @LIBS@
+ LDFLAGS = -L$(srcdir)/.. -L$(HOME)/lib -L/usr/local/lib $(LIBS)
+-LDENV = LD_RUN_PATH=/lib:/usr/lib:$(HOME)/lib:/usr/local/lib:$(prefix)/lib
++LDENV =
+
+ # Install destinations
+ prefix = @prefix@
+diff -urN qdbm-1.8.77.orig/plus/Makefile.in qdbm-1.8.77/plus/Makefile.in
+--- qdbm-1.8.77.orig/plus/Makefile.in 2007-03-07 11:44:27.000000000 +0900
++++ qdbm-1.8.77/plus/Makefile.in 2007-12-15 22:02:32.976636806 +0900
+@@ -51,7 +51,7 @@
+ -L$(HOME)/lib -L/usr/local/lib $(LIBS)
+ LDFLAGS = @LDFLAGS@ -L. -L$(srcdir)/.. -L$(MYLIBDIR) \
+ -L$(HOME)/lib -L/usr/local/lib -lxqdbm $(LIBS)
+-LDENV = LD_RUN_PATH=/lib:/usr/lib:$(MYLIBDIR):$(HOME)/lib:/usr/local/lib
++LDENV =
+ AR = @AR@
+ ARFLAGS = rcsv
+ RUNENV = LD_LIBRARY_PATH=.:..:/lib:/usr/lib:$(MYLIBDIR):$(HOME)/lib:/usr/local/lib
diff --git a/dev-db/qdbm/qdbm-1.8.77.ebuild b/dev-db/qdbm/qdbm-1.8.77.ebuild
new file mode 100644
index 000000000000..daa002d6b066
--- /dev/null
+++ b/dev-db/qdbm/qdbm-1.8.77.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/qdbm/qdbm-1.8.77.ebuild,v 1.1 2008/02/04 17:16:51 hattya Exp $
+
+inherit eutils java-pkg-opt-2 multilib
+
+IUSE="debug java perl ruby zlib"
+
+DESCRIPTION="Quick Database Manager"
+HOMEPAGE="http://qdbm.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+SLOT="0"
+
+RDEPEND="java? ( >=virtual/jre-1.4 )
+ perl? ( dev-lang/perl )
+ ruby? ( virtual/ruby )
+ zlib? ( sys-libs/zlib )"
+DEPEND="${RDEPEND}
+ java? ( >=virtual/jdk-1.4 )"
+
+src_unpack() {
+
+ unpack ${A}
+ cd "${S}"
+
+ sed -i "/^JAVACFLAGS/s:$: ${JAVACFLAGS}:" java/Makefile.in
+
+ epatch "${FILESDIR}"/${P}-runpath.diff
+ epatch "${FILESDIR}"/${PN}-perl-runpath-vendor.diff
+
+}
+
+src_compile() {
+
+ econf \
+ $(use_enable debug) \
+ $(use_enable zlib) \
+ --enable-pthread \
+ --enable-iconv \
+ || die
+ emake || die
+
+ local u
+
+ for u in java perl ruby; do
+ if ! use ${u}; then
+ continue
+ fi
+
+ cd ${u}
+ econf || die
+ emake || die
+ cd -
+ done
+
+}
+
+src_test() {
+
+ emake -j1 check || die
+
+ local u
+
+ for u in java perl ruby; do
+ if ! use ${u}; then
+ continue
+ fi
+
+ cd ${u}
+ emake -j1 check || die
+ cd -
+ done
+
+}
+
+src_install() {
+
+ emake DESTDIR="${D}" install || die
+
+ dodoc ChangeLog NEWS README THANKS
+ dohtml *.html
+
+ rm -rf "${D}"/usr/share/${PN}
+
+ local u mydatadir=/usr/share/doc/${P}/html
+
+ for u in java perl ruby; do
+ if ! use ${u}; then
+ continue
+ fi
+
+ cd ${u}
+ emake DESTDIR="${D}" MYDATADIR=${mydatadir}/${u} install || die
+
+ case ${u} in
+ java)
+ java-pkg_dojar "${D}"/usr/$(get_libdir)/*.jar
+ rm -f "${D}"/usr/$(get_libdir)/*.jar
+ ;;
+ perl)
+ rm "${D}"/$(perl -V:installarchlib | cut -d\' -f2)/*.pod
+ ;;
+ esac
+ cd -
+ done
+
+ rm -f "${D}"/usr/bin/*test
+
+}