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-xmlbeans
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-xmlbeans')
-rw-r--r--dev-java/xml-xmlbeans/Manifest2
-rw-r--r--dev-java/xml-xmlbeans/files/xml-xmlbeans-2.6.0-jam.patch64
-rw-r--r--dev-java/xml-xmlbeans/files/xml-xmlbeans-2.6.0-piccolo.patch14
-rw-r--r--dev-java/xml-xmlbeans/files/xml-xmlbeans-2.6.0-remove-jamsupport.patch37
-rw-r--r--dev-java/xml-xmlbeans/files/xml-xmlbeans-gentoo.patch156
-rw-r--r--dev-java/xml-xmlbeans/metadata.xml23
-rw-r--r--dev-java/xml-xmlbeans/xml-xmlbeans-1.0.4_pre20041217-r1.ebuild61
-rw-r--r--dev-java/xml-xmlbeans/xml-xmlbeans-1.0.4_pre20041217.ebuild61
-rw-r--r--dev-java/xml-xmlbeans/xml-xmlbeans-2.6.0.ebuild95
9 files changed, 513 insertions, 0 deletions
diff --git a/dev-java/xml-xmlbeans/Manifest b/dev-java/xml-xmlbeans/Manifest
new file mode 100644
index 000000000000..38726e036900
--- /dev/null
+++ b/dev-java/xml-xmlbeans/Manifest
@@ -0,0 +1,2 @@
+DIST xml-xmlbeans-20041217.tar.bz2 2436239 SHA256 c2a53c653c9f49e172e2c364fc8e111ad3d258f906bbd6b8c65ca0b3f0c57a68 SHA512 93f662a10a12948bace265a34a23e851c1210da8d8af5e699d0f51eb6d1959220eaee8f9072d1a33330217aec08321eac7bf91d8aaa160f56b751b0ab4408619 WHIRLPOOL 0fd5c098d5b1c2ca49d00b639f0a49c87f62f6c74bce1bdf4bcdfe3b77a833dbc9bd7ad99fc40ab2bfb5561ebfb253d0c74a13a03803ad8cfba9f2063e0016bb
+DIST xmlbeans-2.6.0-src.zip 9005098 SHA256 3dff52b0854236adbbff9dc76722372415cd9a8f406f6133886a6c5228595390 SHA512 162dc3d283ebf9f7fae823a2ae8d835b708c2cbeed48349c85996e60b2b8dfe0e51b17bd37eb34327c6452b2c0fc7df8a4902816b145993e36ca614ceb43b2b7 WHIRLPOOL cd775fa268e56aa02d744be67012d807e1cebf978d453610b48a8ca865f8d1587f27ced161d622d5d6ae0badab80de80ee4b46b7bf3bb753f69242c20d1e03d5
diff --git a/dev-java/xml-xmlbeans/files/xml-xmlbeans-2.6.0-jam.patch b/dev-java/xml-xmlbeans/files/xml-xmlbeans-2.6.0-jam.patch
new file mode 100644
index 000000000000..8081f71775f6
--- /dev/null
+++ b/dev-java/xml-xmlbeans/files/xml-xmlbeans-2.6.0-jam.patch
@@ -0,0 +1,64 @@
+diff -Nru /tmp/xmlbeans-2.6.0.orig/src/xmlconfig/org/apache/xmlbeans/impl/config/BindingConfigImpl.java src/xmlconfig/org/apache/xmlbeans/impl/config/BindingConfigImpl.java
+--- /tmp/xmlbeans-2.6.0.orig/src/xmlconfig/org/apache/xmlbeans/impl/config/BindingConfigImpl.java 2010-04-14 08:30:34.000000000 +0300
++++ src/xmlconfig/org/apache/xmlbeans/impl/config/BindingConfigImpl.java 2012-09-05 23:03:48.617016181 +0300
+@@ -27,10 +27,10 @@
+ import org.apache.xmlbeans.XmlError;
+ import org.apache.xmlbeans.InterfaceExtension;
+ import org.apache.xmlbeans.PrePostExtension;
+-import org.apache.xmlbeans.impl.jam.JamClassLoader;
+-import org.apache.xmlbeans.impl.jam.JamService;
+-import org.apache.xmlbeans.impl.jam.JamServiceFactory;
+-import org.apache.xmlbeans.impl.jam.JamServiceParams;
++import org.codehaus.jam.JamClassLoader;
++import org.codehaus.jam.JamService;
++import org.codehaus.jam.JamServiceFactory;
++import org.codehaus.jam.JamServiceParams;
+ import org.apache.xmlbeans.impl.schema.StscState;
+
+ import javax.xml.namespace.QName;
+diff -Nru /tmp/xmlbeans-2.6.0.orig/src/xmlconfig/org/apache/xmlbeans/impl/config/InterfaceExtensionImpl.java src/xmlconfig/org/apache/xmlbeans/impl/config/InterfaceExtensionImpl.java
+--- /tmp/xmlbeans-2.6.0.orig/src/xmlconfig/org/apache/xmlbeans/impl/config/InterfaceExtensionImpl.java 2010-04-14 08:30:34.000000000 +0300
++++ src/xmlconfig/org/apache/xmlbeans/impl/config/InterfaceExtensionImpl.java 2012-09-05 23:09:00.320097542 +0300
+@@ -18,10 +18,10 @@
+ import org.apache.xmlbeans.impl.xb.xmlconfig.Extensionconfig;
+ import org.apache.xmlbeans.InterfaceExtension;
+ import org.apache.xmlbeans.XmlObject;
+-import org.apache.xmlbeans.impl.jam.JMethod;
+-import org.apache.xmlbeans.impl.jam.JClass;
+-import org.apache.xmlbeans.impl.jam.JParameter;
+-import org.apache.xmlbeans.impl.jam.JamClassLoader;
++import org.codehaus.jam.JMethod;
++import org.codehaus.jam.JClass;
++import org.codehaus.jam.JParameter;
++import org.codehaus.jam.JamClassLoader;
+
+ public class InterfaceExtensionImpl implements InterfaceExtension
+ {
+diff -Nru /tmp/xmlbeans-2.6.0.orig/src/xmlconfig/org/apache/xmlbeans/impl/config/PrePostExtensionImpl.java src/xmlconfig/org/apache/xmlbeans/impl/config/PrePostExtensionImpl.java
+--- /tmp/xmlbeans-2.6.0.orig/src/xmlconfig/org/apache/xmlbeans/impl/config/PrePostExtensionImpl.java 2010-04-14 08:30:34.000000000 +0300
++++ src/xmlconfig/org/apache/xmlbeans/impl/config/PrePostExtensionImpl.java 2012-09-05 23:06:48.081760004 +0300
+@@ -17,9 +17,9 @@
+
+ import org.apache.xmlbeans.XmlObject;
+ import org.apache.xmlbeans.PrePostExtension;
+-import org.apache.xmlbeans.impl.jam.JamClassLoader;
+-import org.apache.xmlbeans.impl.jam.JClass;
+-import org.apache.xmlbeans.impl.jam.JMethod;
++import org.codehaus.jam.JamClassLoader;
++import org.codehaus.jam.JClass;
++import org.codehaus.jam.JMethod;
+ import org.apache.xmlbeans.impl.xb.xmlconfig.Extensionconfig;
+
+
+diff -Nru /tmp/xmlbeans-2.6.0.orig/src/xmlconfig/org/apache/xmlbeans/impl/config/UserTypeImpl.java src/xmlconfig/org/apache/xmlbeans/impl/config/UserTypeImpl.java
+--- /tmp/xmlbeans-2.6.0.orig/src/xmlconfig/org/apache/xmlbeans/impl/config/UserTypeImpl.java 2010-04-14 08:30:34.000000000 +0300
++++ src/xmlconfig/org/apache/xmlbeans/impl/config/UserTypeImpl.java 2012-09-05 23:06:33.710940667 +0300
+@@ -3,7 +3,7 @@
+ import javax.xml.namespace.QName;
+
+ import org.apache.xmlbeans.UserType;
+-import org.apache.xmlbeans.impl.jam.JamClassLoader;
++import org.codehaus.jam.JamClassLoader;
+ import org.apache.xmlbeans.impl.xb.xmlconfig.Usertypeconfig;
+
+ public class UserTypeImpl implements UserType
diff --git a/dev-java/xml-xmlbeans/files/xml-xmlbeans-2.6.0-piccolo.patch b/dev-java/xml-xmlbeans/files/xml-xmlbeans-2.6.0-piccolo.patch
new file mode 100644
index 000000000000..866dc0f6ed53
--- /dev/null
+++ b/dev-java/xml-xmlbeans/files/xml-xmlbeans-2.6.0-piccolo.patch
@@ -0,0 +1,14 @@
+diff -ur /tmp/xmlbeans-2.6.0.orig/src/store/org/apache/xmlbeans/impl/store/Locale.java src/store/org/apache/xmlbeans/impl/store/Locale.java
+--- /tmp/xmlbeans-2.6.0.orig/src/store/org/apache/xmlbeans/impl/store/Locale.java 2012-09-05 14:31:47.743396340 +0300
++++ src/store/org/apache/xmlbeans/impl/store/Locale.java 2012-09-05 14:35:31.527582989 +0300
+@@ -106,8 +106,8 @@
+ import org.apache.xmlbeans.impl.values.TypeStoreUser;
+ import org.apache.xmlbeans.impl.values.TypeStoreUserFactory;
+
+-import org.apache.xmlbeans.impl.piccolo.xml.Piccolo;
+-import org.apache.xmlbeans.impl.piccolo.io.FileFormatException;
++import com.bluecast.xml.Piccolo;
++import com.bluecast.io.FileFormatException;
+
+ public final class Locale
+ implements DOMImplementation, SaajCallback, XmlLocale
diff --git a/dev-java/xml-xmlbeans/files/xml-xmlbeans-2.6.0-remove-jamsupport.patch b/dev-java/xml-xmlbeans/files/xml-xmlbeans-2.6.0-remove-jamsupport.patch
new file mode 100644
index 000000000000..23467d2b24a6
--- /dev/null
+++ b/dev-java/xml-xmlbeans/files/xml-xmlbeans-2.6.0-remove-jamsupport.patch
@@ -0,0 +1,37 @@
+--- a/build.xml
++++ b/build.xml
+@@ -433,7 +433,6 @@
+ <jar jarfile="build/private/xmlbeans-${version.base}${version.rc}-sources.jar" index="false">
+ <fileset dir="src/common" includes="**/*.java"/>
+ <fileset dir="src/configschema" includes="**/*.java"/>
+- <fileset dir="src/jamsupport" includes="**/*.java"/>
+ <fileset dir="src/marshal" includes="**/*.java"/>
+ <fileset dir="src/repackage" includes="**/*.java"/>
+ <fileset dir="src/saaj_api" includes="**/*.java"/>
+@@ -488,7 +487,7 @@
+ store.classes, saaj_api.classes,
+ marshal.classes, xpath.classes, oldxbean.jar, xsdschema.classes,
+ xmlinputstream.classes, resolver.jar, xbean_xpath.jar,
+- piccolo.classes, tools.classes, jamsupport.classes">
++ piccolo.classes, tools.classes">
+ <jar jarfile="build/lib/xbean.jar" index="true">
+ <fileset dir="build/classes/xmlpublic"
+ excludes="javax/**"/>
+@@ -711,17 +710,6 @@
+ </classpath>
+ </javac>
+ </target>
+-
+-
+- <!-- support for running JAM under JDK1.5 ========================= -->
+-
+- <target name="jamsupport.classes" depends="dirs,jam.classes">
+- <javac srcdir="src/jamsupport" destdir="build/classes/jam" source="${javac.source}" target="${javac.target}" debug="on">
+- <classpath id="jamsupport.compile.path">
+- <pathelement location="build/classes/jam"/>
+- </classpath>
+- </javac>
+- </target>
+
+ <!-- saaj_api target ============================================== -->
+
diff --git a/dev-java/xml-xmlbeans/files/xml-xmlbeans-gentoo.patch b/dev-java/xml-xmlbeans/files/xml-xmlbeans-gentoo.patch
new file mode 100644
index 000000000000..9f3a7656fd2f
--- /dev/null
+++ b/dev-java/xml-xmlbeans/files/xml-xmlbeans-gentoo.patch
@@ -0,0 +1,156 @@
+diff -uprN xml-xmlbeans-20041217.orig/v1/build.xml xml-xmlbeans-20041217/v1/build.xml
+--- xml-xmlbeans-20041217.orig/v1/build.xml 2004-12-24 13:27:42.347587336 +0100
++++ xml-xmlbeans-20041217/v1/build.xml 2004-12-24 13:35:28.859666720 +0100
+@@ -340,7 +340,7 @@
+ srcdir="test/src/drt"
+ destdir="build/private/classes/drt"
+ classpathref="test.compile.path"
+- source="1.4"
++ source="1.4" target="1.4"
+ debug="on"/>
+ </target>
+
+@@ -372,7 +372,7 @@
+
+ <target name="soaptest.classes" depends="dirs, stsschema.jar">
+ <mkdir dir="build/private/classes/soaptest"/>
+- <javac srcdir="test/src/soaptest" destdir="build/private/classes/soaptest" source="1.4" debug="on">
++ <javac srcdir="test/src/soaptest" destdir="build/private/classes/soaptest" source="1.4" target="1.4" debug="on">
+ <classpath>
+ <pathelement location="external/lib/jdom.jar"/>
+ <pathelement location="external/lib/junit.jar"/>
+@@ -395,7 +395,7 @@
+ srcdir="test/src/erictest"
+ destdir="build/private/classes/erictest"
+ classpathref="test.compile.path"
+- source="1.4"
++ source="1.4" target="1.4"
+ debug="on"/>
+ </target>
+
+@@ -411,7 +411,7 @@
+ srcdir="test/src/random"
+ destdir="build/private/classes/random"
+ classpathref="test.compile.path"
+- source="1.4"
++ source="1.4" target="1.4"
+ debug="on"/>
+ </target>
+
+@@ -423,7 +423,7 @@
+
+ <target name="teststore.classes" depends="dirs">
+ <mkdir dir="build/private/classes/teststore"/>
+- <javac srcdir="test/src/teststore" destdir="build/private/classes/teststore" source="1.4" debug="on">
++ <javac srcdir="test/src/teststore" destdir="build/private/classes/teststore" source="1.4" target="1.4" debug="on">
+ <classpath>
+ <pathelement location="build/private/classes/simpletypes"/>
+ <pathelement location="build/private/classes/xmlcomp"/>
+@@ -557,7 +557,7 @@
+ <property name="docs.dir" value="build/docs"/>
+ <delete dir="${docs.dir}"/>
+ <mkdir dir="${docs.dir}"/>
+- <javadoc packagenames="*" sourcepath="src/xmlpublic" classpath="${javadoc.path}" destdir="${docs.dir}/reference" windowtitle="XMLBeans Documentation" source="1.4" stylesheetfile="docs/stylesheet.css">
++ <javadoc packagenames="*" sourcepath="src/xmlpublic" classpath="${javadoc.path}" source="1.4" destdir="${docs.dir}/reference" windowtitle="XMLBeans Documentation" stylesheetfile="docs/stylesheet.css">
+ <link href="http://xml.apache.org/xmlbeans/docs/reference/index.html"/>
+ <link href="http://java.sun.com/j2se/1.4.2/docs/api/"/>
+ <link href="http://java.sun.com/j2ee/1.4/docs/api/"/>
+@@ -583,7 +583,7 @@
+ srcdir="test/src/streamtest"
+ destdir="build/private/classes/streamtest"
+ classpathref="test.compile.path"
+- source="1.4"
++ source="1.4" target="1.4"
+ debug="on"/>
+ </target>
+
+@@ -736,7 +736,7 @@
+
+ <target name="xmlpublic.classes" depends="dirs, xmlinputstream.classes">
+ <mkdir dir="build/classes/xmlpublic"/>
+- <javac srcdir="src/xmlpublic" destdir="build/classes/xmlpublic" source="1.4" debug="on">
++ <javac srcdir="src/xmlpublic" destdir="build/classes/xmlpublic" source="1.4" target="1.4" debug="on">
+ <classpath>
+ <pathelement location="build/classes/xmlinputstream"/>
+ </classpath>
+@@ -756,7 +756,7 @@
+
+ <target name="typestore.classes" depends="dirs, xmlpublic.classes, common.classes, xmlinputstream.classes">
+ <mkdir dir="build/classes/typestore"/>
+- <javac srcdir="src/typestore" destdir="build/classes/typestore" source="1.4" debug="on">
++ <javac srcdir="src/typestore" destdir="build/classes/typestore" source="1.4" target="1.4" debug="on">
+ <classpath>
+ <pathelement location="build/classes/xmlinputstream"/>
+ <pathelement location="build/classes/xmlpublic"/>
+@@ -770,7 +770,7 @@
+
+ <target name="common.classes" depends="dirs, xmlpublic.jar, xmlinputstream.classes">
+ <mkdir dir="build/classes/common"/>
+- <javac srcdir="src/common" destdir="build/classes/common" source="1.4" debug="on">
++ <javac srcdir="src/common" destdir="build/classes/common" source="1.4" target="1.4" debug="on">
+ <classpath>
+ <pathelement location="build/classes/xmlinputstream"/>
+ <pathelement location="build/lib/xmlpublic.jar"/>
+@@ -783,7 +783,7 @@
+
+ <target name="typeimpl.classes" depends="dirs, repackage.classes, xmlpublic.classes, typestore.classes, xsdschema.classes, configschema.classes, toolschema.classes">
+ <mkdir dir="build/classes/typeimpl"/>
+- <javac destdir="build/classes/typeimpl" source="1.4" debug="on">
++ <javac destdir="build/classes/typeimpl" source="1.4" target="1.4" debug="on">
+ <classpath>
+ <pathelement location="build/classes/xmlinputstream"/>
+ <pathelement location="build/classes/common"/>
+@@ -816,7 +816,7 @@
+
+ <target name="xmlcomp.classes" depends="dirs, repackage.classes, typeimpl.classes, xmlpublic.classes, typestore.classes">
+ <mkdir dir="build/classes/xmlcomp"/>
+- <javac srcdir="src/xmlcomp" destdir="build/classes/xmlcomp" source="1.4" debug="on">
++ <javac srcdir="src/xmlcomp" destdir="build/classes/xmlcomp" source="1.4" target="1.4" debug="on">
+ <classpath>
+ <pathelement location="build/classes/xmlinputstream"/>
+ <pathelement location="build/classes/xmlpublic"/>
+@@ -837,7 +837,7 @@
+ <target name="xmlstore.classes"
+ depends="dirs, common.classes, typestore.classes, xmlpublic.classes">
+ <mkdir dir="build/classes/xmlstore"/>
+- <javac srcdir="src/xmlstore" destdir="build/classes/xmlstore" source="1.4" debug="on">
++ <javac srcdir="src/xmlstore" destdir="build/classes/xmlstore" source="1.4" target="1.4" debug="on">
+ <classpath id="xmlstore.compile.path">
+ <pathelement location="build/classes/xmlinputstream"/>
+ <pathelement location="build/classes/typestore"/>
+@@ -916,7 +916,7 @@
+
+ <target name="xmlconfig.classes" depends="dirs, xmlpublic.jar, configschema.classes">
+ <mkdir dir="build/classes/xmlconfig"/>
+- <javac srcdir="src/xmlconfig" destdir="build/classes/xmlconfig" source="1.4" debug="on">
++ <javac srcdir="src/xmlconfig" destdir="build/classes/xmlconfig" source="1.4" target="1.4" debug="on">
+ <classpath>
+ <pathelement location="build/lib/xmlpublic.jar"/>
+ <pathelement location="build/classes/configschema"/>
+@@ -1044,7 +1044,7 @@
+
+ <target name="repackage.classes">
+ <mkdir dir="build/classes/repackage"/>
+- <javac srcdir="src/repackage" destdir="build/classes/repackage" source="1.4" debug="on"/>
++ <javac srcdir="src/repackage" destdir="build/classes/repackage" source="1.4" target="1.4" debug="on"/>
+ </target>
+
+ <target name="check.jaxen.jar">
+@@ -1068,7 +1068,7 @@
+ srcdir="src/xpath"
+ destdir="build/private/classes/xpath"
+ classpathref="xpath.compile.path"
+- source="1.4"
++ source="1.4" target="1.4"
+ debug="on">
+ <classpath id="xpath.compile.path">
+ <pathelement location="build/lib/xmlpublic.jar"/>
+@@ -1090,7 +1090,7 @@
+ srcdir="test/src/xpath"
+ destdir="build/private/classes/testxpath"
+ classpathref="testxpath.compile.path"
+- source="1.4"
++ source="1.4" target="1.4"
+ debug="on">
+ <classpath id="testxpath.compile.path">
+ <pathelement location="build/lib/xmlpublic.jar"/>
diff --git a/dev-java/xml-xmlbeans/metadata.xml b/dev-java/xml-xmlbeans/metadata.xml
new file mode 100644
index 000000000000..3f89838776b7
--- /dev/null
+++ b/dev-java/xml-xmlbeans/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+<herd>java</herd>
+
+<longdescription>
+
+XMLBeans is a tool that allows you to access the full power of XML in a Java
+friendly way. It is an XML-Java binding tool. The idea is that you can take
+advantage the richness and features of XML and XML Schema and have these
+features mapped as naturally as possible to the equivalent Java language and
+typing constructs. XMLBeans uses XML Schema to compile Java interfaces and
+classes that you can then use to access and modify XML instance data. Using
+XMLBeans is similar to using any other Java interface/class, you will see things
+like getFoo or setFoo just as you would expect when working with Java. While a
+major use of XMLBeans is to access your XML instance data with strongly typed
+Java classes there are also API's that allow you access to the full XML infoset
+(XMLBeans keeps full XML Infoset fidelity) as well as to allow you to reflect
+into the XML schema itself through an XML Schema Object model.
+
+</longdescription>
+</pkgmetadata>
diff --git a/dev-java/xml-xmlbeans/xml-xmlbeans-1.0.4_pre20041217-r1.ebuild b/dev-java/xml-xmlbeans/xml-xmlbeans-1.0.4_pre20041217-r1.ebuild
new file mode 100644
index 000000000000..c8677efee61b
--- /dev/null
+++ b/dev-java/xml-xmlbeans/xml-xmlbeans-1.0.4_pre20041217-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+JAVA_PKG_IUSE="doc source"
+
+inherit eutils java-pkg-2 java-ant-2
+
+MY_P="${PN}-20041217"
+
+DESCRIPTION="An XML-Java binding tool"
+HOMEPAGE="http://xmlbeans.apache.org/"
+SRC_URI="mirror://gentoo/${MY_P}.tar.bz2"
+
+LICENSE="Apache-2.0"
+SLOT="1"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+COMMON_DEPEND="
+ dev-java/jaxen:1.1
+ dev-java/ant-core:0"
+RDEPEND="${COMMON_DEPEND}
+ >=virtual/jre-1.4"
+DEPEND="${COMMON_DEPEND}
+ >=virtual/jdk-1.4"
+
+S="${WORKDIR}/${MY_P}/v1"
+
+java_prepare() {
+ epatch "${FILESDIR}/xml-xmlbeans-gentoo.patch"
+ java-ant_rewrite-classpath build.xml
+
+ cd "${S}"/external/lib
+ #TODO: includes and old copy named oldxbean.jar
+ #that probably should not be used
+ #rm -v *.jar
+
+ java-pkg_jar-from jaxen-1.1 jaxen.jar jaxen-1.1-beta-2.jar
+ java-pkg_filter-compiler jikes
+}
+
+src_compile() {
+ eant xbean.jar $(use_doc docs) \
+ -Dgentoo.classpath=$(java-pkg_getjars ant-core)
+}
+
+# Tests always seem to fail #100895
+
+src_install() {
+ java-pkg_dojar build/lib/xbean*.jar
+
+ dodoc CHANGES.txt NOTICE.txt README.txt
+ if use doc; then
+ java-pkg_dojavadoc build/docs/reference
+ java-pkg_dohtml -r docs
+ fi
+ use source && java-pkg_dosrc src/*
+}
diff --git a/dev-java/xml-xmlbeans/xml-xmlbeans-1.0.4_pre20041217.ebuild b/dev-java/xml-xmlbeans/xml-xmlbeans-1.0.4_pre20041217.ebuild
new file mode 100644
index 000000000000..a71b7e581b88
--- /dev/null
+++ b/dev-java/xml-xmlbeans/xml-xmlbeans-1.0.4_pre20041217.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2015 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_P="${PN}-20041217"
+
+DESCRIPTION="An XML-Java binding tool"
+HOMEPAGE="http://xmlbeans.apache.org/"
+SRC_URI="mirror://gentoo/${MY_P}.tar.bz2"
+
+LICENSE="Apache-2.0"
+SLOT="1"
+KEYWORDS="amd64 ~arm ppc ppc64 x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
+
+RDEPEND=">=virtual/jre-1.4
+ =dev-java/jaxen-1.1*
+ >=dev-java/ant-core-1.6.2"
+
+DEPEND=">=virtual/jdk-1.4
+ ${RDEPEND}"
+
+S="${WORKDIR}/${MY_P}/v1"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/xml-xmlbeans-gentoo.patch"
+ java-ant_rewrite-classpath build.xml
+
+ cd "${S}"/external/lib
+ #TODO: includes and old copy named oldxbean.jar
+ #that probably should not be used
+ #rm -v *.jar
+
+ java-pkg_jar-from jaxen-1.1 jaxen.jar jaxen-1.1-beta-2.jar
+ java-pkg_filter-compiler jikes
+}
+
+src_compile() {
+ eant xbean.jar $(use_doc docs) \
+ -Dgentoo.classpath=$(java-pkg_getjars ant-core)
+}
+
+# Tests always seem to fail #100895
+
+src_install() {
+ java-pkg_dojar build/lib/xbean*.jar
+
+ dodoc CHANGES.txt NOTICE.txt README.txt
+ if use doc; then
+ java-pkg_dojavadoc build/docs/reference
+ java-pkg_dohtml -r docs
+ fi
+ use source && java-pkg_dosrc src/*
+}
diff --git a/dev-java/xml-xmlbeans/xml-xmlbeans-2.6.0.ebuild b/dev-java/xml-xmlbeans/xml-xmlbeans-2.6.0.ebuild
new file mode 100644
index 000000000000..95abb656787e
--- /dev/null
+++ b/dev-java/xml-xmlbeans/xml-xmlbeans-2.6.0.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc source"
+
+inherit eutils java-pkg-2 java-ant-2
+
+MY_P="xmlbeans-${PV}"
+
+DESCRIPTION="An XML-Java binding tool"
+HOMEPAGE="http://xmlbeans.apache.org/"
+SRC_URI="http://archive.apache.org/dist/xmlbeans/source/${MY_P}-src.zip"
+
+LICENSE="Apache-2.0"
+SLOT="2"
+KEYWORDS="~amd64"
+
+COMMON_DEP="dev-java/annogen:0
+ dev-java/ant-core:0
+ dev-java/jsr173:0
+ dev-java/piccolo:0
+ dev-java/saxon:9
+ dev-java/xml-commons-resolver:0"
+
+RDEPEND=">=virtual/jre-1.6
+ ${COMMON_DEP}"
+
+DEPEND=">=virtual/jdk-1.6
+ ${COMMON_DEP}"
+
+S="${WORKDIR}/${MY_P}"
+
+java_prepare() {
+ # Preserve the old xbean jar, which is required for bootstrapping schemas.
+ mv external/lib/oldxbean.jar "${T}"/ || die
+
+ # Remove bundled binary files.
+ find . -name '*.jar' -exec rm -v {} + || die
+
+ pushd external/lib > /dev/null || die
+ find . -iname '*.zip' -exec rm -v {} + || die
+
+ # Symlink the dependencies.
+ java-pkg_jar-from jsr173{,.jar,_1.0_api_bundle.jar}
+ java-pkg_jar-from jsr173{,.jar,_1.0_api.jar}
+
+ mkdir xml-commons-resolver-1.1 || die
+ java-pkg_jar-from xml-commons-resolver{,.jar} xcresolver.zip
+ java-pkg_jar-from xml-commons-resolver{,.jar,-1.1/resolver.jar}
+
+ # Put back the preserved old xbean jar.
+ mv "${T}"/oldxbean.jar . || die
+ popd > /dev/null || die
+
+ # Remove broken jamsupport.
+ epatch "${FILESDIR}"/${P}-remove-jamsupport.patch
+
+ # Patch package imports.
+ epatch "${FILESDIR}"/${P}-piccolo.patch
+ epatch "${FILESDIR}"/${P}-jam.patch
+
+ # Create empty directories to let the build pass.
+ mkdir -p build/classes/{jam,piccolo}
+}
+
+JAVA_ANT_REWRITE_CLASSPATH="true"
+EANT_GENTOO_CLASSPATH="annogen,ant-core,piccolo,saxon-9"
+
+EANT_BUILD_TARGET="deploy"
+EANT_DOC_TARGET="docs"
+
+EANT_EXTRA_ARGS="-Dpiccolo.classes.notRequired=true"
+EANT_EXTRA_ARGS+=" -Djam.classes.notRequired=true"
+EANT_EXTRA_ARGS+=" -Dsaxon9.jar.exists=true"
+
+src_install() {
+ java-pkg_dojar build/lib/xbean*.jar
+
+ dodoc NOTICE.txt README.txt
+ if use doc; then
+ java-pkg_dojavadoc build/docs/reference
+ java-pkg_dohtml -r docs
+ fi
+
+ use source && java-pkg_dosrc src/*
+}
+
+pkg_postinst()
+{
+ ewarn "This package uses an old binary xbean to bootstrap its schemas."
+ ewarn "If you do not trust the binary part of this build, please unmerge."
+}