summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-db/qdbm/ChangeLog8
-rw-r--r--dev-db/qdbm/files/1.8.75-javacflags.patch11
-rw-r--r--dev-db/qdbm/files/digest-qdbm-1.8.75-r13
-rw-r--r--dev-db/qdbm/qdbm-1.8.75-r1.ebuild111
4 files changed, 132 insertions, 1 deletions
diff --git a/dev-db/qdbm/ChangeLog b/dev-db/qdbm/ChangeLog
index b99590185b25..0d4b9f74ff1b 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.104 2007/04/21 10:30:36 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/qdbm/ChangeLog,v 1.105 2007/04/25 16:04:30 betelgeuse Exp $
+
+*qdbm-1.8.75-r1 (25 Apr 2007)
+
+ 25 Apr 2007; Petteri Räty <betelgeuse@gentoo.org>
+ +files/1.8.75-javacflags.patch, +qdbm-1.8.75-r1.ebuild:
+ Fix to always generate 1.4 bytecode. Fixes bug #174621.
21 Apr 2007; Raúl Porcel <armin76@gentoo.org> qdbm-1.8.74.ebuild:
ia64 stable
diff --git a/dev-db/qdbm/files/1.8.75-javacflags.patch b/dev-db/qdbm/files/1.8.75-javacflags.patch
new file mode 100644
index 000000000000..1ccccd9d7a72
--- /dev/null
+++ b/dev-db/qdbm/files/1.8.75-javacflags.patch
@@ -0,0 +1,11 @@
+--- a/qdbm-1.8.75/java/Makefile.in
++++ b/qdbm-1.8.75/java/Makefile.in
+@@ -44,7 +44,7 @@ DESTDIR =
+ MYJAVAHOME = @MYJAVAHOME@
+ JVMPLATFORM = @JVMPLATFORM@
+ JAVAC = @JAVAC@
+-JAVACFLAGS = -d .
++JAVACFLAGS := $(JAVACFLAGS) -d .
+ JAR = @JAR@
+ JAVAH = @JAVAH@
+ JAVADOC = @JAVADOC@
diff --git a/dev-db/qdbm/files/digest-qdbm-1.8.75-r1 b/dev-db/qdbm/files/digest-qdbm-1.8.75-r1
new file mode 100644
index 000000000000..b6ed772f2b9c
--- /dev/null
+++ b/dev-db/qdbm/files/digest-qdbm-1.8.75-r1
@@ -0,0 +1,3 @@
+MD5 9f1fca3bf60116b3b3767d32337cde8b qdbm-1.8.75.tar.gz 947612
+RMD160 a7886b98ef4006486b87ac51a8edb62a927a6238 qdbm-1.8.75.tar.gz 947612
+SHA256 539b5f7d024a9f5d64dd757da7c636c934f5c74e2ad3a9fa60af7dd94bf6fde5 qdbm-1.8.75.tar.gz 947612
diff --git a/dev-db/qdbm/qdbm-1.8.75-r1.ebuild b/dev-db/qdbm/qdbm-1.8.75-r1.ebuild
new file mode 100644
index 000000000000..96547a9dec7a
--- /dev/null
+++ b/dev-db/qdbm/qdbm-1.8.75-r1.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/qdbm/qdbm-1.8.75-r1.ebuild,v 1.1 2007/04/25 16:04:30 betelgeuse 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 ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+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}"
+
+ epatch "${FILESDIR}"/${P}-runpath.diff
+ epatch "${FILESDIR}"/${PN}-perl-runpath-vendor.diff
+ epatch "${FILESDIR}"/1.8.75-javacflags.patch
+
+}
+
+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
+
+}