diff options
author | 2012-09-06 17:51:57 +0300 | |
---|---|---|
committer | 2012-09-06 17:51:57 +0300 | |
commit | f8649ed8575bd55b5a4e047db4f8a83ebc91b265 (patch) | |
tree | 0f3515cccbb76e2df6201b2967e6cf0a3082b9e0 | |
parent | add annogen (jam) library (diff) | |
download | dmol-f8649ed8575bd55b5a4e047db4f8a83ebc91b265.tar.gz dmol-f8649ed8575bd55b5a4e047db4f8a83ebc91b265.tar.bz2 dmol-f8649ed8575bd55b5a4e047db4f8a83ebc91b265.zip |
add xml-xmlbeans-2.6.0.ebuild
-rw-r--r-- | dev-java/xml-xmlbeans/Manifest | 6 | ||||
-rw-r--r-- | dev-java/xml-xmlbeans/files/xml-xmlbeans-2.6.0-build.xml.patch | 93 | ||||
-rw-r--r-- | dev-java/xml-xmlbeans/files/xml-xmlbeans-2.6.0-jam.patch | 64 | ||||
-rw-r--r-- | dev-java/xml-xmlbeans/files/xml-xmlbeans-2.6.0-piccolo.patch | 14 | ||||
-rw-r--r-- | dev-java/xml-xmlbeans/metadata.xml | 7 | ||||
-rw-r--r-- | dev-java/xml-xmlbeans/xml-xmlbeans-2.6.0.ebuild | 61 |
6 files changed, 245 insertions, 0 deletions
diff --git a/dev-java/xml-xmlbeans/Manifest b/dev-java/xml-xmlbeans/Manifest new file mode 100644 index 0000000..bc6251b --- /dev/null +++ b/dev-java/xml-xmlbeans/Manifest @@ -0,0 +1,6 @@ +AUX xml-xmlbeans-2.6.0-build.xml.patch 4874 SHA256 eaff057baf64a0a40c94ec4a1953ff6478bfa06f5ca937b2cadbb81cd6eb780c SHA512 24220ba82b7bc794d43dbd528ee22dd32d1185d5e189fe6b55825c6f11dd390bdc92b0f08261875ad569b1fabfec3676ee478ac2bb48325e9af1f2f0bfc9e3af WHIRLPOOL ef10adc4ff13a263ea9f6caa48a3bfe7eb08b89c0b4fc9cd50115dae0ba0c7849855eff0ea9f99b0f8dba7e636da09b83b0d7600d779f97ca049c9d8e6245ad5 +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 +DIST xmlbeans-2.6.0-src.zip 9005098 SHA256 3dff52b0854236adbbff9dc76722372415cd9a8f406f6133886a6c5228595390 SHA512 162dc3d283ebf9f7fae823a2ae8d835b708c2cbeed48349c85996e60b2b8dfe0e51b17bd37eb34327c6452b2c0fc7df8a4902816b145993e36ca614ceb43b2b7 WHIRLPOOL cd775fa268e56aa02d744be67012d807e1cebf978d453610b48a8ca865f8d1587f27ced161d622d5d6ae0badab80de80ee4b46b7bf3bb753f69242c20d1e03d5 +EBUILD xml-xmlbeans-2.6.0.ebuild 1597 SHA256 e8134147ff87f028baec707859e289bd7aa297a3614820766c1c0ab47506a8a5 SHA512 db0d7c9e22b29cea4db5a17a48d88dc281b515bbc39e9f33f52b08f93c9d85a9df5e4bc3befc0097e3a3f7ffeb2f11bdf4177f45fe112d9739a6ad3e4c44f42d WHIRLPOOL 71aa800e281ed7d7f09d5c1ece86f733fb4ca136aa2401717ae958dfa3363b73285f730fcc0a5a36abd1342c71f08d13ebc20a538f595a6d90af97915e10c2e7 +MISC metadata.xml 205 SHA256 2ff0740a5424b0e10c7888541a248d1bd363a60911b0921b4cfe5c36590498ce SHA512 e7c77c724739d0af43cc338ded09dcbeee2a710eb0e49f1e656dc4c891bee85bfd6935bf70a191a1c5823f473643e676d64970416e5f1820ea466681016757c5 WHIRLPOOL 5b7f0c2a5243244fa06b072c8f0d9f53e7b6f45c7e1b74a0d945bdcc28b7137fddfd58e85b0d3e721e80963916ceae0d4cca59f48114ba26c47b24a91d6abb27 diff --git a/dev-java/xml-xmlbeans/files/xml-xmlbeans-2.6.0-build.xml.patch b/dev-java/xml-xmlbeans/files/xml-xmlbeans-2.6.0-build.xml.patch new file mode 100644 index 0000000..c0e2a1f --- /dev/null +++ b/dev-java/xml-xmlbeans/files/xml-xmlbeans-2.6.0-build.xml.patch @@ -0,0 +1,93 @@ +--- /tmp/xmlbeans-2.6.0.orig/build.xml 2012-07-23 15:38:40.000000000 +0300 ++++ build.xml 2012-09-05 23:56:57.598925249 +0300 +@@ -487,8 +487,8 @@ + typeimpl.classes, xmlcomp.classes, + 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"> ++ xmlinputstream.classes, xbean_xpath.jar, ++ tools.classes"> + <jar jarfile="build/lib/xbean.jar" index="true"> + <fileset dir="build/classes/xmlpublic" + excludes="javax/**"/> +@@ -508,8 +508,6 @@ + <fileset dir="build/classes/xmlinputstream"/> + <fileset dir="build/classes/marshal"/> + <fileset dir="build/classes/repackage"/> +- <fileset dir="build/classes/jam"/> +- <fileset dir="build/classes/piccolo"/> + <fileset dir="build/classes/tools"/> + <fileset file="LICENSE.txt"/> + <fileset file="NOTICE.txt"/> +@@ -545,7 +543,7 @@ + + <!-- xmlpublic target ============================================== --> + +- <target name="xmlpublic.classes" depends="dirs, jsr173_1.0.jars"> ++ <target name="xmlpublic.classes" depends="dirs"> + <mkdir dir="build/classes/xmlpublic"/> + <javac srcdir="src/xmlpublic" sourcepath="src/xmlinputstream" destdir="build/classes/xmlpublic" source="${javac.source}" target="${javac.target}" debug="on"> + <classpath> +@@ -597,7 +595,7 @@ + + <!-- common target ============================================= --> + +- <target name="common.classes" depends="dirs, xmlpublic.classes, xmlinputstream.classes, jsr173_1.0.jars"> ++ <target name="common.classes" depends="dirs, xmlpublic.classes, xmlinputstream.classes"> + <mkdir dir="build/classes/common"/> + <javac srcdir="src/common" destdir="build/classes/common" source="${javac.source}" target="${javac.target}" debug="on"> + <classpath> +@@ -639,7 +637,7 @@ + + <target name="typeimpl.classes" depends="dirs, store.classes, + repackage.classes, xmlpublic.classes, typeholder.template, typestore.classes, xsdschema.classes, +- configschema.classes, toolschema.classes, jsr173_1.0.jars, jam.classes"> ++ configschema.classes, toolschema.classes, jam.classes"> + <mkdir dir="build/classes/typeimpl"/> + <javac destdir="build/classes/typeimpl" source="${javac.source}" target="${javac.target}" debug="on"> + <classpath> +@@ -697,7 +695,7 @@ + + <!-- marshal target =============================================== --> + +- <target name="marshal.classes" depends="dirs, typeimpl.classes, xmlpublic.classes, jsr173_1.0.jars"> ++ <target name="marshal.classes" depends="dirs, typeimpl.classes, xmlpublic.classes"> + <mkdir dir="build/classes/marshal"/> + <javac srcdir="src/marshal" destdir="build/classes/marshal" source="${javac.source}" target="${javac.target}" debug="on"> + <classpath> +@@ -716,6 +714,7 @@ + <!-- support for running JAM under JDK1.5 ========================= --> + + <target name="jamsupport.classes" depends="dirs,jam.classes"> ++ <mkdir dir="build/classes/jam" /> + <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"/> +@@ -834,7 +833,7 @@ + </condition> + </target> + +- <target name="xmlschema.classes" depends="xmlschema.check, xmlpublic.classes, oldxbean.jar, jsr173_1.0.jars" unless="xmlschema.notRequired"> ++ <target name="xmlschema.classes" depends="xmlschema.check, xmlpublic.classes, oldxbean.jar" unless="xmlschema.notRequired"> + <delete dir="build/classes/xmlschema"/> + <delete dir="build/src/xmlschema"/> + <java classname="${bootstrap_schema_compiler}" classpathref="bootstrap.run.path" fork="true" failonerror="true"> +@@ -1073,7 +1072,7 @@ + </path> + + +- <target name="drt.classes" depends="dirs,jsr173_1.0.jars"> ++ <target name="drt.classes" depends="dirs"> + <mkdir dir="build/private/classes/drt"/> + <javac + destdir="build/private/classes/drt" +@@ -1118,7 +1117,7 @@ + </uptodate> + </target> + +- <target name="jam.classes" depends="jam.classes.check, dirs, repackage.classes, jsr173_1.0.jars" unless="jam.classes.notRequired"> ++ <target name="jam.classes" depends="jam.classes.check, dirs, repackage.classes" unless="jam.classes.notRequired"> + <delete dir="build/private/jam"/> + <mkdir dir="build/private/jam"/> + <unjar src="external/lib/jam-0.1.0-src.jar" dest="build/private/jam"/> 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 0000000..8081f71 --- /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 0000000..866dc0f --- /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/metadata.xml b/dev-java/xml-xmlbeans/metadata.xml new file mode 100644 index 0000000..80859ae --- /dev/null +++ b/dev-java/xml-xmlbeans/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>the.dmol@gmail.com</email> + </maintainer> +</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 0000000..355f23e --- /dev/null +++ b/dev-java/xml-xmlbeans/xml-xmlbeans-2.6.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" +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" +IUSE="" + +COMMON_DEP="dev-java/piccolo:0 + dev-java/annogen:0 + >=dev-java/ant-core-1.6.2 + dev-java/saxon:9" + +RDEPEND=">=virtual/jre-1.6 + ${COMMON_DEP}" +DEPEND=">=virtual/jdk-1.6 + ${COMMON_DEP}" + +S="${WORKDIR}/${MY_P}" + +JAVA_ANT_REWRITE_CLASSPATH="true" +JAVA_PKG_BSFIX_ALL="no" +EANT_BUILD_TARGET="deploy" +EANT_GENTOO_CLASSPATH="piccolo,annogen,ant-core,saxon-9" +EANT_EXTRA_ARGS="-Dpiccolo.classes.notRequired=true -Djam.classes.notRequired=true \ + -Dpiccolo_package_name=com.bluecast.xml -Dsaxon9.jar.exists=true" + +java_prepare() { + #preserve the self xml-beans jar, which is required for building the package itself + #egg-chicken problem? + mv external/lib/oldxbean.jar "${T}/" + find . -iname '*.jar' -exec rm -v {} + + find external/lib -iname '*.zip' -exec rm -v {} + + mv "${T}/oldxbean.jar" external/lib/ + epatch "${FILESDIR}"/${P}-build.xml.patch + epatch "${FILESDIR}"/${P}-piccolo.patch + epatch "${FILESDIR}"/${P}-jam.patch +} + +#~ 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/* +#~ } |