# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=0
+EAPI=7
JAVA_PKG_IUSE="doc source"
DESCRIPTION="A high performance, transactional storage engine written entirely in Java"
HOMEPAGE="https://www.oracle.com/database/berkeley-db/java-edition.html"
-SRC_URI="http://download.oracle.com/berkeley-db/${P/db-/}.tar.gz"
+SRC_URI="https://download.oracle.com/berkeley-db/${P/db-/}.tar.gz"
+S=${WORKDIR}/${P/db-/}
LICENSE="Sleepycat BSD"
SLOT="3.3"
KEYWORDS="amd64 x86"
IUSE=""
-DEPEND=">=virtual/jdk-1.5"
+DEPEND=">=virtual/jdk-1.5
+ dev-java/ant-core:0"
RDEPEND=">=virtual/jre-1.5"
-S=${WORKDIR}/${P/db-/}
-src_unpack() {
- unpack ${A}
- cd "${S}" || die
- epatch "${FILESDIR}"/${P}-optional-test.patch
- rm -rf docs
+EANT_DOC_TARGET="javadoc-all"
+EANT_EXTRA_ARGS="-Dnotest=true"
+
+src_prepare() {
+ default
+ eapply "${FILESDIR}"/${P}-optional-test.patch
+ rm -r docs || die
cd lib || die
- rm -v *jar || die
+ rm -v *.jar || die
java-pkg_jar-from --build-only ant-core ant.jar
}
-EANT_DOC_TARGET="javadoc-all"
-EANT_EXTRA_ARGS="-Dnotest=true"
-
src_install() {
java-pkg_dojar build/lib/je.jar
use doc && java-pkg_dojavadoc docs
---- build.xml 2008-06-11 05:25:20.000000000 +0200
-+++ build.xml.new 2008-08-22 15:59:53.000000000 +0200
+--- a/build.xml 2008-06-11 05:25:20.000000000 +0200
++++ b/build.xml 2008-08-22 15:59:53.000000000 +0200
@@ -102,6 +102,7 @@
<path id="empty.classpath"/>