summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Sachau <tommy@gentoo.org>2008-09-07 15:55:26 +0000
committerThomas Sachau <tommy@gentoo.org>2008-09-07 15:55:26 +0000
commitd8908284b9461664923d61d94e1891572f95ef88 (patch)
tree0d9af07dcd9217917f6e1631dc2e1136996bb58d /dev-java
parentsci-visualization/jps2ps: Version bump for jps2ps, thanks to Tommy[D] (diff)
downloadsunrise-d8908284b9461664923d61d94e1891572f95ef88.tar.gz
sunrise-d8908284b9461664923d61d94e1891572f95ef88.tar.bz2
sunrise-d8908284b9461664923d61d94e1891572f95ef88.zip
dev-java/db4o: Initial commit for bug 236981 (will be a dep for future net-p2p/freenet versions)
svn path=/sunrise/; revision=7000
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/db4o/ChangeLog9
-rw-r--r--dev-java/db4o/Manifest5
-rw-r--r--dev-java/db4o/db4o-7.4.ebuild32
-rw-r--r--dev-java/db4o/files/build.xml91
-rw-r--r--dev-java/db4o/metadata.xml5
5 files changed, 142 insertions, 0 deletions
diff --git a/dev-java/db4o/ChangeLog b/dev-java/db4o/ChangeLog
new file mode 100644
index 000000000..d3e5e015b
--- /dev/null
+++ b/dev-java/db4o/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-java/db4o
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 07 Sep 2008; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> +db4o-7.4.ebuild,
+ +files/build.xml, +metadata.xml:
+ Initial commit for bug 236981 (will be a dep for future net-p2p/freenet
+ versions)
+
diff --git a/dev-java/db4o/Manifest b/dev-java/db4o/Manifest
new file mode 100644
index 000000000..d48192fbe
--- /dev/null
+++ b/dev-java/db4o/Manifest
@@ -0,0 +1,5 @@
+AUX build.xml 2837 RMD160 74069ca1509dd46c7f32abe5021a298d04dcf667 SHA1 924aa806d6d7ba2513dadfaf4644660f32585b20 SHA256 49f349ea1ac046bc34c59b81305ae348eb9caea035ed779d984db9e1a018ea6e
+DIST db4o-7.4-java.zip 32975510 RMD160 5d9f2f3b588b03b5c6fe25178544276adc9b0c52 SHA1 ecaa3d21412c9ebfbea6c28e2beb656fc33c7e4a SHA256 7368514e5314fb01835aa1d030fbcefa3e4fb6404a1cfbda32bc0d5cb946008b
+EBUILD db4o-7.4.ebuild 578 RMD160 8f0c7624d624e8d1797a7f4960be4b40f12fa92f SHA1 6b7b25daf13aff7fda166a7c29f81a6aad2591f9 SHA256 dbde34a8615d1b93f0dd8d8a2ac8f4f09ea3a4b865c54873ab975020b8065b0a
+MISC ChangeLog 313 RMD160 43b3371062c4f1743de07d9e0b9facf28754dace SHA1 fb0f4ad6aa825158444d5223292df176bb46567f SHA256 373339db63792d0744d342dfe170581f7c543c13497ce0f1105ca00ed6d0023a
+MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/dev-java/db4o/db4o-7.4.ebuild b/dev-java/db4o/db4o-7.4.ebuild
new file mode 100644
index 000000000..57cce8119
--- /dev/null
+++ b/dev-java/db4o/db4o-7.4.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+JAVA_PKG_IUSE="source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Object database for java"
+HOMEPAGE="http://www.db4o.com"
+SRC_URI="http://www.db4o.com/downloads/${P}-java.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.5"
+DEPEND=">=virtual/jdk-1.5
+ app-arch/unzip"
+
+src_unpack() {
+ unpack ${A}
+ cp "${FILESDIR}"/build.xml "${S}"
+}
+
+src_install() {
+ java-pkg_dojar "${PN}.jar"
+ use source && java-pkg_dosrc src
+}
+
diff --git a/dev-java/db4o/files/build.xml b/dev-java/db4o/files/build.xml
new file mode 100644
index 000000000..574ae1782
--- /dev/null
+++ b/dev-java/db4o/files/build.xml
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project name="db4o" default="jar" basedir=".">
+ <description>
+ DB4O doesn't provide a decent building script... here is the one we are going to use.
+ </description>
+
+ <!-- set global properties for this build -->
+ <property name="src" location="src"/>
+ <property name="build" location="build"/>
+ <property name="build-db4oj" location="build-db4oj"/>
+ <property name="build-db4ojdk1.2" location="build-db4ojdk1.2"/>
+ <property name="build-db4ojdk5" location="build-db4ojdk5"/>
+ <property name="jarfile" location="db4o.jar"/>
+ <property name="javac.target.version" value="1.5"/>
+
+ <assertions>
+ <enable/>
+ </assertions>
+
+ <target name="mkdir">
+ <mkdir dir="${build}"/>
+ <mkdir dir="${build-db4oj}"/>
+ <mkdir dir="${build-db4ojdk1.2}"/>
+ <mkdir dir="${build-db4ojdk5}"/>
+ </target>
+
+ <!-- ================================================== -->
+
+ <target name="compile" depends="mkdir">
+ <!-- Create the time stamp -->
+ <tstamp/>
+
+ <javac srcdir="${src}" destdir="${build-db4oj}" debug="on" optimize="on" source="${javac.target.version}">
+ <include name="db4oj/**/*.java"/>
+ <exclude name="db4oj/test/**/*.java"/>
+ </javac>
+
+ <javac srcdir="${src}" destdir="${build-db4ojdk1.2}" debug="on" optimize="on" source="${javac.target.version}">
+ <classpath>
+ <pathelement location="${build-db4oj}"/>
+ </classpath>
+
+ <include name="db4ojdk1.2/**/*.java"/>
+ <exclude name="db4ojdk1.2/test/**/*.java"/>
+ </javac>
+
+ <javac srcdir="${src}" destdir="${build-db4ojdk5}" debug="on" optimize="on" source="${javac.target.version}">
+ <classpath>
+ <pathelement location="${build-db4oj}"/>
+ <pathelement location="${build-db4ojdk1.2}"/>
+ </classpath>
+
+ <include name="db4ojdk5/**/*.java"/>
+ <exclude name="db4ojdk5/test/**/*.java"/>
+ </javac>
+ </target>
+
+ <!-- ================================================== -->
+
+ <target name="mergeOptimizations" depends="compile">
+ <!-- yes, order matters! -->
+ <copy todir="${build}/" overwrite="true">
+ <fileset dir="${build-db4oj}"/>
+ </copy>
+ <copy todir="${build}/" overwrite="true">
+ <fileset dir="${build-db4ojdk1.2}"/>
+ </copy>
+ <copy todir="${build}/" overwrite="true">
+ <fileset dir="${build-db4ojdk5}"/>
+ </copy>
+ </target>
+
+ <!-- ================================================== -->
+
+ <target name="jar" depends="compile, mergeOptimizations"
+ description="generate the distribution" >
+ <!-- Create the distribution directory -->
+ <jar jarfile="${jarfile}" basedir="${build}"/>
+ </target>
+
+ <!-- ================================================== -->
+
+ <target name="clean" description="Delete class files and docs dir.">
+ <delete file="${jarfile}"/>
+ <delete dir="${build}"/>
+ <delete dir="${build-db4oj}"/>
+ <delete dir="${build-db4ojdk1.2}"/>
+ <delete dir="${build-db4ojdk5}"/>
+ </target>
+</project>
diff --git a/dev-java/db4o/metadata.xml b/dev-java/db4o/metadata.xml
new file mode 100644
index 000000000..7e3286984
--- /dev/null
+++ b/dev-java/db4o/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>maintainer-wanted</herd>
+</pkgmetadata>