Skip to content
Snippets Groups Projects
Commit ea77b42b authored by Tiago Saboga's avatar Tiago Saboga
Browse files

[svn-inject] Applying Debian modifications to trunk

parent 94a63224
Branches
Tags
No related merge requests found
Showing with 742 additions and 0 deletions
The following changes have been applied to the upstream source
distribution for DFSG compliance:
* Unpacked and removed src.zip.
* Removed lib/*jar (prepackaged jar libraries).
* Removed pre-generated javadoc in docs/javadoc.
The debian orig.tar.gz can be regenerated with debian/repack-source.sh
script.
link=/usr/share/doc/classpath-doc/api/
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 <tiagosaboga@gmail.com> Wed, 02 Jan 2008 14:36:04 -0200
libhtmlparser-java (1.6.20060610.dfsg0-1) unstable; urgency=low
* Initial release.
-- Tiago Saboga <tiagosaboga@gmail.com> Wed, 31 Oct 2007 15:19:57 -0200
5
Source: libhtmlparser-java
Section: libs
Priority: optional
Maintainer: Tiago Saboga <tiagosaboga@gmail.com>
Homepage: http://htmlparser.sourceforge.net/
Build-Depends: cdbs, debhelper (>= 5), ant, java-gcj-compat-dev, dpatch
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.
This package was debianized by Tiago Saboga <tiagosaboga@gmail.com> on
Wed, 31 Oct 2007 15:19:57 -0200.
It was downloaded from
<http://downloads.sourceforge.net/htmlparser/htmlparser1_6_20060610.zip>
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] - <http://sourceforge.net/mailarchive/forum.php?thread_name=20060917204812.28296.qmail%40web88003.mail.re2.yahoo.com&forum_name=htmlparser-developer>
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 <tiagosaboga@gmail.com>
and is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
usr/share/doc/libhtmlparser-java-doc/examples/lib
usr/share/doc/libhtmlparser-java-doc/examples/bin
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
src/docs/javadoc/
docs
readme.txt
usr/share/java
debian/README.Debian-source
01_remove_jdk15-dependency
02_adjust_path_in_examples
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_remove_jdk15-dependency.dpatch by Tiago Saboga <tiagosaboga@gmail.com>
##
## 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 @@
</target>
<!-- Create the Thumbelina jar -->
- <target name="thumbelina" depends="JDK_OK,jarlexer" description="create thumbelina.jar" if="JDK1.5">
+ <target name="thumbelina" depends="JDK_OK,jarparser" description="create thumbelina.jar">
<!-- Create the lib directory -->
<mkdir dir="${lib}"/>
<mkdir dir="${classes}"/>
- <javac srcdir="${src}" destdir="${classes}" debug="on" classpath="${classes}:${lib}/htmllexer.jar" source="1.5">
+ <javac srcdir="${src}" destdir="${classes}" debug="on" classpath="${classes}:${lib}/htmlparser.jar" source="1.5">
<include name="org/htmlparser/lexerapplications/thumbelina/**/*.java"/>
</javac>
<jar jarfile="${lib}/thumbelina.jar"
@@ -386,7 +386,7 @@
</target>
<!-- Create the FilterBuilder jar -->
- <target name="filterbuilder" depends="JDK_OK,jarparser" description="create filterbuilder.jar" if="JDK1.4">
+ <target name="filterbuilder" depends="JDK_OK,jarparser" description="create filterbuilder.jar">
<!-- Create the lib directory -->
<mkdir dir="${lib}"/>
<mkdir dir="${classes}"/>
#! /bin/sh /usr/share/dpatch/dpatch-run
## 02_adjust_path_in_examples.dpatch by Tiago Saboga <tiagosaboga@gmail.com>
##
## 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
#!/bin/bash
if [ $# -ne 4 ]
then
echo "Usage: $0 option version filename"
echo "If option=--upstream-version, run uupdate after repacking sources."
fi
VERSION=$2
FILENAME=$3
TMPDIR=$(mktemp -d libhtmlparser)
unzip -d $TMPDIR $FILENAME
mv ${TMPDIR}/htmlparser* ${TMPDIR}/libhtmlparser-java-${VERSION}-dfsg0
BASEDIR="${TMPDIR}/libhtmlparser-java-${VERSION}-dfsg0"
SRCDIR="${BASEDIR}/src"
mkdir $SRCDIR
unzip -d $SRCDIR $BASEDIR/src.zip
rm -rf $BASEDIR/src.zip
rm -rf $BASEDIR/lib/*
rm -rf $BASEDIR/docs/javadoc
GZIP=-9 tar -czf libhtmlparser-java_${VERSION}-dfsg0.orig.tar.gz -C ${TMPDIR} libhtmlparser-java-${VERSION}
rm -rf $TMPDIR
if [ $1 = --upstream-version ] ;
then
uupdate --upstream-version $2 $3
fi
#!/usr/bin/make -f
include /usr/share/cdbs/1/class/ant.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/dpatch.mk
JAVA_HOME = /usr/lib/jvm/java-gcj
DEB_ANT_BUILD_TARGET = jarparser javadoc filterbuilder thumbelina
DEB_ANT_BUILDFILE = src/build.xml
install/libhtmlparser-java::
install -m 644 -D 'src/lib/htmlparser.jar' \
$(CURDIR)/debian/libhtmlparser-java/usr/share/java/libhtmlparser-$(DEB_UPSTREAM_VERSION).jar
dh_link -plibhtmlparser-java \
usr/share/java/libhtmlparser-$(DEB_UPSTREAM_VERSION).jar \
usr/share/java/libhtmlparser.jar
install/libhtmlparser-java-doc::
install -m 644 src/lib/{filterbuilder,thumbelina}.jar \
$(CURDIR)/debian/libhtmlparser-java-doc/usr/share/doc/libhtmlparser-java-doc/examples/lib
install -m 755 $(shell find bin -type f -regex '[^.]*') \
$(CURDIR)/debian/libhtmlparser-java-doc/usr/share/doc/libhtmlparser-java-doc/examples/bin
binary-install/libhtmlparser-java-doc::
mv $(CURDIR)/debian/libhtmlparser-java-doc/usr/share/doc/libhtmlparser-java-doc/javadoc \
$(CURDIR)/debian/libhtmlparser-java-doc/usr/share/doc/libhtmlparser-java-doc/api
mv $(CURDIR)/debian/libhtmlparser-java-doc/usr/share/doc/libhtmlparser-java-doc/docs \
$(CURDIR)/debian/libhtmlparser-java-doc/usr/share/doc/libhtmlparser-java-doc/html
dh_link -plibhtmlparser-java-doc \
usr/share/doc/libhtmlparser-java-doc/api \
usr/share/doc/libhtmlparser-java-doc/html/javadoc
clean::
-rm -rf src/docs src/lib
# 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
# <http://downloads.sourceforge.net/htmlparser/htmlparser1_6_20060610.zip
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment