diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/werken-xpath |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/werken-xpath')
8 files changed, 319 insertions, 0 deletions
diff --git a/dev-java/werken-xpath/Manifest b/dev-java/werken-xpath/Manifest new file mode 100644 index 000000000000..2be3da440a4c --- /dev/null +++ b/dev-java/werken-xpath/Manifest @@ -0,0 +1,10 @@ +AUX werken-xpath-0.9.4_beta-gentoo.patch 1313 SHA256 588fef298eda7cddb53ec9a29bc996200e79887dd7024edbb72438a330fccea3 SHA512 bc1dea4402c1a4b4d99cdac96502ab7134613a9584f491c46abf194158c1524366037f086d250ca8cebb1972e298dd943a4af5919107af2b54863d4400e39bfe WHIRLPOOL 0bee1cabb67f676ce16b98dbb2b24b2eea80a1a8bca568a1c3eef1236062c62bd298977ac8faaae2c21aac32891c8b725b4456dc186c2c9d7a9e781faf7f1d8b +AUX werken-xpath-0.9.4_beta-jdom-1.0.patch 2325 SHA256 c6f1f7ff2b866a2563ad10edf54a24abfee9793a2478750827dd8eb8bd12a387 SHA512 29c3d85870d0c49b36823ba633c9a3440a5c61f140c0827aee7b78c3a241a97f3cf5e285d43deed2f85487cb38b9682b4298d1dfd3934c038ca1be90dbb086bc WHIRLPOOL dc8fd009ab49f356a27ec7389cae499b8bbde9209c10a75fcc3bc47c3c063fdcd29f4fc07a51a61097fe53e520cdde970277a178f52646645467c1c65720d5b1 +AUX werken-xpath-0.9.4_beta-jpp-compile.patch 1189 SHA256 8ccdde529f4b236ecd6793f3baf80e99d057eec4fad97bb130c9ba1ab3444d0b SHA512 e7dbb75305a22463f7a3a975ca21002fb9aa19fcaff8cff07890a74cadcde292023d8e714c801019e1cd42c1f69270f7ae31c547feabfae2d4972dc99d5719a4 WHIRLPOOL ae468268e72ce63de8cb34d86009bcb59684ce4fe5b948131dcc3bacbfb13c17b2f96f393249bd8704db71710e5049db90097977a9c69ab423ed68981ccd24d7 +AUX werken-xpath-0.9.4_beta-jpp-jdom.patch 3606 SHA256 4c8301b7fa31a8c999b3021c46526045f12e178b8bad230fbcd3b00cc5cd98b7 SHA512 de979a742d7d8f7fbcc68613ba4697fc4a4dc7d146d86712d71ae09c4e0b6f09c27361bd80743534aa5f2e864def2c5b8a09bd1d6fa2e15a852b74b73ff616c6 WHIRLPOOL 8a61c1285e880ae603ed1ca645661163b4a036f6f18dbee54f40296f2b791bd2191119d6676fff708d874e984551aff901ce6d1b5d2e0f2cbd7cc2026f1b19d1 +AUX werken-xpath-0.9.4_beta-jpp-tests.patch 353 SHA256 79297e31ea4b45ecdaa67df4bb8816b8dd416bc577c1f5406008954cab5e327c SHA512 80adb52ad882970be6177cd1f8ea3ece8fbd3388b02b1c1766f3c5c869c42e358be9682fdd4a189225158d75d59b558ac0cfe55d8e9530de383ef86b654c99e4 WHIRLPOOL b3afbe5249463b395e4219d934114245a876739ec8421f16f9302f4a0c3d42bc7ba902056fd5d38fac495735208a2411f3a2a76d7ef7121f0f9a3156fdcf77ac +DIST werken.xpath-0.9.4-beta-src.tar.gz 1652916 SHA256 e0d649230f3fa07f0860a355adde20e1ee08ba1a7809f00cb938b9b0dc3f76f3 SHA512 c58878ee0b6e88651335e2be60d0afcd65fc164864e826bb209ec660e97315233b25341733a4118ed3ee003f61998d84e480706bda5be4630c599efb616b845d WHIRLPOOL 2593fa630fcb50cbbeaf627c09682ee9822e938b845c53b6413600413a74b9b6b9417368273ebd258707ee3434a3ba8347a046ed27a0f94290687a246d38734e +EBUILD werken-xpath-0.9.4_beta-r4.ebuild 1365 SHA256 74a158fb0053b699e9a2123b4351d0bca385652e7c7e6f9108750b3d31992b37 SHA512 6e9fc5e7fdcb64d6177e8ae57a836c2c0ae5f0379cfe9175dd898631d1f42c6abc5ab2fcd8462c2b3b286a3f90976eee473c9f1045da4415de9fcef65bc43792 WHIRLPOOL 4527324bab357607b2a07a5db63c0730653dd9195a2f74d0c64fb0a70d0dcf6da6a8dd04609e37fde000ff106e77f036d67a18e1c6488f3aeca828e7c559d897 +MISC ChangeLog 4374 SHA256 d405ad826e433c43a61406a35b3ebf8eb98eefc58e100f9a8925c7da704051b8 SHA512 ace40aaeb3653be50ecbaafadf70dc2895806ad758f587f58d1c57c5d2131df8f4813f31b48dd2ee158344b4c3b7e3446d03651fa7008d52c957af7881b4f144 WHIRLPOOL 869a6c9ff8b63301c0f7ccf6ea8df71485d528d8fbe420d6f7f34d2a6802f0bc463cec75f4dffd5a5d92543df9b4d7eab61ef40a4a1fb23b66396ded674e87d8 +MISC ChangeLog-2015 3281 SHA256 383a8c07b7f1e46ae544688c419eccc04e895e0f22bcc81dc0bb7f9bae611abf SHA512 1bd5de84ffcfba2d997e24a3cf4f4d7cfd9a4243e4e3f6bba7fcb45c3dfb3b8740a70d3f024ff2225a42dbb970d000c7c4a038ea883167164604af73fac19018 WHIRLPOOL 448d0e9e15b1810956c06ed858746c72c4b585b21b7a9900bce0a88a479023d7f4b3efb2a647ee74ebab7e7a44f870edb2ad76f98c030b82b9e5772b83057065 +MISC metadata.xml 318 SHA256 856fd8630a6bdbace27114f055e6d37efa5514b213c8cf44d6d5270006bb1f94 SHA512 64e77592f9351e55f3775ec892c2d0b6967ddd0f98cac9ae4b75f023cf24be1cc3df514062ccd5d247f8202d33b71965fb09878dee0c07edfc84734cdebe11b3 WHIRLPOOL 74cd15867440e8460c818db29326a524c5e2545cf45baf6191f08097ff3962b494b8813fdd8932431a75f0541ba8f4d97e077aa7159cac5e0f0a4966bf9f1d7b diff --git a/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-gentoo.patch b/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-gentoo.patch new file mode 100644 index 000000000000..1cd61fc818ad --- /dev/null +++ b/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-gentoo.patch @@ -0,0 +1,35 @@ +diff -ru werken.xpath/build.xml werken.xpath-patched/build.xml +--- werken.xpath/build.xml 2000-11-19 21:45:16.000000000 -0500 ++++ werken.xpath-patched/build.xml 2005-07-14 21:14:01.000000000 -0400 +@@ -49,6 +49,9 @@ + <!-- JDK1.1 collections --> + <property name="coll.import" value="com.sun.java.util.collections"/> + <available classname="${coll.import}.Collection" property="coll.present"/> ++ <path id="lib.classpath"> ++ <fileset dir="${lib.dir}" includes="**/*.jar"/> ++ </path> + </target> + + <!-- =================================================================== --> +@@ -174,7 +177,8 @@ + <javac srcdir="${build.src}" + destdir="${build.dest}" + debug="${debug}" +- optimize="${optimize}"> ++ optimize="${optimize}" ++ classpathref="lib.classpath"> + </javac> + </target> + +diff -ru werken.xpath/src/com/werken/xpath/Test.java werken.xpath-patched/src/com/werken/xpath/Test.java +--- werken.xpath/src/com/werken/xpath/Test.java 2000-10-23 23:45:32.000000000 -0400 ++++ werken.xpath-patched/src/com/werken/xpath/Test.java 2005-07-14 21:22:42.000000000 -0400 +@@ -57,7 +57,7 @@ + System.err.println("Results :: " + results); + + } +- catch (JDOMException jde) ++ catch (Exception jde) + { + jde.printStackTrace(System.err); + } diff --git a/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jdom-1.0.patch b/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jdom-1.0.patch new file mode 100644 index 000000000000..099f7110a5da --- /dev/null +++ b/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jdom-1.0.patch @@ -0,0 +1,86 @@ +--- werken.xpath/src/com/werken/xpath/ElementNamespaceContext.java ++++ werken.xpath/src/com/werken/xpath/ElementNamespaceContext.java +@@ -62,12 +62,12 @@ + + lineage.push(_element); + +- Element elem = _element.getParent(); ++ Element elem = _element.getParentElement(); + + while (elem != null) + { + lineage.push(elem); +- elem = elem.getParent(); ++ elem = elem.getParentElement(); + } + + List nsList = null; +--- werken.xpath/src/com/werken/xpath/impl/ParentStep.java ++++ werken.xpath/src/com/werken/xpath/impl/ParentStep.java +@@ -28,7 +28,7 @@ + { + if ( node instanceof Element ) + { +- return ((Element)node).getParent(); ++ return ((Element)node).getParentElement(); + } + + return null; +@@ -50,7 +50,7 @@ + + if ( each instanceof Element ) + { +- parent = ((Element)each).getParent(); ++ parent = ((Element)each).getParentElement(); + + if (parent != null) + { +--- werken.xpath/src/com/werken/xpath/util/Partition.java ++++ werken.xpath/src/com/werken/xpath/util/Partition.java +@@ -67,7 +67,7 @@ + + public static List followingSiblings(Element node) + { +- Element parent = node.getParent(); ++ Element parent = node.getParentElement(); + + if (parent == null) + { +@@ -95,7 +95,7 @@ + + public static List preceedingSiblings(Element node) + { +- Element parent = node.getParent(); ++ Element parent = node.getParentElement(); + + if (parent == null) + { +@@ -137,7 +137,7 @@ + results.addAll( Partition.descendants( each ) ); + } + +- Element parent = node.getParent(); ++ Element parent = node.getParentElement(); + + if (parent != null) + { +@@ -170,7 +170,7 @@ + results.addAll( Partition.descendants( each ) ); + } + +- Element parent = node.getParent(); ++ Element parent = node.getParentElement(); + + if (parent != null) + { +--- werken.xpath/test/src/com/werken/xpath/test/Driver.java ++++ werken.xpath/test/src/com/werken/xpath/test/Driver.java +@@ -47,7 +47,7 @@ + + System.out.println("Using test-cases in [" + args[0] + "]"); + +- File dataDir = driverXML.getParentFile(); ++ File dataDir = driverXML.getParentElementFile(); + + Driver driver = Driver(dataDir, + driverXML); diff --git a/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-compile.patch b/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-compile.patch new file mode 100644 index 000000000000..516158f63083 --- /dev/null +++ b/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-compile.patch @@ -0,0 +1,24 @@ +diff -Nru werken.xpath.orig/src/com/werken/xpath/impl/Op.java werken.xpath/src/com/werken/xpath/impl/Op.java +--- werken.xpath.orig/src/com/werken/xpath/impl/Op.java 2000-08-27 03:16:03.000000000 +0300 ++++ werken.xpath/src/com/werken/xpath/impl/Op.java 2003-03-02 01:44:52.000000000 +0200 +@@ -19,7 +19,7 @@ + public final static Op GT = new Op(">"); + public final static Op LT_EQUAL = new Op("<="); + public final static Op GT_EQUAL = new Op(">="); +- public final static Op MOD = new Op("%");; ++ public final static Op MOD = new Op("%"); + public final static Op DIV = new Op("/"); + public final static Op PLUS = new Op("+"); + public final static Op MINUS = new Op("-"); +diff -Nru werken.xpath.orig/src/com/werken/xpath/impl/UnAbbrStep.java werken.xpath/src/com/werken/xpath/impl/UnAbbrStep.java +--- werken.xpath.orig/src/com/werken/xpath/impl/UnAbbrStep.java 2000-10-31 22:20:56.000000000 +0200 ++++ werken.xpath/src/com/werken/xpath/impl/UnAbbrStep.java 2003-03-02 01:45:04.000000000 +0200 +@@ -175,7 +175,7 @@ + } + } + +- return aggregateResults;; ++ return aggregateResults; + } + + private List applyPredicates(List nodeSet, diff --git a/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-jdom.patch b/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-jdom.patch new file mode 100644 index 000000000000..ba2b268f1c89 --- /dev/null +++ b/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-jdom.patch @@ -0,0 +1,86 @@ +diff -Nru werken.xpath.orig/src/com/werken/xpath/function/StringFunction.java werken.xpath/src/com/werken/xpath/function/StringFunction.java +--- werken.xpath.orig/src/com/werken/xpath/function/StringFunction.java 2000-10-24 06:30:00.000000000 +0300 ++++ werken.xpath/src/com/werken/xpath/function/StringFunction.java 2003-03-02 01:56:03.000000000 +0200 +@@ -71,7 +71,7 @@ + + public static String evaluate(Element elem) + { +- List content = elem.getMixedContent(); ++ List content = elem.getContent(); + + Iterator contentIter = content.iterator(); + Object each = null; +diff -Nru werken.xpath.orig/src/com/werken/xpath/impl/NodeTypeStep.java werken.xpath/src/com/werken/xpath/impl/NodeTypeStep.java +--- werken.xpath.orig/src/com/werken/xpath/impl/NodeTypeStep.java 2000-10-26 04:09:41.000000000 +0300 ++++ werken.xpath/src/com/werken/xpath/impl/NodeTypeStep.java 2003-03-02 01:56:03.000000000 +0200 +@@ -84,16 +84,16 @@ + { + if ( isAbsolute() ) + { +- results.addAll( applyToNodes( ((Element)node).getDocument().getMixedContent() ) ); ++ results.addAll( applyToNodes( ((Element)node).getDocument().getContent() ) ); + } + else + { +- results.addAll( applyToNodes( ((Element)node).getMixedContent() ) ); ++ results.addAll( applyToNodes( ((Element)node).getContent() ) ); + } + } + else if ( node instanceof Document ) + { +- results.addAll( applyToNodes( ((Document)node).getMixedContent() ) ); ++ results.addAll( applyToNodes( ((Document)node).getContent() ) ); + } + + return results; +diff -Nru werken.xpath.orig/src/com/werken/xpath/impl/UnAbbrStep.java werken.xpath/src/com/werken/xpath/impl/UnAbbrStep.java +--- werken.xpath.orig/src/com/werken/xpath/impl/UnAbbrStep.java 2000-10-31 22:20:56.000000000 +0200 ++++ werken.xpath/src/com/werken/xpath/impl/UnAbbrStep.java 2003-03-02 01:56:03.000000000 +0200 +@@ -227,7 +227,7 @@ + + if ( node instanceof Element ) + { +- List children = ((Element)node).getMixedContent(); ++ List children = ((Element)node).getContent(); + + results.addAll( applyTo( children, + support, +@@ -235,7 +235,7 @@ + } + else if ( node instanceof Document ) + { +- List children = ((Document)node).getMixedContent(); ++ List children = ((Document)node).getContent(); + + results.addAll( applyTo( children, + support, +@@ -256,7 +256,7 @@ + + if ( node instanceof Element ) + { +- List children = ((Element)node).getMixedContent(); ++ List children = ((Element)node).getContent(); + + results.addAll( applyTo( children, + support, +@@ -264,7 +264,7 @@ + } + else if ( node instanceof Document ) + { +- List children = ((Document)node).getMixedContent(); ++ List children = ((Document)node).getContent(); + + results.addAll( applyTo( children, + support, +diff -Nru werken.xpath.orig/test/src/com/werken/xpath/test/Driver.java werken.xpath/test/src/com/werken/xpath/test/Driver.java +--- werken.xpath.orig/test/src/com/werken/xpath/test/Driver.java 2000-11-09 19:43:30.000000000 +0200 ++++ werken.xpath/test/src/com/werken/xpath/test/Driver.java 2003-03-02 01:56:55.000000000 +0200 +@@ -412,7 +412,7 @@ + elemID = ""; + } + +- resultNode.addAttribute("id", elemID); ++ resultNode.setAttribute("id", elemID); + node.addContent( resultNode ); + results.addContent( node ); + } diff --git a/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-tests.patch b/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-tests.patch new file mode 100644 index 000000000000..d26e6185aff3 --- /dev/null +++ b/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-tests.patch @@ -0,0 +1,10 @@ +--- runtests.sh~ 2000-10-31 23:42:01.000000000 +0200 ++++ runtests.sh 2003-03-02 01:59:55.000000000 +0200 +@@ -9,6 +9,6 @@ + XPATH_CP=./build/werken.xpath.jar + TEST_CP=./build/test/classes/ + +-CP=$ANTLR_CP:$JDOM_CP:$XPATH_CP:$TEST_CP:$XERCES_CP ++CP=$ANTLR_CP:$JDOM_CP:$XPATH_CP:$TEST_CP:$XERCES_CP:$CLASSPATH + + java -classpath $CP $TEST_DRIVER $TESTS_XML diff --git a/dev-java/werken-xpath/metadata.xml b/dev-java/werken-xpath/metadata.xml new file mode 100644 index 000000000000..93f0dea9b7f9 --- /dev/null +++ b/dev-java/werken-xpath/metadata.xml @@ -0,0 +1,11 @@ +<?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> + <upstream> + <remote-id type="sourceforge">werken-xpath</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-java/werken-xpath/werken-xpath-0.9.4_beta-r4.ebuild b/dev-java/werken-xpath/werken-xpath-0.9.4_beta-r4.ebuild new file mode 100644 index 000000000000..cbba64656259 --- /dev/null +++ b/dev-java/werken-xpath/werken-xpath-0.9.4_beta-r4.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +JAVA_PKG_IUSE="doc source" +WANT_ANT_TASKS="ant-antlr" + +inherit java-pkg-2 java-ant-2 eutils versionator + +MY_PN=${PN/-/.} +MY_PV=$(replace_version_separator 3 '-') +MY_P=${MY_PN}-${MY_PV} + +DESCRIPTION="W3C XPath-Rec implementation for DOM4J" +HOMEPAGE="https://sourceforge.net/projects/werken-xpath/" +SRC_URI="mirror://gentoo/${MY_P}-src.tar.gz" +# This tarball was acquired from jpackage's src rpm of the package by the same name + +LICENSE="JDOM" +SLOT="0" +KEYWORDS="amd64 x86 ~x86-fbsd" + +COMMON_DEP=" + dev-java/jdom:0 + >=dev-java/antlr-2.7.7-r7:0" +DEPEND=">=virtual/jdk-1.4 + ${COMMON_DEP}" +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEP}" + +S=${WORKDIR}/${MY_PN} + +EANT_BUILD_TARGET="package" +JAVA_ANT_REWRITE_CLASSPATH="yes" +EANT_GENTOO_CLASSPATH="antlr,jdom" + +java_prepare() { + # Courtesy of JPackages :) + epatch "${FILESDIR}"/${P}-jpp-compile.patch + epatch "${FILESDIR}"/${P}-jpp-jdom.patch + epatch "${FILESDIR}"/${P}-jpp-tests.patch + epatch "${FILESDIR}"/${P}-gentoo.patch + + # API updates to support jdom-1 + epatch "${FILESDIR}"/${P}-jdom-1.0.patch + + java-pkg_clean + rm -rv lib/bin || die +} + +src_install() { + java-pkg_newjar build/${MY_PN}.jar + + dodoc README TODO LIMITATIONS + use doc && java-pkg_dojavadoc build/apidocs + use source && java-pkg_dosrc src/* +} |