diff options
author | Thomas Matthijs <axxo@gentoo.org> | 2004-10-30 20:39:36 +0000 |
---|---|---|
committer | Thomas Matthijs <axxo@gentoo.org> | 2004-10-30 20:39:36 +0000 |
commit | 75bb1497afdb8cfc64d36428008742894c480f2a (patch) | |
tree | 4376ca5254143bd98a3befa90ab9e0eb67094081 /dev-java | |
parent | inital import, ebuild contributed by Dan <dan@intuitivelyobvious.net> (Manife... (diff) | |
download | gentoo-2-75bb1497afdb8cfc64d36428008742894c480f2a.tar.gz gentoo-2-75bb1497afdb8cfc64d36428008742894c480f2a.tar.bz2 gentoo-2-75bb1497afdb8cfc64d36428008742894c480f2a.zip |
inital import, ebuild contributed by Dan <dan@intuitivelyobvious.net>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/odmg/ChangeLog | 10 | ||||
-rw-r--r-- | dev-java/odmg/Manifest | 2 | ||||
-rw-r--r-- | dev-java/odmg/files/build-odmg.xml | 38 | ||||
-rw-r--r-- | dev-java/odmg/files/digest-odmg-3.0 | 1 | ||||
-rw-r--r-- | dev-java/odmg/metadata.xml | 5 | ||||
-rw-r--r-- | dev-java/odmg/odmg-3.0.ebuild | 43 |
6 files changed, 99 insertions, 0 deletions
diff --git a/dev-java/odmg/ChangeLog b/dev-java/odmg/ChangeLog new file mode 100644 index 000000000000..a70878b79cec --- /dev/null +++ b/dev-java/odmg/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-java/odmg +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/odmg/ChangeLog,v 1.1 2004/10/30 20:39:36 axxo Exp $ + +*odmg-3.0 (30 Oct 2004) + + 30 Oct 2004; Thomas Matthijs <axxo@gentoo.org> +metadata.xml, + +files/build-odmg.xml, +odmg-3.0.ebuild: + inital import, ebuild contributed by Dan <dan@intuitivelyobvious.net> + diff --git a/dev-java/odmg/Manifest b/dev-java/odmg/Manifest new file mode 100644 index 000000000000..bacb304105d1 --- /dev/null +++ b/dev-java/odmg/Manifest @@ -0,0 +1,2 @@ +MD5 2524392d6fc4899527da5efb930c20a5 odmg-3.0.ebuild 1112 +MD5 764aee18b261c1931a3c984539ae6271 files/digest-odmg-3.0 66 diff --git a/dev-java/odmg/files/build-odmg.xml b/dev-java/odmg/files/build-odmg.xml new file mode 100644 index 000000000000..f4c76d1fd586 --- /dev/null +++ b/dev-java/odmg/files/build-odmg.xml @@ -0,0 +1,38 @@ +<?xml version='1.0' encoding='UTF-8'?> + +<!-- + Builds the ODMG 3.0 Java Binding from the Apache DB OJB project. + + Written by Daniel Solano. +--> +<project name="ODMG-3.0" default="all" basedir="."> + <property file="build.properties"/> + + <target name="init"> + <ant target="init"/> + </target> + + <target name="clean"> + <ant target="clean"/> + </target> + + <target name="prepare" depends="init"> + <ant target="prepare"/> + </target> + + <target name="compile" depends="prepare"> + <javac srcdir="${build.src}" destdir="${build.dest}"> + <include name="org/odmg/*.java"/> + </javac> + </target> + + <target name="jar" depends="compile"> + <jar destfile="${dist}/odmg.jar" basedir="${build.dest}"/> + </target> + + <target name="javadoc" depends="compile"> + <javadoc destdir="${build.javadoc}"> + <packageset dir="${build.src}" includes="org/odmg"/> + </javadoc> + </target> +</project> diff --git a/dev-java/odmg/files/digest-odmg-3.0 b/dev-java/odmg/files/digest-odmg-3.0 new file mode 100644 index 000000000000..9930bf330d0e --- /dev/null +++ b/dev-java/odmg/files/digest-odmg-3.0 @@ -0,0 +1 @@ +MD5 b923c2b512aa6c066b66483b540bbf49 db-ojb-1.0.1-src.tgz 7855604 diff --git a/dev-java/odmg/metadata.xml b/dev-java/odmg/metadata.xml new file mode 100644 index 000000000000..7303cef96964 --- /dev/null +++ b/dev-java/odmg/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>java</herd> +</pkgmetadata> diff --git a/dev-java/odmg/odmg-3.0.ebuild b/dev-java/odmg/odmg-3.0.ebuild new file mode 100644 index 000000000000..30012f144b88 --- /dev/null +++ b/dev-java/odmg/odmg-3.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/odmg/odmg-3.0.ebuild,v 1.1 2004/10/30 20:39:36 axxo Exp $ + +inherit java-pkg + +SRC_PN=db-ojb +SRC_PV=1.0.1 +SRC_P=${SRC_PN}-${SRC_PV} + +DESCRIPTION="The (now obsolete) ODMG 3.0 Java Binding, superceded by JDO." +SRC_URI="mirror://apache/db/ojb/${SRC_P}/${SRC_P}-src.tgz" +HOMEPAGE="http://www.odmg.org" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~x86 ~amd64" +RDEPEND=">=virtual/jre-1.3" +DEPEND=">=virtual/jdk-1.3 + >=dev-java/ant-core-1.5 " +IUSE="doc jikes" + +S=${WORKDIR}/${SRC_P} + +src_unpack() { + unpack ${A} + cd ${S} + cp ${FILESDIR}/build-odmg.xml . + sed -i -r -e "/import/d" -e "s/EnhancedOQL/OQL/g" \ + src/java/org/odmg/Implementation.java +} + +src_compile() { + local antflags="jar" + use jikes && antflags="${antflags} -Dbuild.compiler=jikes" + use doc && antflags="${antflags} javadoc" + ant -f build-odmg.xml ${antflags} || die "build failed" +} + +src_install() { + java-pkg_dojar dist/odmg.jar + dodoc LICENSE NOTICE + use doc && java-pkg_dohtml -r target/javadoc/* +} |