summaryrefslogtreecommitdiff
path: root/dev-java/xml-xmlbeans
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/xml-xmlbeans')
-rw-r--r--dev-java/xml-xmlbeans/Manifest9
-rw-r--r--dev-java/xml-xmlbeans/files/xml-xmlbeans-2.6.0-SchemaCompiler.java.patch14
-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/metadata.xml25
-rw-r--r--dev-java/xml-xmlbeans/xml-xmlbeans-2.6.0.ebuild105
7 files changed, 268 insertions, 0 deletions
diff --git a/dev-java/xml-xmlbeans/Manifest b/dev-java/xml-xmlbeans/Manifest
new file mode 100644
index 000000000000..e83beb0fb83f
--- /dev/null
+++ b/dev-java/xml-xmlbeans/Manifest
@@ -0,0 +1,9 @@
+AUX xml-xmlbeans-2.6.0-SchemaCompiler.java.patch 802 SHA256 520c834a6cb4a1f01954e0027d619ecb3b917f314056ccd49762ef563588d88b SHA512 24ff76b5c046ac1e1837e75f7a3becbb64acf5966f584215e99d1b0f47a3ac5465ae53746d97ad8246f352452db7722e6135e95b660fda1d02010c4ec87a88ea WHIRLPOOL 06d4d38d5eeff0d46ec0a4ac95b78edacfbca00acef9b1e7fdf3ba1aa8a2e39718cb9e2bb805b9c27402d6fbfbf2cebfeeb9065f3cc633137bacd60584c1c1dd
+AUX xml-xmlbeans-2.6.0-jam.patch 3594 SHA256 440288ae1446735835c8a86607854d8c0025ee369db8601360ca4107e4a8e2f8 SHA512 e105cbd5efa08f80685d506dc22a6e9a1ef29df78cd6ca64f3de1a70a7ea93dad4e51f93ee38fcf73a823f01fe50981c4693d619fdad67cdd481279f64ad4a5c WHIRLPOOL 19a7adfc0a4af24c483dd6ca40546ee7dc8ba1ea32dbd87682a90a811879ee8afc5eb88104e64a0eaf74d7d3b51feacd70866150f9cbc5971de489779515f20d
+AUX xml-xmlbeans-2.6.0-piccolo.patch 776 SHA256 059abe55f5503db3ce678915afcb160ad1a048ee22e93c3d2904151575388c64 SHA512 e32ac926cae60ff5d10e0647988c3dcfea986a9b0cab9667dd3c73bad6b49fb74585350022b43e24dbc30fef09d87823210e9dc38e830486145924904431e6be WHIRLPOOL 21b650ea7278414c07ffbc293c94129dd1ea570f0c7e3d774e940b4802ba596335f1a3f18e2774f73d408ebe51b82e5f4a80a2ab02b711421dcc65defc7838b0
+AUX xml-xmlbeans-2.6.0-remove-jamsupport.patch 1656 SHA256 35c4f2166821d92927609357e391c8fdd1b897a7ec2eb33988ea3d7f70f854f4 SHA512 54b570f2960340eecf4368caeaf5d7c84ece7e691bda7460532d5d778e78a6b41a7e776de02b53fa5d5385f66639353758d76d710c1c3e2332ceb2854b9c84fe WHIRLPOOL a67e0a8e0a3428e440ca71ba80632db14910e4580da3747c3063f22b2eda4dd29df7d473fd14f834efcb8ecfccd3d2a0cf6e57050879c9fd957c265e9b0e27ad
+DIST xmlbeans-2.6.0-src.zip 9005098 SHA256 3dff52b0854236adbbff9dc76722372415cd9a8f406f6133886a6c5228595390 SHA512 162dc3d283ebf9f7fae823a2ae8d835b708c2cbeed48349c85996e60b2b8dfe0e51b17bd37eb34327c6452b2c0fc7df8a4902816b145993e36ca614ceb43b2b7 WHIRLPOOL cd775fa268e56aa02d744be67012d807e1cebf978d453610b48a8ca865f8d1587f27ced161d622d5d6ae0badab80de80ee4b46b7bf3bb753f69242c20d1e03d5
+EBUILD xml-xmlbeans-2.6.0.ebuild 2339 SHA256 46ec5cdcc4ad16a2215f5d56c54e5d95cc8e7059b973e555cffc84615aac2d0b SHA512 4a8a0c89c1c537cd9b6a30bb526761f2b06c95d80442397293c05be145e37f8989ce57ce397757c13f780610e3a989ba0f44e7673f6586a34ce36051e83324a2 WHIRLPOOL b77da55b77072e2f4a934ad2a84cd55433e2f32148297f1ff4283ef5c4ae5d2c636e3291f1a70fc7acbfc044bf151fad9a234708be9f8428e853513558f38af3
+MISC ChangeLog 4517 SHA256 dfacc50aa931b8a311dd4a168d47ac6ab7d0a23a3974d9c0b169da5921e26294 SHA512 b7f4b9d0e2ef5edb4de84f9080e3447b3a5b94b8cd75d7395350ae64ec08f4e21719314d44e50fc807bfcd22d8356d3b3091dc78a5ff3715237c9097417f35ae WHIRLPOOL 220d4b7b7376f5f73edf7709325b166df10cdb945fa2928aaf1b3d4a1c70d487fdb6dc5e926b42bf2f839d0031730765f70ad8c1736868f89251c2da32b9cc11
+MISC ChangeLog-2015 5494 SHA256 00a56b968bb8c51ed1abf8e38a883b6557287b6193c86ef1e889f8ac4714f318 SHA512 a5fcf5daacd35ec34d8e4153e0db26b9c9ed24691208b942cddc01a167445cdc747a0d3bb25abfc972ef8135bf0b54a487e49311379a2b6c882f4a4036f70d08 WHIRLPOOL 33fa849feb73878927c7eee45cd5dc0cb41b34bd284ff23c61d29bf7b8e6cbcf16dec670ed171434b8645f648ac3cd2d3f0a587c6412e217486c1a34cd37e84d
+MISC metadata.xml 1185 SHA256 3d6bd9ddd12baf7f87ec65c8fdcbb3fcdcd9e82676a604eb234c20d0ad1afed7 SHA512 5f4554c860fb8b6b2bcf0b7cb8b0f8f147c187091cd64597aede3a3543570f586eb3c0fa4d69e2e2391bd5e839bb8ab089d05a05099554d206691c120c9321ff WHIRLPOOL 926af6cf1dadc2e735ad3b754bc4c4462add861834d6d4ecf1c2ca3752d4f8bc7e9c5a13d086ed76e0dfd829e4bf47f9541bd6d138a332f1db15e382b5035cb1
diff --git a/dev-java/xml-xmlbeans/files/xml-xmlbeans-2.6.0-SchemaCompiler.java.patch b/dev-java/xml-xmlbeans/files/xml-xmlbeans-2.6.0-SchemaCompiler.java.patch
new file mode 100644
index 000000000000..9f2958bc243a
--- /dev/null
+++ b/dev-java/xml-xmlbeans/files/xml-xmlbeans-2.6.0-SchemaCompiler.java.patch
@@ -0,0 +1,14 @@
+--- src/xmlcomp/org/apache/xmlbeans/impl/tool/SchemaCompiler.java.orig 2015-11-11 15:58:46.578486000 +0000
++++ src/xmlcomp/org/apache/xmlbeans/impl/tool/SchemaCompiler.java 2015-11-11 15:59:05.351486000 +0000
+@@ -217,8 +217,9 @@
+ boolean debug = (cl.getOpt("debug") != null);
+
+ String allowmdef = cl.getOpt("allowmdef");
+- Set mdefNamespaces = (allowmdef == null ? Collections.EMPTY_SET :
+- new HashSet(Arrays.asList(XmlListImpl.split_list(allowmdef))));
++ Set mdefNamespaces = Collections.EMPTY_SET;
++ // Set mdefNamespaces = (allowmdef == null ? Collections.EMPTY_SET :
++ // new HashSet(Arrays.asList(XmlListImpl.split_list(allowmdef))));
+
+ List extensions = new ArrayList();
+ if (cl.getOpt("extension") != null) {
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/metadata.xml b/dev-java/xml-xmlbeans/metadata.xml
new file mode 100644
index 000000000000..16bd04df50d9
--- /dev/null
+++ b/dev-java/xml-xmlbeans/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+</maintainer>
+
+<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-2.6.0.ebuild b/dev-java/xml-xmlbeans/xml-xmlbeans-2.6.0.ebuild
new file mode 100644
index 000000000000..caeeefcb60e9
--- /dev/null
+++ b/dev-java/xml-xmlbeans/xml-xmlbeans-2.6.0.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+JAVA_PKG_IUSE="doc source"
+
+inherit 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 ~ppc64 ~x86"
+
+CDEPEND="
+ dev-java/saxon:9
+ dev-java/jsr173:0
+ dev-java/annogen:0
+ dev-java/piccolo:0
+ dev-java/ant-core:0
+ dev-java/xml-commons-resolver:0"
+
+RDEPEND="
+ ${CDEPEND}
+ >=virtual/jre-1.6"
+
+DEPEND="
+ ${CDEPEND}
+ >=virtual/jdk-1.6"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-remove-jamsupport.patch
+ "${FILESDIR}"/${P}-piccolo.patch
+ "${FILESDIR}"/${P}-jam.patch
+ "${FILESDIR}"/${P}-SchemaCompiler.java.patch
+)
+
+java_prepare() {
+ epatch "${PATCHES[@]}"
+
+ # 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
+
+ # Create empty directories to let the build pass.
+ mkdir -p build/classes/{jam,piccolo} || die
+}
+
+JAVA_ANT_REWRITE_CLASSPATH="true"
+
+EANT_GENTOO_CLASSPATH="
+ annogen
+ piccolo
+ ant-core
+ 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."
+}