werken.xpath (0.9.4-11) debian-dir only changes

Summary

 debian/changelog                                      |   98 ++++++++++++++++++
 debian/compat                                         |    1 
 debian/control                                        |   19 +++
 debian/copyright                                      |   53 +++++++++
 debian/dirs                                           |    1 
 debian/libwerken.xpath-java.docs                      |    4 
 debian/libwerken.xpath-java.links                     |    2 
 debian/patches/01_Test_CompileFix_JDomAPIChange.patch |   13 ++
 debian/patches/02_JDOM_NodeTypeStep.patch             |   22 ++++
 debian/patches/03_JDOM_UnAbbrStep.patch               |   47 ++++++++
 debian/patches/04_JDOM_StringFunction.patch           |   11 ++
 debian/patches/05_JDOM_getParent.patch                |   66 ++++++++++++
 debian/rules                                          |   16 ++
 debian/watch                                          |    3 
 14 files changed, 356 insertions(+)

    
download this patch

Patch contents

--- werken.xpath-0.9.4.orig/debian/rules
+++ werken.xpath-0.9.4/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+# debian/rules file for werken.xpath (uses cdbs)
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+include /usr/share/cdbs/1/class/ant.mk
+
+JAVA_HOME := /usr/lib/jvm/default-java
+
+DEB_JARS := $(ANT_HOME)/lib/ant-launcher.jar jdom1 xercesImpl antlrall
+
+DEB_ANT_CLEAN_TARGET := clean
+DEB_ANT_BUILD_TARGET := package javadoc
+
+install/libwerken.xpath-java::
+	install -m 644 build/werken.xpath.jar debian/libwerken.xpath-java/usr/share/java/werken.xpath-0.9.4.jar
--- werken.xpath-0.9.4.orig/debian/control
+++ werken.xpath-0.9.4/debian/control
@@ -0,0 +1,19 @@
+Source: werken.xpath
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
+Uploaders: Arnaud Vandyck <avdyk@debian.org>, Michael Koch <konqueror@gmx.de>
+Build-Depends: debhelper(>= 7), cdbs, ant, default-jdk
+Build-Depends-Indep: libxerces2-java, antlr(>= 2.7), libjdom1-java
+Standards-Version: 3.8.3
+
+Package: libwerken.xpath-java
+Architecture: all
+Depends: default-jre-headless | java1-runtime-headless | java2-runtime-headless, libxerces2-java, antlr(>= 2.7), libjdom1-java, ${misc:Depends}
+Description: JDOM XPath Engine 
+ A XPath Engine for JDOM, created by the Werken & Sons Company.
+ .
+ It's not overly useful by itself, but rather needs an (currently in
+ development) implementation of XPointer, XSLT, or other XPath-based 
+ specification.  werken.xpath is merely an engine which can parse XPaths,
+ and walk JDOM <http://www.jdom.org/> trees.
--- werken.xpath-0.9.4.orig/debian/compat
+++ werken.xpath-0.9.4/debian/compat
@@ -0,0 +1 @@
+7
--- werken.xpath-0.9.4.orig/debian/changelog
+++ werken.xpath-0.9.4/debian/changelog
@@ -0,0 +1,98 @@
+werken.xpath (0.9.4-11) unstable; urgency=low
+
+  * (Build-)Depends on libjdom1-java (Closes: #500537).
+  * Added debian/patches/05_JDOM_getParent.patch.
+  * Loosen Depends to allow non-default java implementations too.
+
+ -- Michael Koch <konqueror@gmx.de>  Mon, 28 Sep 2009 21:52:03 +0200
+
+werken.xpath (0.9.4-10) unstable; urgency=low
+
+  * (Build-)Depends on default-jdk.
+  * Build-Depends on debhelper >= 7.
+  * Moved debhelper, cdbs and ant to Build-Depends.
+  * Moved package to section 'java'
+  * Fixed watch file to use SourceForge redirector.
+  * Removed Wolfgang and added myself to Uploaders.
+  * Updated Standards-Version to 3.8.3.
+
+ -- Michael Koch <konqueror@gmx.de>  Tue, 15 Sep 2009 07:29:33 +0200
+
+werken.xpath (0.9.4-9) unstable; urgency=low
+
+  * Removed Takashi Okamoto (closes: #352994)
+
+ -- Arnaud Vandyck <avdyk@debian.org>  Tue, 25 Apr 2006 15:18:39 +0200
+
+werken.xpath (0.9.4-8) unstable; urgency=low
+
+  * kaffe compiler transition 
+
+ -- Wolfgang Baer <WBaer@gmx.de>  Mon, 16 Jan 2006 15:04:34 +0100
+
+werken.xpath (0.9.4-7) unstable; urgency=low
+
+  * Changed build dependencies
+    - libant1.6-java to ant
+    - libxerces-java to libxerces2-java
+  * Standards-Version 3.6.2 (no changes)
+  * Minor adjustment of description to fix linda warning
+
+  * Upload sponsored by Arnaud Vandyck
+
+ -- Wolfgang Baer <WBaer@gmx.de>  Tue, 16 Aug 2005 21:24:10 +0200
+
+werken.xpath (0.9.4-6) unstable; urgency=low
+
+  * Move to main (Closes: #257839)
+  * upload with the sources.
+
+ -- Arnaud Vandyck <avdyk@debian.org>  Sun, 10 Apr 2005 23:26:27 +0200
+
+werken.xpath (0.9.4-5) unstable; urgency=low
+
+  * Changed build system to cdbs
+  * Move to main (Closes: #257839)
+  * Splitted patches from diff.gz into single patch files
+  * Standards-Version to 3.6.1 (no changes required)
+  * avdyk: added Wolfgang and myself to the uploaders
+  
+ -- Wolfgang Baer <WBaer@gmx.de>  Tue, 15 Mar 2005 20:06:29 +0100
+
+werken.xpath (0.9.4-4) unstable; urgency=low
+
+  * fixed FTBFS (Closes: #297555)
+  * adjusted jdom dependency to libjdom0-java
+  * changed maintainer to Debian Java Maintainers as
+    requested by Takashi Okamoto for comaintaining
+  * added java runtime dependency to depends  
+
+ -- Wolfgang Baer <WBaer@gmx.de>  Mon, 14 Mar 2005 19:50:14 +0100
+
+werken.xpath (0.9.4-3) unstable; urgency=low
+
+  * fixed FTBFS(Closes: #148616)
+  * move to contrib section because jdom which werken.xpath depends 
+    library move to contrib.
+
+ -- Takashi Okamoto <tora@debian.org>  Fri, 31 May 2002 23:45:52 +0900
+
+werken.xpath (0.9.4-2) unstable; urgency=low
+
+  * fixed build fail bug (Closes: #134904)
+  * Modify following class for new jdom:
+  *	UnAbbrStep.java
+  *	NodeTypeStep.java
+  *	XPathTokenTypes.txt
+
+ -- Takashi Okamoto <tora@debian.org>  Thu, 21 Feb 2002 08:56:22 +0900
+
+werken.xpath (0.9.4-1) unstable; urgency=low
+
+  * Initial release.
+
+ -- Takashi Okamoto <tora@debian.org>  Sun, 29 Jul 2001 12:42:17 +0900
+
+Local variables:
+mode: debian-changelog
+End:
--- werken.xpath-0.9.4.orig/debian/dirs
+++ werken.xpath-0.9.4/debian/dirs
@@ -0,0 +1 @@
+usr/share/java
--- werken.xpath-0.9.4.orig/debian/libwerken.xpath-java.docs
+++ werken.xpath-0.9.4/debian/libwerken.xpath-java.docs
@@ -0,0 +1,4 @@
+README
+LIMITATIONS
+build/apidocs
+test
--- werken.xpath-0.9.4.orig/debian/watch
+++ werken.xpath-0.9.4/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/-beta/~beta/ \
+http://sf.net/werken-xpath/werken.xpath-([[:digit:].]+(?:-beta)?)-full\.tar\.gz
--- werken.xpath-0.9.4.orig/debian/libwerken.xpath-java.links
+++ werken.xpath-0.9.4/debian/libwerken.xpath-java.links
@@ -0,0 +1,2 @@
+usr/share/java/werken.xpath-0.9.4.jar usr/share/java/werken.xpath.jar
+
--- werken.xpath-0.9.4.orig/debian/copyright
+++ werken.xpath-0.9.4/debian/copyright
@@ -0,0 +1,53 @@
+This package was debianized by Takashi Okamoto tora@debian.org on
+Sun, 29 Jul 2001 12:42:17 +0900.
+
+It was downloaded from <http://code.werken.com/xpath>. This download
+is no longer working. The company can be find under www.werken.com
+but there is no longer a download link to the old library.
+
+Copyright:
+
+ Copyright (C) 2000 bob mcwhirter and The Werken & Sons Company
+ All rights reserved.
+ 
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions, and the following disclaimer.
+ 
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions, and the disclaimer that follows 
+    these conditions in the documentation and/or other materials 
+    provided with the distribution.
+
+ 3. The name "werken.xpath" must not be used to endorse or promote 
+    products derived from this software without prior written permission.  
+    For written permission, please contact bob@werken.com
+ 
+ 4. Products derived from this software may not be called "werken.xpath", 
+    nor may "werken.xpath" appear in their name, without prior written 
+    permission from the Werken & Sons Company (bob@werken.com).
+ 
+ In addition, we request (but do not require) that you include in the 
+ end-user documentation provided with the redistribution and/or in the 
+ software itself an acknowledgement equivalent to the following:
+     "This product includes software developed by 
+      The Werken & Sons Company (http://www.werken.com/)."
+ Alternatively, the acknowledgment may be graphical using the logos 
+ available at http://www.werken.com/pix/werken-digital.gif
+
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
--- werken.xpath-0.9.4.orig/debian/patches/02_JDOM_NodeTypeStep.patch
+++ werken.xpath-0.9.4/debian/patches/02_JDOM_NodeTypeStep.patch
@@ -0,0 +1,22 @@
+--- src/com/werken/xpath/impl/NodeTypeStep.java.orig	2005-03-21 23:23:52.000000000 +0100
++++ src/com/werken/xpath/impl/NodeTypeStep.java	2005-03-14 20:26:41.000000000 +0100
+@@ -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;
--- werken.xpath-0.9.4.orig/debian/patches/03_JDOM_UnAbbrStep.patch
+++ werken.xpath-0.9.4/debian/patches/03_JDOM_UnAbbrStep.patch
@@ -0,0 +1,47 @@
+--- src/com/werken/xpath/impl/UnAbbrStep.java.orig	2005-03-21 23:23:52.000000000 +0100
++++ src/com/werken/xpath/impl/UnAbbrStep.java	2005-03-14 20:26:41.000000000 +0100
+@@ -175,7 +175,7 @@
+       }
+     }
+ 
+-    return aggregateResults;;
++    return aggregateResults;
+   }
+ 
+   private List applyPredicates(List nodeSet,
+@@ -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,
--- werken.xpath-0.9.4.orig/debian/patches/01_Test_CompileFix_JDomAPIChange.patch
+++ werken.xpath-0.9.4/debian/patches/01_Test_CompileFix_JDomAPIChange.patch
@@ -0,0 +1,13 @@
+--- src/com/werken/xpath/Test.java.orig	2000-10-24 05:45:32.000000000 +0200
++++ src/com/werken/xpath/Test.java	2005-03-14 20:21:04.216696296 +0100
+@@ -57,6 +57,10 @@
+       System.err.println("Results :: " + results);
+ 
+     }
++    catch (IOException ioe)
++    {
++      ioe.printStackTrace(System.err);
++    }
+     catch (JDOMException jde)
+     {
+       jde.printStackTrace(System.err);
--- werken.xpath-0.9.4.orig/debian/patches/05_JDOM_getParent.patch
+++ werken.xpath-0.9.4/debian/patches/05_JDOM_getParent.patch
@@ -0,0 +1,66 @@
+--- werken.xpath-0.9.4.orig/src/com/werken/xpath/ElementNamespaceContext.java
++++ werken.xpath-0.9.4/src/com/werken/xpath/ElementNamespaceContext.java
+@@ -62,12 +62,12 @@
+ 
+       lineage.push(_element);
+ 
+-      Element elem = _element.getParent();
++      Element elem = (Element)_element.getParent();
+ 
+       while (elem != null)
+       {
+         lineage.push(elem);
+-        elem = elem.getParent();
++        elem = (Element)elem.getParent();
+       }
+ 
+       List      nsList = null;
+--- werken.xpath-0.9.4.orig/src/com/werken/xpath/impl/ParentStep.java
++++ werken.xpath-0.9.4/src/com/werken/xpath/impl/ParentStep.java
+@@ -50,7 +50,7 @@
+ 
+       if ( each instanceof Element )
+       {
+-        parent = ((Element)each).getParent();
++        parent = (Element)((Element)each).getParent();
+ 
+         if (parent != null)
+         {
+--- werken.xpath-0.9.4.orig/src/com/werken/xpath/util/Partition.java
++++ werken.xpath-0.9.4/src/com/werken/xpath/util/Partition.java
+@@ -67,7 +67,7 @@
+ 
+   public static List followingSiblings(Element node)
+   {
+-    Element parent = node.getParent();
++    Element parent = (Element)node.getParent();
+ 
+     if (parent == null)
+     {
+@@ -95,7 +95,7 @@
+ 
+   public static List preceedingSiblings(Element node)
+   {
+-    Element parent = node.getParent();
++    Element parent = (Element)node.getParent();
+ 
+     if (parent == null)
+     {
+@@ -137,7 +137,7 @@
+       results.addAll( Partition.descendants( each ) );
+     }
+ 
+-    Element parent = node.getParent();
++    Element parent = (Element)node.getParent();
+ 
+     if (parent != null)
+     {
+@@ -170,7 +170,7 @@
+       results.addAll( Partition.descendants( each ) );
+     }
+ 
+-    Element parent = node.getParent();
++    Element parent = (Element)node.getParent();
+ 
+     if (parent != null)
+     {
--- werken.xpath-0.9.4.orig/debian/patches/04_JDOM_StringFunction.patch
+++ werken.xpath-0.9.4/debian/patches/04_JDOM_StringFunction.patch
@@ -0,0 +1,11 @@
+--- src/com/werken/xpath/function/StringFunction.java.orig	2005-03-21 23:23:52.000000000 +0100
++++ src/com/werken/xpath/function/StringFunction.java	2005-03-14 20:26:41.000000000 +0100
+@@ -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;