[libhtmlparser-java] 02/25: [svn-inject] Applying Debian modifications to trunk

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Wed Aug 2 12:48:51 UTC 2017


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository libhtmlparser-java.

commit ea77b42b2378b90aba27c2705dcaf3bd7dcca4e9
Author: Tiago Saboga <tiagosaboga at gmail.com>
Date:   Sun Jan 6 01:19:30 2008 +0000

    [svn-inject] Applying Debian modifications to trunk
---
 debian/README.Debian-source                      |   9 +
 debian/ant.properties                            |   1 +
 debian/changelog                                 |  20 +
 debian/compat                                    |   1 +
 debian/control                                   |  40 ++
 debian/copyright                                 |  52 +++
 debian/libhtmlparser-java-doc.dirs               |   2 +
 debian/libhtmlparser-java-doc.doc-base           |   8 +
 debian/libhtmlparser-java-doc.docs               |   3 +
 debian/libhtmlparser-java.dirs                   |   1 +
 debian/libhtmlparser-java.docs                   |   1 +
 debian/patches/00list                            |   2 +
 debian/patches/01_remove_jdk15-dependency.dpatch |  33 ++
 debian/patches/02_adjust_path_in_examples.dpatch | 490 +++++++++++++++++++++++
 debian/repack-source.sh                          |  29 ++
 debian/rules                                     |  34 ++
 debian/watch                                     |  16 +
 17 files changed, 742 insertions(+)

diff --git a/debian/README.Debian-source b/debian/README.Debian-source
new file mode 100644
index 0000000..ea6deb2
--- /dev/null
+++ b/debian/README.Debian-source
@@ -0,0 +1,9 @@
+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.
diff --git a/debian/ant.properties b/debian/ant.properties
new file mode 100644
index 0000000..d6834ae
--- /dev/null
+++ b/debian/ant.properties
@@ -0,0 +1 @@
+link=/usr/share/doc/classpath-doc/api/
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..47cb837
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,20 @@
+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 at 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 at gmail.com>  Wed, 31 Oct 2007 15:19:57 -0200
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..b9959ab
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,40 @@
+Source: libhtmlparser-java
+Section: libs
+Priority: optional
+Maintainer: Tiago Saboga <tiagosaboga at 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.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..e49d4e4
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,52 @@
+This package was debianized by Tiago Saboga <tiagosaboga at 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 at gmail.com>
+and is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
diff --git a/debian/libhtmlparser-java-doc.dirs b/debian/libhtmlparser-java-doc.dirs
new file mode 100644
index 0000000..a409516
--- /dev/null
+++ b/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
diff --git a/debian/libhtmlparser-java-doc.doc-base b/debian/libhtmlparser-java-doc.doc-base
new file mode 100644
index 0000000..0cad567
--- /dev/null
+++ b/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
diff --git a/debian/libhtmlparser-java-doc.docs b/debian/libhtmlparser-java-doc.docs
new file mode 100644
index 0000000..2b29cc9
--- /dev/null
+++ b/debian/libhtmlparser-java-doc.docs
@@ -0,0 +1,3 @@
+src/docs/javadoc/
+docs
+readme.txt
diff --git a/debian/libhtmlparser-java.dirs b/debian/libhtmlparser-java.dirs
new file mode 100644
index 0000000..13c9f03
--- /dev/null
+++ b/debian/libhtmlparser-java.dirs
@@ -0,0 +1 @@
+usr/share/java
diff --git a/debian/libhtmlparser-java.docs b/debian/libhtmlparser-java.docs
new file mode 100644
index 0000000..88c0814
--- /dev/null
+++ b/debian/libhtmlparser-java.docs
@@ -0,0 +1 @@
+debian/README.Debian-source
diff --git a/debian/patches/00list b/debian/patches/00list
new file mode 100644
index 0000000..0b00c24
--- /dev/null
+++ b/debian/patches/00list
@@ -0,0 +1,2 @@
+01_remove_jdk15-dependency
+02_adjust_path_in_examples
diff --git a/debian/patches/01_remove_jdk15-dependency.dpatch b/debian/patches/01_remove_jdk15-dependency.dpatch
new file mode 100755
index 0000000..84175d7
--- /dev/null
+++ b/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 <tiagosaboga at gmail.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at 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}"/>
diff --git a/debian/patches/02_adjust_path_in_examples.dpatch b/debian/patches/02_adjust_path_in_examples.dpatch
new file mode 100755
index 0000000..18d1d7b
--- /dev/null
+++ b/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 <tiagosaboga at gmail.com>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: No description.
+
+ at 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
diff --git a/debian/repack-source.sh b/debian/repack-source.sh
new file mode 100644
index 0000000..1298103
--- /dev/null
+++ b/debian/repack-source.sh
@@ -0,0 +1,29 @@
+#!/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
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..a759b02
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,34 @@
+#!/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
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..6aa8f96
--- /dev/null
+++ b/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
+
+# <http://downloads.sourceforge.net/htmlparser/htmlparser1_6_20060610.zip
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libhtmlparser-java.git



More information about the pkg-java-commits mailing list