diff options
author | Thomas Matthijs <axxo@gentoo.org> | 2005-06-29 18:37:51 +0000 |
---|---|---|
committer | Thomas Matthijs <axxo@gentoo.org> | 2005-06-29 18:37:51 +0000 |
commit | bdde1543f99e8ee91488077d5113b88d4f67a513 (patch) | |
tree | c4c58ef6e5317b2a426796e59b92452fe80a3c19 | |
parent | new packages, dep of dom4j, ebuild contributed by Josh Nichols <nichoj@alum.r... (diff) | |
download | historical-bdde1543f99e8ee91488077d5113b88d4f67a513.tar.gz historical-bdde1543f99e8ee91488077d5113b88d4f67a513.tar.bz2 historical-bdde1543f99e8ee91488077d5113b88d4f67a513.zip |
new packages, dep of dom4j, ebuild contributed by Josh Nichols <nichoj@alum.rpi.edu>
Package-Manager: portage-2.0.51.22-r1
25 files changed, 536 insertions, 0 deletions
diff --git a/dev-java/jaxme/ChangeLog b/dev-java/jaxme/ChangeLog new file mode 100644 index 000000000000..77a0d3adf8d8 --- /dev/null +++ b/dev-java/jaxme/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-java/jaxme +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jaxme/ChangeLog,v 1.1 2005/06/29 18:31:59 axxo Exp $ + +*jaxme-0.3.1 (29 Jun 2005) + + 29 Jun 2005; Thomas Matthijs <axxo@gentoo.org> + +files/jaxme-0.3.1-gentoo.patch, +metadata.xml, +jaxme-0.3.1.ebuild: + new packages, dep of dom4j, ebuild contributed by Josh Nichols + <nichoj@alum.rpi.edu> + diff --git a/dev-java/jaxme/Manifest b/dev-java/jaxme/Manifest new file mode 100644 index 000000000000..3f9449c2ef56 --- /dev/null +++ b/dev-java/jaxme/Manifest @@ -0,0 +1,3 @@ +MD5 487cd07da880e98f4f0c5d36bfeb8d71 jaxme-0.3.1.ebuild 1698 +MD5 8039a2f19bcc273d417ec48d00bbe87a files/jaxme-0.3.1-gentoo.patch 1771 +MD5 853d4cf0c1e2efc633bcfad8ade239e2 files/digest-jaxme-0.3.1 71 diff --git a/dev-java/jaxme/files/digest-jaxme-0.3.1 b/dev-java/jaxme/files/digest-jaxme-0.3.1 new file mode 100644 index 000000000000..48249823160f --- /dev/null +++ b/dev-java/jaxme/files/digest-jaxme-0.3.1 @@ -0,0 +1 @@ +MD5 d7a595ac138582ff2592e6b7d2e5cade ws-jaxme-0.3.1-src.tar.gz 3058903 diff --git a/dev-java/jaxme/files/jaxme-0.3.1-gentoo.patch b/dev-java/jaxme/files/jaxme-0.3.1-gentoo.patch new file mode 100644 index 000000000000..c51a33c713c7 --- /dev/null +++ b/dev-java/jaxme/files/jaxme-0.3.1-gentoo.patch @@ -0,0 +1,41 @@ +diff -ru ws-jaxme-0.3.1/build.xml ws-jaxme-0.3.1-patched/build.xml +--- ws-jaxme-0.3.1/build.xml 2004-09-02 18:41:58.000000000 -0400 ++++ ws-jaxme-0.3.1-patched/build.xml 2005-06-26 22:59:39.000000000 -0400 +@@ -157,9 +157,8 @@ + <target name="doc" depends="javadoc,docbook.html,forrest,replace" + description="Generates the documentation"/> + +- <target name="javadoc" depends="init,all" ++ <target name="javadoc" depends="init" + description="Generates the API documentation"> +- <delete dir="${build.apidocs}"/> + <mkdir dir="${build.apidocs}"/> + <javadoc + access="protected" +@@ -189,8 +188,8 @@ + <pathelement location="${src.js}"/> + <pathelement location="${src.jm}"/> + <pathelement location="${src.pm}"/> +- <pathelement location="${build.js.src}"/> +- <pathelement location="${build.jm.src}"/> ++ <!--pathelement location="${build.js.src}"/> ++ <pathelement location="${build.jm.src}"/--> + </sourcepath> + </javadoc> + </target> +@@ -245,6 +244,15 @@ + <delete dir="${dist}"/> + </target> + ++ <target name="jar"> ++ ++ <ant antfile="buildapi.xml" target="jar" inheritall="false" inheritrefs="false"/> ++ <ant antfile="buildxs.xml" target="jar" inheritall="false" inheritrefs="false"/> ++ <ant antfile="buildjs.xml" target="jar" inheritall="false" inheritrefs="false"/> ++ <ant antfile="buildjm.xml" target="compile" inheritall="false" inheritrefs="false"/> ++ <ant antfile="buildpm.xml" target="compile" inheritall="false" inheritrefs="false"/> ++ </target> ++ + <target name="all"> + <ant antfile="buildapi.xml" target="all" inheritall="false" inheritrefs="false"/> + <ant antfile="buildxs.xml" target="all" inheritall="false" inheritrefs="false"/> diff --git a/dev-java/jaxme/jaxme-0.3.1.ebuild b/dev-java/jaxme/jaxme-0.3.1.ebuild new file mode 100644 index 000000000000..40c4633d77b6 --- /dev/null +++ b/dev-java/jaxme/jaxme-0.3.1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jaxme/jaxme-0.3.1.ebuild,v 1.1 2005/06/29 18:31:59 axxo Exp $ + +inherit java-pkg eutils + +MY_PN=ws-${PN} +MY_P=${MY_PN}-${PV} +DESCRIPTION="JaxMe 2 is an open source implementation of JAXB, the specification for Java/XML binding." +HOMEPAGE="http://ws.apache.org/jaxme/index.html" +SRC_URI="http://mirrors.combose.com/apache/ws/jaxme/source/${MY_P}-src.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~x86" +IUSE="doc source" + +RDEPEND=">=virtual/jre-1.4 + dev-db/hsqldb + =dev-java/xerces-2* + dev-java/xmldb" +DEPEND=">=virtual/jdk-1.4 + dev-java/ant-core + dev-java/junit + ${RDEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${A} + + cd ${S} + # Fix the build.xml so we can build jars and javadoc easily + epatch ${FILESDIR}/${P}-gentoo.patch + + cd ${S}/prerequisites + rm *.jar + java-pkg_jarfrom hsqldb hsqldb.jar hsqldb-1.7.1.jar + java-pkg_jarfrom junit + java-pkg_jarfrom log4j log4j.jar log4j-1.2.8.jar + java-pkg_jarfrom xerces-2 + java-pkg_jarfrom xmldb xmldb-api.jar xmldb-api-20021118.jar + java-pkg_jarfrom xmldb xmldb-api-sdk.jar xmldb-api-sdk-20021118.jar +} + +src_compile() { + local antflags="jar" +# use jikes && antflags="-Dbuild.compiler=jikes ${antflags}" + use doc && antflags="${antflags} -Dbuild.apidocs=dist/doc/api javadoc" + + ant ${antflags} || die "Compilation failed" +} + +src_install() { + java-pkg_dojar dist/*.jar + + dodoc NOTICE + + use doc && java-pkg_dohtml -r dist/doc/api src/documentation/manual + use source && java-pkg_dosrc src/*/* +} diff --git a/dev-java/jaxme/metadata.xml b/dev-java/jaxme/metadata.xml new file mode 100644 index 000000000000..7303cef96964 --- /dev/null +++ b/dev-java/jaxme/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/jsr173/ChangeLog b/dev-java/jsr173/ChangeLog new file mode 100644 index 000000000000..b8455b6d008f --- /dev/null +++ b/dev-java/jsr173/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-java/jsr173 +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jsr173/ChangeLog,v 1.1 2005/06/29 18:34:20 axxo Exp $ + +*jsr173-1.0 (29 Jun 2005) + + 29 Jun 2005; Thomas Matthijs <axxo@gentoo.org> +files/build-1.0.xml, + +metadata.xml, +jsr173-1.0.ebuild: + new packages, dep of dom4j, ebuild contributed by Josh Nichols + <nichoj@alum.rpi.edu> + diff --git a/dev-java/jsr173/Manifest b/dev-java/jsr173/Manifest new file mode 100644 index 000000000000..fa7f40f71899 --- /dev/null +++ b/dev-java/jsr173/Manifest @@ -0,0 +1,3 @@ +MD5 b83442291ef5719c84f6b1ac1e79c04f jsr173-1.0.ebuild 1053 +MD5 c089b7d34f96c556a34bb8c402794023 files/build-1.0.xml 1546 +MD5 792db1cd7ea6dc98f85d378d93640840 files/digest-jsr173-1.0 55 diff --git a/dev-java/jsr173/files/build-1.0.xml b/dev-java/jsr173/files/build-1.0.xml new file mode 100644 index 000000000000..0fadc3fb4655 --- /dev/null +++ b/dev-java/jsr173/files/build-1.0.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="utf-8"?> +<!--- + @author: Saleem Abdulrasool <compnerd@gentoo.org> + @date: 5/9/2005 + @revision: 1.0_alpha + + @notes: Call using the following: ant -f build.xml -Dproject.name=${project name} -Dpackage.name=${package name} +--> + +<project name="Gentoo_Builder" default="jar" basedir="."> + <property name="src" value="src"/> + <property name="build" value="build"/> + <property name="dist" value="dist"/> + <property name="dist.docs" value="${dist}/doc/api"/> + + <property name="libdir" value="lib"/> + + <property name="pkg" value="${package.name}"/> + <property name="jar" value="${project.name}.jar"/> + + <path id="lib.classpath"> + <fileset dir="${libdir}"> + <include name="**/*.jar"/> + </fileset> + </path> + + <!-- Override any defined properties --> + <property file="build.properties"/> + + <target name="init"> + <tstamp/> + <mkdir dir="${build}"/> + <mkdir dir="${dist}"/> + <mkdir dir="${dist}/doc"/> + </target> + + <target name="compile" depends="init"> + <javac srcdir="${src}" destdir="${build}" classpathref="lib.classpath"/> + </target> + + <target name="manifest" depends="init"> + <manifest file="${build}/MANIFEST.MF" mode="update"> + <attribute name="Built-By" value="Gentoo Portage"/> + </manifest> + </target> + + <target name="jar" depends="compile,manifest"> + <jar jarfile="${dist}/${jar}" manifest="${build}/MANIFEST.MF"> + <fileset dir="${build}"/> + </jar> + </target> + + <target name="javadoc" depends="compile"> + <javadoc sourcepath="${src}" destdir="${dist.docs}" packagenames="*" classpathref="lib.classpath"/> + </target> + + <target name="clean"> + <delete dir="${build}"/> + <delete dir="${dist}"/> + </target> +</project> diff --git a/dev-java/jsr173/files/digest-jsr173-1.0 b/dev-java/jsr173/files/digest-jsr173-1.0 new file mode 100644 index 000000000000..03e77cf9cc92 --- /dev/null +++ b/dev-java/jsr173/files/digest-jsr173-1.0 @@ -0,0 +1 @@ +MD5 e4b93b2e95f0038da09bf257da0ea073 jsr173.jar 639734 diff --git a/dev-java/jsr173/jsr173-1.0.ebuild b/dev-java/jsr173/jsr173-1.0.ebuild new file mode 100644 index 000000000000..92c5320277ba --- /dev/null +++ b/dev-java/jsr173/jsr173-1.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jsr173/jsr173-1.0.ebuild,v 1.1 2005/06/29 18:34:20 axxo Exp $ + +inherit java-pkg + +DESCRIPTION="The Streaming API for XML (StAX) is a groundbreaking new Java API for parsing and writing XML easily and efficiently" +HOMEPAGE="http://dev2dev.bea.com/xml/stax.html" +SRC_URI="http://ftpna2.bea.com/pub/downloads/${PN}.jar" + +LICENSE="bea.ri.jsr173" +SLOT="0" +KEYWORDS="~x86" +IUSE="doc jikes source" + +RDEPEND=">=virtual/jre-1.3 + dev-java/jaxme" +DEPEND=">=virtual/jdk-1.3 + jikes? ( dev-java/jikes ) + dev-java/ant-core + ${RDEPEND}" + +S=${WORKDIR} + +src_unpack() { + cd ${S} + jar xvf ${DISTDIR}/${A} || die "failed to unpack" + + cp ${FILESDIR}/build-${PVR}.xml build.xml + + jar xvf ${P//-/_}_src.jar || die "failed to unpack" + rm *.jar + cd lib + rm *.jar + java-pkg_jarfrom jaxme +} + +src_compile() { + local antflags="-Dproject.name=${PN} jar" + use jikes && antflags="-Dbuild.compiler=jikes ${antflags}" + use doc && antflags="${antflags} javadoc" + + ant ${antflags} || die "Compilation failed" +} + +src_install() { + java-pkg_dojar dist/${PN}.jar + + use doc && java-pkg_dohtml -r dist/doc/api + use source && java-pkg_dosrc src/* +} diff --git a/dev-java/jsr173/metadata.xml b/dev-java/jsr173/metadata.xml new file mode 100644 index 000000000000..7303cef96964 --- /dev/null +++ b/dev-java/jsr173/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/relaxng-datatype/ChangeLog b/dev-java/relaxng-datatype/ChangeLog new file mode 100644 index 000000000000..6de0232887d0 --- /dev/null +++ b/dev-java/relaxng-datatype/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for dev-java/relaxng-datatype +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/relaxng-datatype/ChangeLog,v 1.1 2005/06/29 18:37:51 axxo Exp $ + +*relaxng-datatype-1.0 (29 Jun 2005) + + 29 Jun 2005; Thomas Matthijs <axxo@gentoo.org> + +files/relaxng-datatype-1.0-build_xml.patch, +metadata.xml, + +relaxng-datatype-1.0.ebuild: + new packages, dep of dom4j, ebuild contributed by Josh Nichols + <nichoj@alum.rpi.edu> + diff --git a/dev-java/relaxng-datatype/Manifest b/dev-java/relaxng-datatype/Manifest new file mode 100644 index 000000000000..bda38766bcaf --- /dev/null +++ b/dev-java/relaxng-datatype/Manifest @@ -0,0 +1,3 @@ +MD5 ddfe7c014241a1d782a17bc5f2731024 relaxng-datatype-1.0.ebuild 1012 +MD5 96a39cd43588e4f12ff5456a863d810b files/digest-relaxng-datatype-1.0 67 +MD5 ebbff7778f132e9e205c25d4daa5e84f files/relaxng-datatype-1.0-build_xml.patch 1972 diff --git a/dev-java/relaxng-datatype/files/digest-relaxng-datatype-1.0 b/dev-java/relaxng-datatype/files/digest-relaxng-datatype-1.0 new file mode 100644 index 000000000000..5244bd7c06cd --- /dev/null +++ b/dev-java/relaxng-datatype/files/digest-relaxng-datatype-1.0 @@ -0,0 +1 @@ +MD5 d83828aa9f019c81b598e56d2c44c896 relaxngDatatype-1.0.zip 74033 diff --git a/dev-java/relaxng-datatype/files/relaxng-datatype-1.0-build_xml.patch b/dev-java/relaxng-datatype/files/relaxng-datatype-1.0-build_xml.patch new file mode 100644 index 000000000000..c77438f5581f --- /dev/null +++ b/dev-java/relaxng-datatype/files/relaxng-datatype-1.0-build_xml.patch @@ -0,0 +1,71 @@ +diff -ru relaxngDatatype-1.0/build.xml relaxngDatatype-1.0-patched/build.xml +--- relaxngDatatype-1.0/build.xml 2001-11-27 19:20:34.000000000 -0500 ++++ relaxngDatatype-1.0-patched/build.xml 2005-06-25 23:05:35.000000000 -0400 +@@ -1,12 +1,10 @@ + <?xml version="1.0"?>
+
+-<project name="relaxng" basedir="." default="release">
++<project name="relaxng" basedir="." default="dist">
+ <property name="version" value="1.0"/>
+
+- <target name="release">
+- <tstamp/>
+-
+ <!-- compile Java source files -->
++ <target name="compile">
+ <mkdir dir="bin"/>
+ <javac
+ srcdir="src"
+@@ -14,7 +12,9 @@ + debug="off"
+ optimize="on"
+ />
++ </target>
+
++ <target name="jar" depends="compile">
+ <!-- create manifest file -->
+ <echo file="MANIFEST.MF">Manifest-Version: 1.0
+
+@@ -24,25 +24,28 @@ + Implementation-Vendor: relaxng.sourceforge.net</echo>
+
+ <!-- standard archive -->
+- <delete file="relaxngDatatype.jar"/>
+ <jar jarfile="relaxngDatatype.jar"
+ compress="false"
+ manifest="MANIFEST.MF">
+ <fileset dir="bin" includes="**/*.class" />
+ </jar>
++ </target>
+
+ <!-- generate javadoc documentation -->
++ <target name="javadoc">
+ <mkdir dir="doc"/>
+ <javadoc locale="en_US"
+ packagenames="org.relaxng.datatype.*"
+ sourcepath="src"
+- destdir="doc"
++ destdir="doc/api"
+ windowtitle="RELAX NG Datatype Interface"
+ public="yes"
+ author="yes"
+ >
+ </javadoc>
++ </target>
+
++ <target name="dist" depends="jar,javadoc">
+ <!-- creates distribution package -->
+ <zip zipfile="relaxngDatatype-${version}.zip">
+ <zipfileset dir="." prefix="relaxngDatatype-${version}"
+@@ -59,4 +62,11 @@ + includes="relaxngDatatype.jar" />
+ </zip>
+ </target>
++
++ <target name="clean">
++ <delete file="relaxngDatatype-${version}.zip"/>
++ <delete dir="doc/api"/>
++ <delete dir="bin"/>
++ <delete file="relaxngDatatype.jar"/>
++ </target>
+ </project>
diff --git a/dev-java/relaxng-datatype/metadata.xml b/dev-java/relaxng-datatype/metadata.xml new file mode 100644 index 000000000000..7303cef96964 --- /dev/null +++ b/dev-java/relaxng-datatype/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/relaxng-datatype/relaxng-datatype-1.0.ebuild b/dev-java/relaxng-datatype/relaxng-datatype-1.0.ebuild new file mode 100644 index 000000000000..c2f980e09cf4 --- /dev/null +++ b/dev-java/relaxng-datatype/relaxng-datatype-1.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/relaxng-datatype/relaxng-datatype-1.0.ebuild,v 1.1 2005/06/29 18:37:51 axxo Exp $ + +inherit java-pkg eutils + +MY_PN="relaxngDatatype" +MY_P="${MY_PN}-${PV}" +DESCRIPTION="Interface between RELAX NG validators and datatype libraries" +HOMEPAGE="http://relaxng.org/" +SRC_URI="mirror://sourceforge/relaxng/${MY_P}.zip" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~x86" +IUSE="doc jikes source" + +DEPEND=">=virtual/jdk-1.3 + app-arch/unzip + source? ( app-arch/zip ) + jikes? ( dev-java/jikes ) + dev-java/ant-core" +RDEPEND=">=virtual/jre-1.3" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${A} + cd ${S} + rm -f *.jar + epatch ${FILESDIR}/${P}-build_xml.patch +} + +src_compile() { + local antflags="jar" + use jikes && antflags="-Dbuild.compiler=jikes ${antflags}" + use doc && antflags="${antflags} javadoc" + + ant ${antflags} || die "Compilation failed" +} + +src_install() { + java-pkg_dojar ${MY_PN}.jar + dodoc README.txt + + use doc && java-pkg_dohtml -r doc/api + use source && java-pkg_dosrc src/* +} diff --git a/dev-java/xmldb/ChangeLog b/dev-java/xmldb/ChangeLog new file mode 100644 index 000000000000..0b942308fc3c --- /dev/null +++ b/dev-java/xmldb/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for dev-java/xmldb +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/xmldb/ChangeLog,v 1.1 2005/06/29 18:28:30 axxo Exp $ + +*xmldb-20011111 (29 Jun 2005) + + 29 Jun 2005; Thomas Matthijs <axxo@gentoo.org> + +files/xmldb-20011111-unreachable.patch, +files/build-20011111.xml, + +metadata.xml, +xmldb-20011111.ebuild: + new packages, dep of dom4j, ebuild contributed by Josh Nichols + <nichoj@alum.rpi.edu> + diff --git a/dev-java/xmldb/Manifest b/dev-java/xmldb/Manifest new file mode 100644 index 000000000000..cc28d0f022b1 --- /dev/null +++ b/dev-java/xmldb/Manifest @@ -0,0 +1,4 @@ +MD5 00e6ebfe0200d7214f54921698fbee59 xmldb-20011111.ebuild 1119 +MD5 21c727f1afea0d4c02f10a03bbbedd60 files/xmldb-20011111-unreachable.patch 456 +MD5 ccc56c03955f7034075ae8f491924635 files/digest-xmldb-20011111 69 +MD5 6a166507619ddc77ef6c145f2e3ff81b files/build-20011111.xml 1956 diff --git a/dev-java/xmldb/files/build-20011111.xml b/dev-java/xmldb/files/build-20011111.xml new file mode 100644 index 000000000000..27e6a4469fc0 --- /dev/null +++ b/dev-java/xmldb/files/build-20011111.xml @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="utf-8"?> +<!--- + @author: Saleem Abdulrasool <compnerd@gentoo.org> + @date: 5/9/2005 + @revision: 1.0_alpha + + @notes: Call using the following: ant -f build.xml -Dproject.name=${project name} -Dpackage.name=${package name} +--> + +<project name="Gentoo_Builder" default="jar" basedir="."> + <property name="src" value="src"/> + <property name="build" value="build"/> + <property name="dist" value="dist"/> + <property name="project.name" value="xmldb-api"/> + + <property name="pkg" value="${package.name}"/> + <property name="jar" value="${project.name}.jar"/> + <property name="sdk-jar" value="${project.name}-sdk.jar"/> + + <!-- Override any defined properties --> + <property file="build.properties"/> + + <target name="init"> + <tstamp/> + <mkdir dir="${build}"/> + <mkdir dir="${dist}"/> + <mkdir dir="${dist}/doc"/> + </target> + + <target name="compile" depends="init"> + <javac source="1.4" srcdir="${src}" destdir="${build}" classpath="${classpath}" excludes="**/test"/> + </target> + + <target name="manifest" depends="init"> + <manifest file="${build}/MANIFEST.MF" mode="update"> + <attribute name="Built-By" value="Gentoo Portage"/> + </manifest> + </target> + + <target name="jar" depends="compile,manifest"> + <jar jarfile="${dist}/${jar}" manifest="${build}/MANIFEST.MF"> + <fileset dir="${build}" includes="org/xmldb/api/*.class,org/xmldb/api/base/**,org/xmldb/api/modules/**"/> + </jar> + <jar jarfile="${dist}/${sdk-jar}" manifest="${build}/MANIFEST.MF"> + <fileset dir="${build}" includes="org/xmldb/api/*.class,org/xmldb/api/reference/**,org/xmldb/api/sdk/**"/> + </jar> + </target> + + <target name="javadoc" depends="compile"> + <javadoc destdir="${dist}/doc/api" source="1.4"> + <fileset dir="${src}"/> + </javadoc> + </target> + + <target name="clean"> + <delete dir="${build}"/> + <delete dir="${dist}"/> + </target> +</project> diff --git a/dev-java/xmldb/files/digest-xmldb-20011111 b/dev-java/xmldb/files/digest-xmldb-20011111 new file mode 100644 index 000000000000..7289d4b546d2 --- /dev/null +++ b/dev-java/xmldb/files/digest-xmldb-20011111 @@ -0,0 +1 @@ +MD5 559bdc3a09ea2dd6cd914103631e7141 xmldb-api-11112001.tar.gz 36553 diff --git a/dev-java/xmldb/files/xmldb-20011111-unreachable.patch b/dev-java/xmldb/files/xmldb-20011111-unreachable.patch new file mode 100644 index 000000000000..3e081e6e2d47 --- /dev/null +++ b/dev-java/xmldb/files/xmldb-20011111-unreachable.patch @@ -0,0 +1,12 @@ +diff -ru xmldb/org/xmldb/api/reference/modules/XPathQueryServiceImpl.java xmldb-patched/org/xmldb/api/reference/modules/XPathQueryServiceImpl.java +--- xmldb/org/xmldb/api/reference/modules/XPathQueryServiceImpl.java 2002-01-30 04:46:43.000000000 -0500 ++++ xmldb/org/xmldb/api/reference/modules/XPathQueryServiceImpl.java 2005-06-26 21:37:59.000000000 -0400 +@@ -133,7 +133,7 @@ + } + } + +- return result;; ++ return result; + } + } + diff --git a/dev-java/xmldb/metadata.xml b/dev-java/xmldb/metadata.xml new file mode 100644 index 000000000000..7303cef96964 --- /dev/null +++ b/dev-java/xmldb/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/xmldb/xmldb-20011111.ebuild b/dev-java/xmldb/xmldb-20011111.ebuild new file mode 100644 index 000000000000..6fd19098abfd --- /dev/null +++ b/dev-java/xmldb/xmldb-20011111.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/xmldb/xmldb-20011111.ebuild,v 1.1 2005/06/29 18:28:30 axxo Exp $ + +inherit java-pkg eutils + +MY_PN="${PN}-api" +MY_PV="11112001" +MY_P="${MY_PN}-${MY_PV}" +DESCRIPTION="XML:DB provides a community for collaborative development of specifications for XML databases and data manipulation technologies." +HOMEPAGE="http://sourceforge.net/projects/xmldb-org/" +SRC_URI="mirror://sourceforge/xmldb-org/${MY_P}.tar.gz" + +LICENSE="Apache-1.1" +SLOT="0" +KEYWORDS="~x86" +IUSE="doc jikes source" + +DEPEND=">=virtual/jdk-1.4 + jikes? ( dev-java/jikes ) + dev-java/ant-core" +RDEPEND=">=virtual/jre-1.4" + +S="${WORKDIR}/${PN}" + +src_unpack() { + unpack ${A} + cd ${S} + + epatch ${FILESDIR}/${P}-unreachable.patch + + mkdir src && mv org src + cp ${FILESDIR}/build-${PVR}.xml build.xml +} + +src_compile() { + local antflags="jar" + use jikes && antflags="-Dbuild.compiler=jikes ${antflags}" + use doc && antflags="${antflags} javadoc" + + ant ${antflags} || die "Compilation failed" +} + +src_install() { + java-pkg_dojar dist/*.jar + + use doc && java-pkg_dohtml -r dist/doc/api + use source && java-pkg_dosrc src/* +} |