diff options
Diffstat (limited to 'dev-db/db-je')
-rw-r--r-- | dev-db/db-je/Manifest | 1 | ||||
-rw-r--r-- | dev-db/db-je/db-je-3.3.75.ebuild | 39 | ||||
-rw-r--r-- | dev-db/db-je/files/db-je-3.3.75-optional-test.patch | 45 | ||||
-rw-r--r-- | dev-db/db-je/metadata.xml | 10 |
4 files changed, 95 insertions, 0 deletions
diff --git a/dev-db/db-je/Manifest b/dev-db/db-je/Manifest new file mode 100644 index 00000000000..c563a83e11d --- /dev/null +++ b/dev-db/db-je/Manifest @@ -0,0 +1 @@ +DIST je-3.3.75.tar.gz 5179709 SHA256 98bb5b374eac336329e4bb87f537355ba5128e697f2bfea5904eba46a5f1ee08 SHA512 e28648459a3a7dcf98e8865e6859544c656c3b58688b244df568cc8c006a74dda79aadfbfb279e099c1376914cca064734da490998a864c1bd2cc3209bc64ae4 WHIRLPOOL a86747a5a30444847e666fd82bd397ead06b4597200b82ce7e88301e6e8531faf267b1cebf2850bfc072916a3a1b903fe35012466a44a5c6bd5311cbce43455b diff --git a/dev-db/db-je/db-je-3.3.75.ebuild b/dev-db/db-je/db-je-3.3.75.ebuild new file mode 100644 index 00000000000..2fa03b917ce --- /dev/null +++ b/dev-db/db-je/db-je-3.3.75.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Berkeley DB JE is a high performance, transactional storage engine written entirely in Java" +HOMEPAGE="http://www.oracle.com/database/berkeley-db/je/index.html" +SRC_URI="http://download.oracle.com/berkeley-db/${P/db-/}.tar.gz" + +LICENSE="Sleepycat BSD" +SLOT="3.3" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND=">=virtual/jdk-1.5" +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 + cd lib || 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 + use source && java-pkg_dosrc src/com +} diff --git a/dev-db/db-je/files/db-je-3.3.75-optional-test.patch b/dev-db/db-je/files/db-je-3.3.75-optional-test.patch new file mode 100644 index 00000000000..e8f7600398e --- /dev/null +++ b/dev-db/db-je/files/db-je-3.3.75-optional-test.patch @@ -0,0 +1,45 @@ +--- build.xml 2008-06-11 05:25:20.000000000 +0200 ++++ build.xml.new 2008-08-22 15:59:53.000000000 +0200 +@@ -102,6 +102,7 @@ + <path id="empty.classpath"/> + + <path id="class.path"> ++ <fileset dir="lib" includes="*.jar"/> + <pathelement location="${specificjar}"/> + <pathelement location="."/> + </path> +@@ -487,14 +488,14 @@ + <!-- JUnit unit tests --> + <!-- ============================================================ --> + +- <target name="init-unittest" depends="init"> ++ <target name="init-unittest" depends="init" unless="notest"> + <delete dir="${unittest.datadir}"/> + <delete dir="${unittest.reportsdir}"/> + <mkdir dir="${unittest.datadir}"/> + <mkdir dir="${unittest.reportsdir}"/> + </target> + +- <target name="clean-unittest" depends="init-unittest"> ++ <target name="clean-unittest" depends="init-unittest" unless="notest"> + <delete dir="${unittest.destdir}"/> + <mkdir dir="${unittest.destdir}"/> + <delete dir="${unittest.testserialdir}"/> +@@ -503,7 +504,7 @@ + <mkdir dir="${unittest.testevolvedir}"/> + </target> + +- <target name="compile-unittest" depends="compile-src"> ++ <target name="compile-unittest" depends="compile-src" unless="notest"> + <ant antfile="ant/compile.xml" dir="." inheritall="false"> + <property name="srcdir" value="${unittest.srcdir}"/> + <property name="destdir" value="${unittest.destdir}"/> +@@ -597,7 +598,7 @@ + </path> + + <target name="test" +- depends="compile-unittest, init-unittest, jar"> ++ depends="compile-unittest, init-unittest, jar" unless="notest"> + + <!-- Determine which tests to run. --> + <condition property="alltests"> diff --git a/dev-db/db-je/metadata.xml b/dev-db/db-je/metadata.xml new file mode 100644 index 00000000000..59b15e8a41a --- /dev/null +++ b/dev-db/db-je/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>tommy@gentoo.org</email> + <name>Thomas Sachau (Tommy[D])</name> + </maintainer> +<herd>java</herd> +</pkgmetadata> + |