--- nekohtml-1.9.13.orig/debian/rules
+++ nekohtml-1.9.13/debian/rules
@@ -0,0 +1,30 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+include /usr/share/cdbs/1/class/ant.mk
+
+PACKAGE := $(DEB_SOURCE_PACKAGE)
+VERSION := $(DEB_UPSTREAM_VERSION)
+JAVA_HOME := /usr/lib/jvm/default-java
+DEB_JARS := xml-apis xercesImpl
+DEB_ANT_BUILD_TARGET := jar jar-xni doc
+DEB_ANT_BUILDFILE := build.xml
+DEB_ANT_ARGS := -Dname=$(PACKAGE) -Dversion=$(VERSION)
+API_DOCS := build/doc/api
+
+get-orig-source:
+ uscan --download-version $(VERSION) --force-download --rename
+
+binary-post-install/lib$(PACKAGE)-java::
+ dh_install -plib$(PACKAGE)-java doc usr/share/doc/lib$(PACKAGE)-java
+ mh_installpoms -plib$(PACKAGE)-java
+ mh_installjar -plib$(PACKAGE)-java -l --usj-version=$(VERSION) pom.xml build/lib/$(PACKAGE).jar
+ mh_installjar -plib$(PACKAGE)-java -l --usj-version=$(VERSION) debian/nekohtml-xni.pom build/lib/$(PACKAGE)Xni.jar
+
+binary-post-install/lib$(PACKAGE)-java-doc::
+ dh_install -plib$(PACKAGE)-java-doc $(API_DOCS) usr/share/doc/lib$(PACKAGE)-java
+
+clean::
+ -rm -rf debian/tmp
+
--- nekohtml-1.9.13.orig/debian/README.source
+++ nekohtml-1.9.13/debian/README.source
@@ -0,0 +1,9 @@
+Patch System
+============
+
+This package uses quilt to manage all modifications to the upstream
+source. Changes are stored in the source package as diffs in
+debian/patches and applied during the build.
+
+See /usr/share/doc/quilt/README.source for a detailed explanation.
+
--- nekohtml-1.9.13.orig/debian/orig-tar.sh
+++ nekohtml-1.9.13/debian/orig-tar.sh
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+
+VERSION=$2
+TAR=../nekohtml_$VERSION.orig.tar.gz
+DIR=nekohtml-$VERSION
+TAG=nekohtml-$2
+
+svn export https://nekohtml.svn.sourceforge.net/svnroot/nekohtml/branches/$TAG $DIR
+rm -r $DIR/lib
+tar -c -z -f $TAR $DIR
+rm -rf $DIR ../$TAG
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+ . .svn/deb-layout
+ mv $TAR $origDir
+ echo "moved $TAR to $origDir"
+fi
--- nekohtml-1.9.13.orig/debian/libnekohtml-java-doc.doc-base
+++ nekohtml-1.9.13/debian/libnekohtml-java-doc.doc-base
@@ -0,0 +1,8 @@
+Document: nekohtml-api
+Title: NekoHTML API documentation
+Abstract: JavaDoc documentation for NekoHTML.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libnekohtml-java/api/index.html
+Files: /usr/share/doc/libnekohtml-java/api/*
--- nekohtml-1.9.13.orig/debian/libnekohtml-java.poms
+++ nekohtml-1.9.13/debian/libnekohtml-java.poms
@@ -0,0 +1,2 @@
+pom.xml --no-parent
+debian/nekohtml-xni.pom --no-parent
--- nekohtml-1.9.13.orig/debian/control
+++ nekohtml-1.9.13/debian/control
@@ -0,0 +1,41 @@
+Source: nekohtml
+Section: java
+Priority: optional
+Maintainer: Debian Java maintainers
+Uploaders: Marcus Better , Michael Koch
+Build-Depends: debhelper (>= 6.0.0), cdbs, default-jdk-builddep, quilt
+Build-Depends-Indep: maven-repo-helper, ant, libxerces2-java (>= 2.9.1), libjaxp1.3-java (>> 1.3.04-3)
+Standards-Version: 3.8.3
+Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/nekohtml
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/nekohtml/
+Homepage: http://nekohtml.sourceforge.net/
+
+Package: libnekohtml-java
+Architecture: all
+Depends: ${misc:Depends}, libxerces2-java (>= 2.9.1), libjaxp1.3-java (>> 1.3.04-3)
+Suggests: libnekohtml-java-doc
+Description: HTML parser for Java
+ This is a simple HTML scanner and tag balancer that enables
+ application programmers to parse HTML documents and access the
+ information using standard XML interfaces. The parser can scan HTML
+ files and "fix up" many common mistakes that human (and computer)
+ authors make in writing HTML documents. NekoHTML adds missing parent
+ elements; automatically closes elements with optional end tags; and
+ can handle mismatched in-line element tags.
+ .
+
+Package: libnekohtml-java-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}
+Suggests: libnekohtml-java
+Description: HTML parser for Java
+ This is a simple HTML scanner and tag balancer that enables
+ application programmers to parse HTML documents and access the
+ information using standard XML interfaces. The parser can scan HTML
+ files and "fix up" many common mistakes that human (and computer)
+ authors make in writing HTML documents. NekoHTML adds missing parent
+ elements; automatically closes elements with optional end tags; and
+ can handle mismatched in-line element tags.
+ .
+ This package provides the API documentation for NekoHTML.
--- nekohtml-1.9.13.orig/debian/compat
+++ nekohtml-1.9.13/debian/compat
@@ -0,0 +1 @@
+5
--- nekohtml-1.9.13.orig/debian/changelog
+++ nekohtml-1.9.13/debian/changelog
@@ -0,0 +1,49 @@
+nekohtml (1.9.13-1) unstable; urgency=low
+
+ * New upstream release.
+ * Added debian/README.source.
+ * Added myself to Uploaders.
+ * Updated Standards-Version to 3.8.3.
+
+ -- Michael Koch Fri, 02 Oct 2009 22:45:29 +0200
+
+nekohtml (1.9.12-2) unstable; urgency=low
+
+ * Upload to unstable.
+
+ -- Torsten Werner Sun, 09 Aug 2009 23:10:54 +0200
+
+nekohtml (1.9.12-1) experimental; urgency=low
+
+ * New upstream version
+ * Remove the runtimes from Depends: as it's a library
+ * Change section to java, bump up Standards-Version to 3.8.1
+ * Add Homepage and Vcs-* properties
+ * Split the package into a pure binary and a documentation package,
+ put the main docs in the binary package, and the api docs in the
+ doc package
+ * Update the copyright to follow the new proposal format, and remove
+ full text of Apache license to remove Lintian warnings
+ * Add the Maven POM to the package,
+ * Add a Build-Depends-Indep dependency on maven-repo-helper
+ * Use mh_installpom and mh_installjar to install the POM and the jar to the
+ Maven repository
+ * Change Build-Depends from libxalan-java to libjaxp3-java and
+ add libjaxp3-java as it contains the xml-apis.jar needed for the build
+ and runtime on Java < 6.
+
+ -- Ludovic Claude Wed, 29 Apr 2009 19:33:43 +0100
+
+nekohtml (0.9.5+dfsg-1.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Add stubs for two missing XMLLocator methods; fixes FTBFS.
+ (Closes: #397697)
+
+ -- Steinar H. Gunderson Thu, 16 Nov 2006 00:02:27 +0100
+
+nekohtml (0.9.5+dfsg-1) unstable; urgency=low
+
+ * Initial release. (Closes: #382995)
+
+ -- Marcus Better Fri, 29 Sep 2006 11:37:54 +0200
--- nekohtml-1.9.13.orig/debian/README.Debian
+++ nekohtml-1.9.13/debian/README.Debian
@@ -0,0 +1,7 @@
+NekoHTML for Debian
+-------------------
+
+The 'lib' directory was removed from the upstream
+sources in order to make them DFSG compliant.
+
+ -- Ludovic Claude Thu, 29 Apr 2009 15:47:02 +0100
--- nekohtml-1.9.13.orig/debian/watch
+++ nekohtml-1.9.13/debian/watch
@@ -0,0 +1,4 @@
+version=3
+https://nekohtml.svn.sourceforge.net/svnroot/nekohtml/branches/ \
+ nekohtml-([1-9].*)/ debian debian/orig-tar.sh
+
--- nekohtml-1.9.13.orig/debian/libnekohtml-java.doc-base
+++ nekohtml-1.9.13/debian/libnekohtml-java.doc-base
@@ -0,0 +1,8 @@
+Document: nekohtml-doc
+Title: NekoHTML documentation
+Abstract: Documentation for the NekoHTML parser.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libnekohtml-java/doc/index.html
+Files: /usr/share/doc/libnekohtml-java/doc/*.html
--- nekohtml-1.9.13.orig/debian/nekohtml-xni.pom
+++ nekohtml-1.9.13/debian/nekohtml-xni.pom
@@ -0,0 +1,6 @@
+
+ 4.0.0
+ nekohtml
+ nekohtmlXni
+ 1.9.12
+
--- nekohtml-1.9.13.orig/debian/copyright
+++ nekohtml-1.9.13/debian/copyright
@@ -0,0 +1,67 @@
+Format-Specification: http://dep.debian.net/deps/dep5/
+Name: NekoHTML
+Maintainer: CyberNeko
+Source: http://nekohtml.sourceforge.net/
+
+Files: *
+Copyright: 2002-2008, Andy Clark
+License: other
+ The CyberNeko Software License, Version 1.0 (BSD-like)
+ .
+ (C) Copyright 2002-2005, Andy Clark. 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 following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+ .
+ 3. The end-user documentation included with the redistribution,
+ if any, must include the following acknowledgment:
+ "This product includes software developed by Andy Clark."
+ Alternately, this acknowledgment may appear in the software itself,
+ if and wherever such third-party acknowledgments normally appear.
+ .
+ 4. The names "CyberNeko" and "NekoHTML" must not be used to endorse
+ or promote products derived from this software without prior
+ written permission. For written permission, please contact
+ andyc@cyberneko.net.
+ .
+ 5. Products derived from this software may not be called "CyberNeko",
+ nor may "CyberNeko" appear in their name, without prior written
+ permission of the author.
+ .
+ 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 AUTHOR OR OTHER 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.
+
+Files: src/org/cyberneko/html/ObjectFactory.java
+Copyright: 2001-2004 The Apache Software Foundation
+License: Apache-2.0
+
+Files: src/org/cyberneko/html/SecuritySupport.java, src/org/cyberneko/html/SecuritySupport12.java
+Copyright: 2002-2004 The Apache Software Foundation
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2006, Marcus Better
+License: Apache-2.0
+
+License: Apache-2.0
+ On Debian GNU/Linux system you can find the complete text of the
+ Apache-2.0 license in '/usr/share/common-licenses/Apache-2.0'
+
--- nekohtml-1.9.13.orig/debian/patches/series
+++ nekohtml-1.9.13/debian/patches/series
@@ -0,0 +1 @@
+build.diff
--- nekohtml-1.9.13.orig/debian/patches/build.diff
+++ nekohtml-1.9.13/debian/patches/build.diff
@@ -0,0 +1,41 @@
+--- a/build.xml
++++ b/build.xml
+@@ -26,7 +26,7 @@
+
+
+
+-
++
+
+
+
+@@ -72,7 +72,7 @@
+ source='${compile.source}' target='${compile.target}'
+ includeAntRuntime='false'>
+
+-
++
+
+
+
+@@ -83,7 +83,7 @@
+ source='${compile.source}' target='${compile.target}'
+ includeAntRuntime='false'>
+
+-
++
+
+
+
+@@ -97,11 +97,6 @@
+ unless="compile.skip">
+
+
+-
+-
+-
+-
+-
+
+
+