summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/xml-commons
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-java/xml-commons')
-rw-r--r--dev-java/xml-commons/Manifest1
-rw-r--r--dev-java/xml-commons/files/1.0_beta2-jdk15.patch36
-rw-r--r--dev-java/xml-commons/metadata.xml19
-rw-r--r--dev-java/xml-commons/xml-commons-1.0_beta2-r1.ebuild54
4 files changed, 110 insertions, 0 deletions
diff --git a/dev-java/xml-commons/Manifest b/dev-java/xml-commons/Manifest
new file mode 100644
index 000000000000..1b5c2d46fad2
--- /dev/null
+++ b/dev-java/xml-commons/Manifest
@@ -0,0 +1 @@
+DIST xml-commons-1.0.b2.tar.gz 1821110 SHA256 22b9e53919e4aa15fdd074a515c8a8dc9823a91d72eb91fbb3e1bd8cfc488375 SHA512 72e4df0776e96514bf787b958f80309bd9e4ea47cde9b3fa157db08c921e7e7607899b1b0d43b16cf34e1c055812d052b3b873b13246ef693ebb7c74fdcfda94 WHIRLPOOL 2e73c513fa3f72823c001f8676b925ce87b0759da91c848a55f2245738245e5f557aaff3fdc14b0b8aef5de8122c97fd3f1d856738cd4112d315c38c8b99caf4
diff --git a/dev-java/xml-commons/files/1.0_beta2-jdk15.patch b/dev-java/xml-commons/files/1.0_beta2-jdk15.patch
new file mode 100644
index 000000000000..6080e14e7232
--- /dev/null
+++ b/dev-java/xml-commons/files/1.0_beta2-jdk15.patch
@@ -0,0 +1,36 @@
+diff -uprN xml-commons-1.0.b2/java/external/build.xml java/external/build.xml
+--- xml-commons-1.0.b2/java/external/build.xml 2002-02-06 16:52:59.000000000 +0100
++++ java/external/build.xml 2005-02-06 20:42:52.645987384 +0100
+@@ -65,7 +65,7 @@
+
+ <target name="compile" depends="prepare"
+ description="Compile all classes">
+- <javac srcdir="${src.dir}" destdir="${build.classes.dir}" />
++ <javac srcdir="${src.dir}" destdir="${build.classes.dir}" source="1.4" target="1.4" />
+ </target>
+
+ <target name="jar" depends="compile"
+diff -uprN xml-commons-1.0.b2/java/resolver.xml java/resolver.xml
+--- xml-commons-1.0.b2/java/resolver.xml 2002-02-06 16:52:46.000000000 +0100
++++ java/resolver.xml 2005-02-06 20:45:57.003960712 +0100
+@@ -63,7 +63,7 @@ Build file for org.apache.xml.resolver.
+
+ <target name="compile" depends="init"
+ description="Compile all classes">
+- <javac srcdir="${src.dir}" destdir="${build.classes.dir}">
++ <javac srcdir="${src.dir}" destdir="${build.classes.dir}" source="1.4" target="1.4">
+ <include name="${resolver.subdir}/*.java"/>
+ <include name="${resolver.subdir}/helpers/*.java"/>
+ <include name="${resolver.subdir}/readers/*.java"/>
+diff -uprN xml-commons-1.0.b2/java/which.xml java/which.xml
+--- xml-commons-1.0.b2/java/which.xml 2002-02-06 16:52:28.000000000 +0100
++++ java/which.xml 2005-02-06 20:45:38.379792016 +0100
+@@ -64,7 +64,7 @@ Build file for org.apache.env.Which serv
+ <target name="compile" depends="init"
+ description="Compile all classes">
+ <javac srcdir="${src.dir}" destdir="${build.classes.dir}"
+- includes="${env.subdir}/*.java" />
++ includes="${env.subdir}/*.java" source="1.4" target="1.4" />
+ </target>
+
+ <target name="jar" depends="compile"
diff --git a/dev-java/xml-commons/metadata.xml b/dev-java/xml-commons/metadata.xml
new file mode 100644
index 000000000000..b910167b8e80
--- /dev/null
+++ b/dev-java/xml-commons/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+<herd>java</herd>
+
+<longdescription>
+
+These are some of the components that are provided by the Apache XML Commons
+project.
+
+ * Resolver - An XML Entity and URI Resolver donated by Norman Walsh.
+ * Which - A simple environment checking utility for Apache projects by Shane
+ Curcuru
+ * External Interfaces (xml-apis) - An Apache-hosted set of externally-defined
+ standards interfaces, namely DOM, SAX, and JAXP.
+
+</longdescription>
+</pkgmetadata>
diff --git a/dev-java/xml-commons/xml-commons-1.0_beta2-r1.ebuild b/dev-java/xml-commons/xml-commons-1.0_beta2-r1.ebuild
new file mode 100644
index 000000000000..28ea21b0d34a
--- /dev/null
+++ b/dev-java/xml-commons/xml-commons-1.0_beta2-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+JAVA_PKG_IUSE="doc source"
+
+inherit eutils java-pkg-2 java-ant-2
+
+MY_PV=${PV/_beta/.b}
+MY_P=${PN}-${MY_PV}
+DESCRIPTION="Jakarta project for for XML bindings for java"
+HOMEPAGE="http://xml.apache.org/commons/"
+SRC_URI="mirror://apache/xml/commons/${MY_P}.tar.gz"
+
+# Resolver is under Apache-1.1
+# SAX2 is public-domain
+# DOM documentation is under W3C-document
+# DOM software is under W3C
+# See ${S}/java/external for the license files
+LICENSE="Apache-1.1 public-domain W3C-document W3C"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND=">=virtual/jdk-1.4"
+RDEPEND=">=virtual/jre-1.4"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${PV}-jdk15.patch"
+}
+
+src_compile() {
+ local antflags="jar"
+ use doc && antflags="${antflags} javadocs"
+
+ cd "${S}"/java
+ eant -f resolver.xml ${antflags} || die "XML-Resolver Compile failed"
+ eant -f which.xml ${antflags} || die "XML-Which Compile failed"
+}
+
+src_install() {
+ java-pkg_dojar java/build/which.jar
+ java-pkg_dojar java/build/resolver.jar
+ java-pkg_dojar java/external/build/xml-apis.jar
+
+ dodoc README.html || die
+ use doc && java-pkg_dojavadoc java/build/docs/javadocs
+ use source && java-pkg_dosrc java/src/org
+}