summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2006-09-30 13:27:46 +0000
committerAkinori Hattori <hattya@gentoo.org>2006-09-30 13:27:46 +0000
commitaf46747a52cc8e48f1b1a612cd26c9cff220c7c8 (patch)
tree53ebd75d8b181cbcfe84e83b57890b4ce8daf442 /dev-db
parentMarking ImageSize-3.01 ~ppc64 with new keyword per bug #149612 (diff)
downloadgentoo-2-af46747a52cc8e48f1b1a612cd26c9cff220c7c8.tar.gz
gentoo-2-af46747a52cc8e48f1b1a612cd26c9cff220c7c8.tar.bz2
gentoo-2-af46747a52cc8e48f1b1a612cd26c9cff220c7c8.zip
rename from qdbm-1.8.70.ebuild. this uses generation-2 for building java binding.
(Portage version: 2.1.1)
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/qdbm/ChangeLog9
-rw-r--r--dev-db/qdbm/files/digest-qdbm-1.8.70-r23
-rw-r--r--dev-db/qdbm/qdbm-1.8.70-r2.ebuild110
3 files changed, 121 insertions, 1 deletions
diff --git a/dev-db/qdbm/ChangeLog b/dev-db/qdbm/ChangeLog
index c62151c3be61..0b872de0c91f 100644
--- a/dev-db/qdbm/ChangeLog
+++ b/dev-db/qdbm/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-db/qdbm
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/qdbm/ChangeLog,v 1.86 2006/09/30 13:15:47 hattya Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/qdbm/ChangeLog,v 1.87 2006/09/30 13:27:46 hattya Exp $
+
+*qdbm-1.8.70-r2 (30 Sep 2006)
+
+ 30 Sep 2006; Akinori Hattori <hattya@gentoo.org> -qdbm-1.8.70.ebuild,
+ +qdbm-1.8.70-r2.ebuild:
+ rename from qdbm-1.8.70.ebuild. this uses generation-2 for building java
+ binding.
*qdbm-1.8.70-r1 (30 Sep 2006)
diff --git a/dev-db/qdbm/files/digest-qdbm-1.8.70-r2 b/dev-db/qdbm/files/digest-qdbm-1.8.70-r2
new file mode 100644
index 000000000000..bc7de66d7e5a
--- /dev/null
+++ b/dev-db/qdbm/files/digest-qdbm-1.8.70-r2
@@ -0,0 +1,3 @@
+MD5 f4e2ee516b223122565199ff4b032f9f qdbm-1.8.70.tar.gz 914959
+RMD160 350ed9b831f8ed63486bcc4742d06595b5345927 qdbm-1.8.70.tar.gz 914959
+SHA256 a18804ec4ec3e05d58aee485a563b36aab1f7133f15967b512b7c2011d103513 qdbm-1.8.70.tar.gz 914959
diff --git a/dev-db/qdbm/qdbm-1.8.70-r2.ebuild b/dev-db/qdbm/qdbm-1.8.70-r2.ebuild
new file mode 100644
index 000000000000..e83d62d16eb9
--- /dev/null
+++ b/dev-db/qdbm/qdbm-1.8.70-r2.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/qdbm/qdbm-1.8.70-r2.ebuild,v 1.1 2006/09/30 13:27:46 hattya Exp $
+
+inherit eutils java-pkg-opt-2 multilib
+
+IUSE="debug java perl ruby zlib"
+
+DESCRIPTION="Quick Database Manager"
+HOMEPAGE="http://qdbm.sf.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~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}"/${PN}-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
+
+}