--- libhtmlparser-java-1.6.20060610.dfsg0.orig/debian/control
+++ libhtmlparser-java-1.6.20060610.dfsg0/debian/control
@@ -0,0 +1,42 @@
+Source: libhtmlparser-java
+Section: libs
+Priority: optional
+Maintainer: Tiago Saboga
+Homepage: http://htmlparser.sourceforge.net/
+Build-Depends: cdbs, debhelper (>= 5), ant, java-gcj-compat-dev, dpatch
+Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libhtmlparser-java
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/libhtmlparser-java
+Standards-Version: 3.7.3
+
+Package: libhtmlparser-java
+Architecture: all
+Depends: java-gcj-compat | java2-runtime
+Suggests: libhtmlparser-java-doc
+Description: java library to parse html
+ HTML Parser is a Java library used to parse HTML in either a linear
+ or nested fashion. Primarily used for transformation or extraction,
+ it features filters, visitors, custom tags and easy to use
+ JavaBeans.
+ .
+ The two fundamental use-cases that are handled by the parser are
+ extraction and transformation (the syntheses use-case, where HTML
+ pages are created from scratch, is better handled by other tools
+ closer to the source of data).
+ .
+ In general, to use the HTMLParser you will need to be able to write
+ code in the Java programming language. Although some example programs
+ are provided that may be useful as they stand, it's more than likely
+ you will need (or want) to create your own programs or modify the
+ ones provided to match your intended application.
+
+Package: libhtmlparser-java-doc
+Section: doc
+Architecture: all
+Suggests: libhtmlparser-java
+Description: java library to parse html - doc
+ HTML Parser is a Java library used to parse HTML in either a linear
+ or nested fashion. Primarily used for transformation or extraction,
+ it features filters, visitors, custom tags and easy to use
+ JavaBeans.
+ .
+ This package contains the documentation for the library.
--- libhtmlparser-java-1.6.20060610.dfsg0.orig/debian/libhtmlparser-java-doc.dirs
+++ libhtmlparser-java-1.6.20060610.dfsg0/debian/libhtmlparser-java-doc.dirs
@@ -0,0 +1,2 @@
+usr/share/doc/libhtmlparser-java-doc/examples/lib
+usr/share/doc/libhtmlparser-java-doc/examples/bin
--- libhtmlparser-java-1.6.20060610.dfsg0.orig/debian/libhtmlparser-java-doc.docs
+++ libhtmlparser-java-1.6.20060610.dfsg0/debian/libhtmlparser-java-doc.docs
@@ -0,0 +1,3 @@
+src/docs/javadoc/
+docs
+readme.txt
--- libhtmlparser-java-1.6.20060610.dfsg0.orig/debian/compat
+++ libhtmlparser-java-1.6.20060610.dfsg0/debian/compat
@@ -0,0 +1 @@
+5
--- libhtmlparser-java-1.6.20060610.dfsg0.orig/debian/copyright
+++ libhtmlparser-java-1.6.20060610.dfsg0/debian/copyright
@@ -0,0 +1,52 @@
+This package was debianized by Tiago Saboga on
+Wed, 31 Oct 2007 15:19:57 -0200.
+
+It was downloaded from
+
+
+Upstream Authors:
+Derrick Oswald
+James Gosling
+Kevin A. Smith
+Somik Raha
+Claude Duguay
+Ian Macfarlane
+
+Copyright (C) 1997, 2002-2006 Derrick Oswald
+ (C) 1997 James Gosling
+ (C) 1997 Kevin A. Smith
+ (C) 2003-2004 Somik Raha
+ (C) 2004 Claude Duguay
+ (C) 2005-2006 Ian Macfarlane
+
+License:
+
+ This package is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public License
+ as published by the Free Software Foundation; either version 2.1
+ of the License, or (at your option) any later version.
+
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this package; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+ Note that two source files
+ (src/src/org/htmlparser/tests/SAXTest.java and
+ src/src/org/htmlparser/util/CharacterReference.java) carry no
+ copyright notice. It is stated in several places, however, that the
+ 1.6 release of the program is licensed under the LGPL v.2.1 or
+ later. See, for instance, [1], which announces future licensing
+ changes.
+
+ [1] -
+
+On Debian systems, the complete text of GNU Lesser General Public
+License can be found in `/usr/share/common-licenses/LGPL'.
+
+The Debian packaging is (C) 2007, Tiago Saboga
+and is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
--- libhtmlparser-java-1.6.20060610.dfsg0.orig/debian/libhtmlparser-java-doc.doc-base
+++ libhtmlparser-java-1.6.20060610.dfsg0/debian/libhtmlparser-java-doc.doc-base
@@ -0,0 +1,8 @@
+Document: libhtmlparser-java
+Title: libhtmlparser-java javadoc
+Author: Derrick Oswald
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libhtmlparser-java-doc/api/index.html
+Files: /usr/share/doc/libhtmlparser-java-doc/api/*.html
--- libhtmlparser-java-1.6.20060610.dfsg0.orig/debian/watch
+++ libhtmlparser-java-1.6.20060610.dfsg0/debian/watch
@@ -0,0 +1,16 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+
+# Uncomment to find new files on sourceforge, for devscripts >= 2.9
+# opts=dversionmangle=s/(\d+)\.(\d+)\.(\d+)/$1.$2..$3/ \
+opts=uversionmangle=s/(\d+)\.(\d)(\d)\.(\d+)/$1.$2.$3.$4/,\
+dversionmangle=s/\.dfsg\d$// \
+ http://sf.net/htmlparser/htmlparser(\d+)_(\d+)_?(\d*)\.zip
+
+# Mon, 05 May 2008 09:07:16 -0300
+
+libhtmlparser-java (1.6.20060610.dfsg0-2) unstable; urgency=low
+
+ * Initial debian release (Closes: #448872).
+ * Remove empty line in long descriptions.
+ * Set priority to optional.
+ * Bump standards-version to 3.7.3 (no changes needed).
+ * Binary package depends on java-gcj-compat and not gij.
+ * Homepage field now in source section of control file.
+ * Do not repeat Section and Priority in binary packages when they are
+ already in source package [control].
+ * Correct copyright file: license is LGPL 2.1 or later.
+
+ -- Tiago Saboga Wed, 02 Jan 2008 14:36:04 -0200
+
+libhtmlparser-java (1.6.20060610.dfsg0-1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Tiago Saboga Wed, 31 Oct 2007 15:19:57 -0200
+
--- libhtmlparser-java-1.6.20060610.dfsg0.orig/debian/patches/00list
+++ libhtmlparser-java-1.6.20060610.dfsg0/debian/patches/00list
@@ -0,0 +1,2 @@
+01_remove_jdk15-dependency
+02_adjust_path_in_examples
--- libhtmlparser-java-1.6.20060610.dfsg0.orig/debian/patches/02_adjust_path_in_examples.dpatch
+++ libhtmlparser-java-1.6.20060610.dfsg0/debian/patches/02_adjust_path_in_examples.dpatch
@@ -0,0 +1,490 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_adjust_path_in_examples.dpatch by Tiago Saboga
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad libhtmlparser-java-1.6.20060610~/bin/beanybaby libhtmlparser-java-1.6.20060610/bin/beanybaby
+--- libhtmlparser-java-1.6.20060610~/bin/beanybaby 2007-11-06 14:13:58.000000000 -0200
++++ libhtmlparser-java-1.6.20060610/bin/beanybaby 2007-11-06 14:14:08.000000000 -0200
+@@ -1,34 +1,5 @@
+ #! /bin/sh
+
+-if [ -z "$HTMLPARSER_HOME" ] ; then
+-
+- ## resolve links - $0 may be a link to the home
+- PRG="$0"
+- progname=`basename "$0"`
+- saveddir=`pwd`
+-
+- # need this for relative symlinks
+- dirname_prg=`dirname "$PRG"`
+- cd "$dirname_prg"
+-
+- while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`"/$link"
+- fi
+- done
+-
+- HTMLPARSER_HOME=`dirname "$PRG"`/..
+-
+- cd "$saveddir"
+-
+- # make it fully qualified
+- HTMLPARSER_HOME=`cd "$HTMLPARSER_HOME" && pwd`
+-fi
+-
+ if [ -z "$JAVACMD" ] ; then
+ if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+@@ -55,13 +26,13 @@
+ LOCALCLASSPATH="$CLASSPATH"
+ fi
+
+-HTMLPARSER_LIB="${HTMLPARSER_HOME}/lib"
++HTMLPARSER_LIB="/usr/share/java"
+
+ # add in the parser .jar file
+ if [ -z "$LOCALCLASSPATH" ] ; then
+- LOCALCLASSPATH="${HTMLPARSER_LIB}/htmlparser.jar"
++ LOCALCLASSPATH="${HTMLPARSER_LIB}/libhtmlparser.jar"
+ else
+- LOCALCLASSPATH="${HTMLPARSER_LIB}/htmlparser.jar":"$LOCALCLASSPATH"
++ LOCALCLASSPATH="${HTMLPARSER_LIB}/libhtmlparser.jar":"$LOCALCLASSPATH"
+ fi
+
+ # handle 1.1x JDKs
+diff -urNad libhtmlparser-java-1.6.20060610~/bin/filterbuilder libhtmlparser-java-1.6.20060610/bin/filterbuilder
+--- libhtmlparser-java-1.6.20060610~/bin/filterbuilder 2007-11-06 14:13:58.000000000 -0200
++++ libhtmlparser-java-1.6.20060610/bin/filterbuilder 2007-11-06 14:14:08.000000000 -0200
+@@ -1,34 +1,5 @@
+ #! /bin/sh
+
+-if [ -z "$HTMLPARSER_HOME" ] ; then
+-
+- ## resolve links - $0 may be a link to the home
+- PRG="$0"
+- progname=`basename "$0"`
+- saveddir=`pwd`
+-
+- # need this for relative symlinks
+- dirname_prg=`dirname "$PRG"`
+- cd "$dirname_prg"
+-
+- while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`"/$link"
+- fi
+- done
+-
+- HTMLPARSER_HOME=`dirname "$PRG"`/..
+-
+- cd "$saveddir"
+-
+- # make it fully qualified
+- HTMLPARSER_HOME=`cd "$HTMLPARSER_HOME" && pwd`
+-fi
+-
+ if [ -z "$JAVACMD" ] ; then
+ if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+@@ -51,7 +22,8 @@
+ exit 1
+ fi
+
+-HTMLPARSER_LIB="${HTMLPARSER_HOME}/lib"
++HTMLPARSER_LIB="/usr/share/java"
++HTMLPARSER_EXLIB="/usr/share/doc/libhtmlparser-java/examples/lib"
+
+-"$JAVACMD" -Xmx256M -classpath "${HTMLPARSER_LIB}/filterbuilder.jar:${HTMLPARSER_LIB}/htmlparser.jar" org.htmlparser.parserapplications.filterbuilder.FilterBuilder "$@"
++"$JAVACMD" -Xmx256M -classpath "${HTMLPARSER_EXLIB}/filterbuilder.jar:${HTMLPARSER_LIB}/libhtmlparser.jar" org.htmlparser.parserapplications.filterbuilder.FilterBuilder "$@"
+
+diff -urNad libhtmlparser-java-1.6.20060610~/bin/lexer libhtmlparser-java-1.6.20060610/bin/lexer
+--- libhtmlparser-java-1.6.20060610~/bin/lexer 2007-11-06 14:13:58.000000000 -0200
++++ libhtmlparser-java-1.6.20060610/bin/lexer 2007-11-06 14:14:21.000000000 -0200
+@@ -1,34 +1,5 @@
+ #! /bin/sh
+
+-if [ -z "$HTMLPARSER_HOME" ] ; then
+-
+- ## resolve links - $0 may be a link to the home
+- PRG="$0"
+- progname=`basename "$0"`
+- saveddir=`pwd`
+-
+- # need this for relative symlinks
+- dirname_prg=`dirname "$PRG"`
+- cd "$dirname_prg"
+-
+- while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`"/$link"
+- fi
+- done
+-
+- HTMLPARSER_HOME=`dirname "$PRG"`/..
+-
+- cd "$saveddir"
+-
+- # make it fully qualified
+- HTMLPARSER_HOME=`cd "$HTMLPARSER_HOME" && pwd`
+-fi
+-
+ if [ -z "$JAVACMD" ] ; then
+ if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+@@ -55,13 +26,13 @@
+ LOCALCLASSPATH="$CLASSPATH"
+ fi
+
+-HTMLPARSER_LIB="${HTMLPARSER_HOME}/lib"
++HTMLPARSER_LIB="/usr/share/java"
+
+ # add in the lexer .jar file
+ if [ -z "$LOCALCLASSPATH" ] ; then
+- LOCALCLASSPATH="${HTMLPARSER_LIB}/htmllexer.jar"
++ LOCALCLASSPATH="${HTMLPARSER_LIB}/libhtmlparser.jar"
+ else
+- LOCALCLASSPATH="${HTMLPARSER_LIB}/htmllexer.jar":"$LOCALCLASSPATH"
++ LOCALCLASSPATH="${HTMLPARSER_LIB}/libhtmlparser.jar":"$LOCALCLASSPATH"
+ fi
+
+ # handle 1.1x JDKs
+diff -urNad libhtmlparser-java-1.6.20060610~/bin/linkextractor libhtmlparser-java-1.6.20060610/bin/linkextractor
+--- libhtmlparser-java-1.6.20060610~/bin/linkextractor 2007-11-06 14:13:58.000000000 -0200
++++ libhtmlparser-java-1.6.20060610/bin/linkextractor 2007-11-06 14:14:08.000000000 -0200
+@@ -1,34 +1,5 @@
+ #! /bin/sh
+
+-if [ -z "$HTMLPARSER_HOME" ] ; then
+-
+- ## resolve links - $0 may be a link to the home
+- PRG="$0"
+- progname=`basename "$0"`
+- saveddir=`pwd`
+-
+- # need this for relative symlinks
+- dirname_prg=`dirname "$PRG"`
+- cd "$dirname_prg"
+-
+- while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`"/$link"
+- fi
+- done
+-
+- HTMLPARSER_HOME=`dirname "$PRG"`/..
+-
+- cd "$saveddir"
+-
+- # make it fully qualified
+- HTMLPARSER_HOME=`cd "$HTMLPARSER_HOME" && pwd`
+-fi
+-
+ if [ -z "$JAVACMD" ] ; then
+ if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+@@ -55,13 +26,13 @@
+ LOCALCLASSPATH="$CLASSPATH"
+ fi
+
+-HTMLPARSER_LIB="${HTMLPARSER_HOME}/lib"
++HTMLPARSER_LIB="/usr/share/java"
+
+ # add in the parser .jar file
+ if [ -z "$LOCALCLASSPATH" ] ; then
+- LOCALCLASSPATH="${HTMLPARSER_LIB}/htmlparser.jar"
++ LOCALCLASSPATH="${HTMLPARSER_LIB}/libhtmlparser.jar"
+ else
+- LOCALCLASSPATH="${HTMLPARSER_LIB}/htmlparser.jar":"$LOCALCLASSPATH"
++ LOCALCLASSPATH="${HTMLPARSER_LIB}/libhtmlparser.jar":"$LOCALCLASSPATH"
+ fi
+
+ # handle 1.1x JDKs
+diff -urNad libhtmlparser-java-1.6.20060610~/bin/parser libhtmlparser-java-1.6.20060610/bin/parser
+--- libhtmlparser-java-1.6.20060610~/bin/parser 2007-11-06 14:13:58.000000000 -0200
++++ libhtmlparser-java-1.6.20060610/bin/parser 2007-11-06 14:14:08.000000000 -0200
+@@ -1,34 +1,5 @@
+ #! /bin/sh
+
+-if [ -z "$HTMLPARSER_HOME" ] ; then
+-
+- ## resolve links - $0 may be a link to the home
+- PRG="$0"
+- progname=`basename "$0"`
+- saveddir=`pwd`
+-
+- # need this for relative symlinks
+- dirname_prg=`dirname "$PRG"`
+- cd "$dirname_prg"
+-
+- while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`"/$link"
+- fi
+- done
+-
+- HTMLPARSER_HOME=`dirname "$PRG"`/..
+-
+- cd "$saveddir"
+-
+- # make it fully qualified
+- HTMLPARSER_HOME=`cd "$HTMLPARSER_HOME" && pwd`
+-fi
+-
+ if [ -z "$JAVACMD" ] ; then
+ if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+@@ -55,13 +26,13 @@
+ LOCALCLASSPATH="$CLASSPATH"
+ fi
+
+-HTMLPARSER_LIB="${HTMLPARSER_HOME}/lib"
++HTMLPARSER_LIB="/usr/share/java"
+
+ # add in the parser .jar file
+ if [ -z "$LOCALCLASSPATH" ] ; then
+- LOCALCLASSPATH="${HTMLPARSER_LIB}/htmlparser.jar"
++ LOCALCLASSPATH="${HTMLPARSER_LIB}/libhtmlparser.jar"
+ else
+- LOCALCLASSPATH="${HTMLPARSER_LIB}/htmlparser.jar":"$LOCALCLASSPATH"
++ LOCALCLASSPATH="${HTMLPARSER_LIB}/libhtmlparser.jar":"$LOCALCLASSPATH"
+ fi
+
+ # handle 1.1x JDKs
+diff -urNad libhtmlparser-java-1.6.20060610~/bin/sitecapturer libhtmlparser-java-1.6.20060610/bin/sitecapturer
+--- libhtmlparser-java-1.6.20060610~/bin/sitecapturer 2007-11-06 14:13:58.000000000 -0200
++++ libhtmlparser-java-1.6.20060610/bin/sitecapturer 2007-11-06 14:14:08.000000000 -0200
+@@ -1,34 +1,5 @@
+ #! /bin/sh
+
+-if [ -z "$HTMLPARSER_HOME" ] ; then
+-
+- ## resolve links - $0 may be a link to the home
+- PRG="$0"
+- progname=`basename "$0"`
+- saveddir=`pwd`
+-
+- # need this for relative symlinks
+- dirname_prg=`dirname "$PRG"`
+- cd "$dirname_prg"
+-
+- while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`"/$link"
+- fi
+- done
+-
+- HTMLPARSER_HOME=`dirname "$PRG"`/..
+-
+- cd "$saveddir"
+-
+- # make it fully qualified
+- HTMLPARSER_HOME=`cd "$HTMLPARSER_HOME" && pwd`
+-fi
+-
+ if [ -z "$JAVACMD" ] ; then
+ if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+@@ -55,13 +26,13 @@
+ LOCALCLASSPATH="$CLASSPATH"
+ fi
+
+-HTMLPARSER_LIB="${HTMLPARSER_HOME}/lib"
++HTMLPARSER_LIB="/usr/share/java"
+
+ # add in the parser .jar file
+ if [ -z "$LOCALCLASSPATH" ] ; then
+- LOCALCLASSPATH="${HTMLPARSER_LIB}/htmlparser.jar"
++ LOCALCLASSPATH="${HTMLPARSER_LIB}/libhtmlparser.jar"
+ else
+- LOCALCLASSPATH="${HTMLPARSER_LIB}/htmlparser.jar":"$LOCALCLASSPATH"
++ LOCALCLASSPATH="${HTMLPARSER_LIB}/libhtmlparser.jar":"$LOCALCLASSPATH"
+ fi
+
+ # handle 1.1x JDKs
+diff -urNad libhtmlparser-java-1.6.20060610~/bin/stringextractor libhtmlparser-java-1.6.20060610/bin/stringextractor
+--- libhtmlparser-java-1.6.20060610~/bin/stringextractor 2007-11-06 14:13:58.000000000 -0200
++++ libhtmlparser-java-1.6.20060610/bin/stringextractor 2007-11-06 14:14:08.000000000 -0200
+@@ -1,34 +1,5 @@
+ #! /bin/sh
+
+-if [ -z "$HTMLPARSER_HOME" ] ; then
+-
+- ## resolve links - $0 may be a link to the home
+- PRG="$0"
+- progname=`basename "$0"`
+- saveddir=`pwd`
+-
+- # need this for relative symlinks
+- dirname_prg=`dirname "$PRG"`
+- cd "$dirname_prg"
+-
+- while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`"/$link"
+- fi
+- done
+-
+- HTMLPARSER_HOME=`dirname "$PRG"`/..
+-
+- cd "$saveddir"
+-
+- # make it fully qualified
+- HTMLPARSER_HOME=`cd "$HTMLPARSER_HOME" && pwd`
+-fi
+-
+ if [ -z "$JAVACMD" ] ; then
+ if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+@@ -55,13 +26,13 @@
+ LOCALCLASSPATH="$CLASSPATH"
+ fi
+
+-HTMLPARSER_LIB="${HTMLPARSER_HOME}/lib"
++HTMLPARSER_LIB="/usr/share/java"
+
+ # add in the parser .jar file
+ if [ -z "$LOCALCLASSPATH" ] ; then
+- LOCALCLASSPATH="${HTMLPARSER_LIB}/htmlparser.jar"
++ LOCALCLASSPATH="${HTMLPARSER_LIB}/libhtmlparser.jar"
+ else
+- LOCALCLASSPATH="${HTMLPARSER_LIB}/htmlparser.jar":"$LOCALCLASSPATH"
++ LOCALCLASSPATH="${HTMLPARSER_LIB}/libhtmlparser.jar":"$LOCALCLASSPATH"
+ fi
+
+ # handle 1.1x JDKs
+diff -urNad libhtmlparser-java-1.6.20060610~/bin/thumbelina libhtmlparser-java-1.6.20060610/bin/thumbelina
+--- libhtmlparser-java-1.6.20060610~/bin/thumbelina 2007-11-06 14:13:58.000000000 -0200
++++ libhtmlparser-java-1.6.20060610/bin/thumbelina 2007-11-06 14:14:08.000000000 -0200
+@@ -1,34 +1,5 @@
+ #! /bin/sh
+
+-if [ -z "$HTMLPARSER_HOME" ] ; then
+-
+- ## resolve links - $0 may be a link to the home
+- PRG="$0"
+- progname=`basename "$0"`
+- saveddir=`pwd`
+-
+- # need this for relative symlinks
+- dirname_prg=`dirname "$PRG"`
+- cd "$dirname_prg"
+-
+- while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`"/$link"
+- fi
+- done
+-
+- HTMLPARSER_HOME=`dirname "$PRG"`/..
+-
+- cd "$saveddir"
+-
+- # make it fully qualified
+- HTMLPARSER_HOME=`cd "$HTMLPARSER_HOME" && pwd`
+-fi
+-
+ if [ -z "$JAVACMD" ] ; then
+ if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+@@ -51,7 +22,8 @@
+ exit 1
+ fi
+
+-HTMLPARSER_LIB="${HTMLPARSER_HOME}/lib"
++HTMLPARSER_LIB="/usr/share/java"
++HTMLPARSER_EXLIB="/usr/share/doc/libhtmlparser-java/examples/lib"
+
+-"$JAVACMD" -Xmx256M -classpath "${HTMLPARSER_LIB}/thumbelina.jar:${HTMLPARSER_LIB}/htmllexer.jar" org.htmlparser.lexerapplications.thumbelina.Thumbelina "$@"
++"$JAVACMD" -Xmx256M -classpath "${HTMLPARSER_EXLIB}/thumbelina.jar:${HTMLPARSER_LIB}/libhtmlparser.jar" org.htmlparser.lexerapplications.thumbelina.Thumbelina "$@"
+
+diff -urNad libhtmlparser-java-1.6.20060610~/bin/translate libhtmlparser-java-1.6.20060610/bin/translate
+--- libhtmlparser-java-1.6.20060610~/bin/translate 2007-11-06 14:13:58.000000000 -0200
++++ libhtmlparser-java-1.6.20060610/bin/translate 2007-11-06 14:14:08.000000000 -0200
+@@ -1,34 +1,5 @@
+ #! /bin/sh
+
+-if [ -z "$HTMLPARSER_HOME" ] ; then
+-
+- ## resolve links - $0 may be a link to the home
+- PRG="$0"
+- progname=`basename "$0"`
+- saveddir=`pwd`
+-
+- # need this for relative symlinks
+- dirname_prg=`dirname "$PRG"`
+- cd "$dirname_prg"
+-
+- while [ -h "$PRG" ] ; do
+- ls=`ls -ld "$PRG"`
+- link=`expr "$ls" : '.*-> \(.*\)$'`
+- if expr "$link" : '/.*' > /dev/null; then
+- PRG="$link"
+- else
+- PRG=`dirname "$PRG"`"/$link"
+- fi
+- done
+-
+- HTMLPARSER_HOME=`dirname "$PRG"`/..
+-
+- cd "$saveddir"
+-
+- # make it fully qualified
+- HTMLPARSER_HOME=`cd "$HTMLPARSER_HOME" && pwd`
+-fi
+-
+ if [ -z "$JAVACMD" ] ; then
+ if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+@@ -55,13 +26,13 @@
+ LOCALCLASSPATH="$CLASSPATH"
+ fi
+
+-HTMLPARSER_LIB="${HTMLPARSER_HOME}/lib"
++HTMLPARSER_LIB="/usr/share/java"
+
+ # add in the parser .jar file
+ if [ -z "$LOCALCLASSPATH" ] ; then
+- LOCALCLASSPATH="${HTMLPARSER_LIB}/htmlparser.jar"
++ LOCALCLASSPATH="${HTMLPARSER_LIB}/libhtmlparser.jar"
+ else
+- LOCALCLASSPATH="${HTMLPARSER_LIB}/htmlparser.jar":"$LOCALCLASSPATH"
++ LOCALCLASSPATH="${HTMLPARSER_LIB}/libhtmlparser.jar":"$LOCALCLASSPATH"
+ fi
+
+ # handle 1.1x JDKs
--- libhtmlparser-java-1.6.20060610.dfsg0.orig/debian/patches/01_remove_jdk15-dependency.dpatch
+++ libhtmlparser-java-1.6.20060610.dfsg0/debian/patches/01_remove_jdk15-dependency.dpatch
@@ -0,0 +1,33 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_remove_jdk15-dependency.dpatch by Tiago Saboga
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+@DPATCH@
+diff -urNad libhtmlparser-java-1.6.20060610~/src/build.xml libhtmlparser-java-1.6.20060610/src/build.xml
+--- libhtmlparser-java-1.6.20060610~/src/build.xml 2007-11-06 14:05:31.000000000 -0200
++++ libhtmlparser-java-1.6.20060610/src/build.xml 2007-11-06 14:06:51.000000000 -0200
+@@ -367,11 +367,11 @@
+
+
+
+-
++
+
+
+
+-
++
+
+
+
+
+
+-
++
+
+
+