diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/werken-xpath | |
download | gentoo-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/werken-xpath')
8 files changed, 307 insertions, 0 deletions
diff --git a/dev-java/werken-xpath/Manifest b/dev-java/werken-xpath/Manifest new file mode 100644 index 000000000000..72526f3c6ee4 --- /dev/null +++ b/dev-java/werken-xpath/Manifest @@ -0,0 +1 @@ +DIST werken.xpath-0.9.4-beta-src.tar.gz 1652916 SHA256 e0d649230f3fa07f0860a355adde20e1ee08ba1a7809f00cb938b9b0dc3f76f3 SHA512 c58878ee0b6e88651335e2be60d0afcd65fc164864e826bb209ec660e97315233b25341733a4118ed3ee003f61998d84e480706bda5be4630c599efb616b845d WHIRLPOOL 2593fa630fcb50cbbeaf627c09682ee9822e938b845c53b6413600413a74b9b6b9417368273ebd258707ee3434a3ba8347a046ed27a0f94290687a246d38734e 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..838c00a4a448 --- /dev/null +++ b/dev-java/werken-xpath/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>java</herd> +</pkgmetadata> diff --git a/dev-java/werken-xpath/werken-xpath-0.9.4_beta-r2.ebuild b/dev-java/werken-xpath/werken-xpath-0.9.4_beta-r2.ebuild new file mode 100644 index 000000000000..9eebae77cecd --- /dev/null +++ b/dev-java/werken-xpath/werken-xpath-0.9.4_beta-r2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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="http://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 ppc x86 ~x86-fbsd" + +COMMON_DEP=" + dev-java/jdom:1.0 + >=dev-java/antlr-2.7.7:0[java]" +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-1.0" + +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.0 + epatch "${FILESDIR}"/${P}-jdom-1.0.patch + + cd "${S}"/lib + # In here we have ant starter scripts + rm -fr bin + rm -f *.jar +} + +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/* +} |