--- libmatthew-java-0.7.3.orig/debian/copyright
+++ libmatthew-java-0.7.3/debian/copyright
@@ -0,0 +1,35 @@
+This package was debianized by Matthew Johnson <debian@matthew.ath.cx> on 
+Mon Dec 18 16:34:39 GMT 2006
+
+It was downloaded from http://www.matthew.ath.cx/projects/java
+
+Copyright:
+
+Upstream Author: Matthew Johnson <debian@matthew.ath.cx>
+
+This software is Copyright (c) 2003-2006 by Matthew Johnson.
+
+Some of the files comprising the CGI library are copyright (c) 2003/2004
+Matthew Johnson, Adam Biltcliffe, Michael Cripps, Martin O'Leary, Edward
+Allcutt and James Osborn
+
+This library is free software; you can redistribute it and/or modify it under
+the terms of the GNU Lesser General Public License version 2.1 as published by
+the Free Software Foundation 
+
+This library 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 library; if not, write to the Free Software Foundation, Inc., 51
+Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
+On Debian systems, the complete text of the GNU Lesser General Public License
+can be found in the file `/usr/share/common-licenses/LGPL-2.1'.
+
+The packaging is copyright (c) 2006-2007 Matthew Johnson and is distributed under
+the terms of the GNU General Public License version 2. On Debian systems, the
+complete text of the GNU General Public License can be found in the file
+`/usr/share/common-licenses/GPL-2'. 
--- libmatthew-java-0.7.3.orig/debian/libcgi-java.install
+++ libmatthew-java-0.7.3/debian/libcgi-java.install
@@ -0,0 +1,2 @@
+usr/lib/jni/libcgi-java.so
+usr/share/java/cgi*.jar
--- libmatthew-java-0.7.3.orig/debian/libmatthew-debug-java.install
+++ libmatthew-java-0.7.3/debian/libmatthew-debug-java.install
@@ -0,0 +1,2 @@
+usr/share/java/debug*.jar
+usr/share/java/hexdump*.jar
--- libmatthew-java-0.7.3.orig/debian/libmatthew-io-java.install
+++ libmatthew-java-0.7.3/debian/libmatthew-io-java.install
@@ -0,0 +1 @@
+usr/share/java/io*.jar
--- libmatthew-java-0.7.3.orig/debian/libunixsocket-java.install
+++ libmatthew-java-0.7.3/debian/libunixsocket-java.install
@@ -0,0 +1,2 @@
+usr/lib/jni/libunix-java.so
+usr/share/java/unix*.jar
--- libmatthew-java-0.7.3.orig/debian/watch
+++ libmatthew-java-0.7.3/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/\.(tar.*|tgz|zip|gz|bz2)$//i,dversionmangle=s/[-.+~]?(cvs|svn|git|snapshot|pre|hg)(.*)$//i,pasv \
+http://www.matthew.ath.cx/projects/java (?:.*/)?libmatthew-java-?_?([\d+\.]+|\d+)\.(tar.*|tgz|zip|gz|bz2|) debian uupdate
--- libmatthew-java-0.7.3.orig/debian/compat
+++ libmatthew-java-0.7.3/debian/compat
@@ -0,0 +1 @@
+7
--- libmatthew-java-0.7.3.orig/debian/libmatthew-java-doc.javadoc
+++ libmatthew-java-0.7.3/debian/libmatthew-java-doc.javadoc
@@ -0,0 +1 @@
+doc
--- libmatthew-java-0.7.3.orig/debian/changelog
+++ libmatthew-java-0.7.3/debian/changelog
@@ -0,0 +1,92 @@
+libmatthew-java (0.7.3-1) unstable; urgency=low
+
+  *  New upstream release, fixes a memory leak (Closes: #590331)
+
+ -- Matthew Johnson <mjj29@debian.org>  Thu, 05 Aug 2010 18:36:12 +0100
+
+libmatthew-java (0.7.2-3) unstable; urgency=low
+
+  * Use default-jdk-doc instead of classpath-doc (Closes: #567283)
+  * Fix some lintian warnings 
+  * Don't build doc when only building arch: any packages (Closes: #561414) 
+
+ -- Matthew Johnson <mjj29@debian.org>  Sat, 17 Apr 2010 17:24:37 +0100
+
+libmatthew-java (0.7.2-2) unstable; urgency=low
+
+  * Convert to dh 7
+  * don't use default-jdk-builddep but default-jdk
+
+ -- Matthew Johnson <mjj29@debian.org>  Sat, 12 Dec 2009 10:59:00 +0000
+
+libmatthew-java (0.7.2-1) unstable; urgency=low
+
+  * New Upstream Release
+  * Bump Standards-Version
+  * Bump debhelper compat
+  * Change to section java
+
+ -- Matthew Johnson <mjj29@debian.org>  Sun, 05 Apr 2009 11:11:45 +0100
+
+libmatthew-java (0.7.1-1) unstable; urgency=low
+
+  * New Upstream Release (Closes: #476019)
+  * Change to use default-jdk-builddep (Closes: #477878)
+
+ -- Matthew Johnson <mjj29@debian.org>  Sat, 26 Apr 2008 13:27:43 +0100
+
+libmatthew-java (0.6-1) unstable; urgency=low
+
+  * New Upstream Release
+  * Use javahelper 
+  * Bump Standards-Version
+
+ -- Matthew Johnson <mjj29@debian.org>  Thu, 10 Jan 2008 13:55:43 +0000
+
+libmatthew-java (0.5-2) unstable; urgency=low
+
+  * Add watch file from watchwiz 
+
+ -- Matthew Johnson <mjj29@debian.org>  Tue, 25 Dec 2007 11:19:29 +0000
+
+libmatthew-java (0.5-1) unstable; urgency=low
+
+  * Accompanying upstream change to avoid javadoc talking to the web
+    (Closes: #447351)
+  * Change maintainer address 
+
+ -- Matthew Johnson <mjj29@debian.org>  Wed, 05 Dec 2007 10:22:47 +0000
+
+libmatthew-java (0.4-2) unstable; urgency=low
+
+  * fix javadoc variables to make not to need networking 
+
+ -- Matthew Johnson <debian@matthew.ath.cx>  Wed, 19 Sep 2007 16:41:31 +0100
+
+libmatthew-java (0.4-1) unstable; urgency=low
+
+  * New Upstream Version
+  * Add JAVADOC to rules; forces creating javadoc with gjdoc.
+  * Add docs package 
+  * Register documentation with doc-base
+  * Initial upload to Debian: Closes: #413405
+  * Update to new Java policy
+  * put docs in section doc and libs in section libs 
+
+ -- Matthew Johnson <debian@matthew.ath.cx>  Wed, 30 May 2007 00:24:43 +0100
+
+libmatthew-java (0.3-1) unstable; urgency=low
+
+  * New Upstream Version
+  * Tidy up rules a bit
+  * Remove overrides and full-stops
+
+ -- Matthew Johnson <debian@matthew.ath.cx>  Wed,  3 Jan 2007 21:56:49 +0000
+
+libmatthew-java (0.1-1) unstable; urgency=low
+
+  * Initial Release.
+  * Build with fastjar and java-gcj-compat-dev
+
+ -- Matthew Johnson <debian@matthew.ath.cx>  Tue, 19 Dec 2006 14:35:37 +0000
+
--- libmatthew-java-0.7.3.orig/debian/control
+++ libmatthew-java-0.7.3/debian/control
@@ -0,0 +1,58 @@
+Source: libmatthew-java
+Section: java
+Priority: optional
+Maintainer: Matthew Johnson <mjj29@debian.org>
+Build-Depends: debhelper (>= 7.0.50~),
+               docbook-to-man,
+               default-jdk,
+               fastjar, 
+               javahelper (>= 0.25)
+Build-Depends-Indep: default-jdk-doc
+Standards-Version: 3.8.4
+
+Package: libunixsocket-java
+Architecture: any
+Depends: ${java:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Suggests: libmatthew-java-doc
+Description: Unix socket API and bindings for Java
+ These bindings allow you to connect to Unix Sockets from within Java
+ programs.
+
+Package: libmatthew-io-java
+Architecture: all
+Depends: ${misc:Depends}, ${java:Depends}
+Suggests: libmatthew-java-doc
+Description: Extra IO library for Java
+ This library provides classes to pipe a stream through an external program,
+ print DOM trees and split an output stream so that it also goes to a file.
+
+Package: libmatthew-debug-java
+Architecture: all
+Depends: ${misc:Depends}, ${java:Depends}
+Suggests: libmatthew-java-doc
+Description: Debugging library for Java
+ This package provides a debugging library for Java, including a generic 
+ utility class for providing nicely formatted dumps of byte arrays
+ (similar to the hexdump utility).
+
+Package: libcgi-java
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${java:Depends}
+Suggests: libmatthew-java-doc
+Description: CGI library for Java
+ This library allows CGI scripts to be written in Java.  The library provides
+ access to all the standard CGI variables including POST/GET. It also makes it
+ easy to create input forms in HTML documents.
+
+Package: libmatthew-java-doc
+Architecture: all
+Depends: default-jdk-doc, ${misc:Depends}
+Section: doc
+Recommends: libcgi-java, 
+            libmatthew-debug-java,
+            libmatthew-io-java,
+            libunixsocket-java
+Description: API documentation for the libmatthew-java libraries
+ The Javadoc API documentation for libcgi-java, libmatthew-debug-java,
+ libmatthew-io-java and libunixsocket-java.
+
--- libmatthew-java-0.7.3.orig/debian/rules
+++ libmatthew-java-0.7.3/debian/rules
@@ -0,0 +1,51 @@
+#!/usr/bin/make -f
+
+%:
+	dh --with javahelper $@
+
+override_dh_auto_build:
+
+binary-indep: build_indep
+	dh --with javahelper $@
+binary: build_indep
+	dh --with javahelper $@
+
+binary-arch: build_arch
+	dh --with javahelper $@
+
+build_indep:
+	$(MAKE) JAVA_HOME=/usr/lib/jvm/default-java \
+			  JAVAC=/usr/lib/jvm/default-java/bin/javac \
+			  JAVAH=/usr/lib/jvm/default-java/bin/javah \
+			  JAVADOC=/usr/lib/jvm/default-java/bin/javadoc \
+			  JAVADOCFLAGS="-quiet -author -link /usr/share/doc/default-jdk-doc/api/" \
+			  JAR=/usr/bin/fastjar \
+			  PREFIX=/usr \
+			  all doc
+
+build_arch:
+	$(MAKE) JAVA_HOME=/usr/lib/jvm/default-java \
+			  JAVAC=/usr/lib/jvm/default-java/bin/javac \
+			  JAVAH=/usr/lib/jvm/default-java/bin/javah \
+			  JAVADOC=/usr/lib/jvm/default-java/bin/javadoc \
+			  JAVADOCFLAGS="-quiet -author -link /usr/share/doc/default-jdk-doc/api/" \
+			  JAR=/usr/bin/fastjar \
+			  PREFIX=/usr \
+			  all 
+
+override_dh_auto_test:
+
+override_dh_auto_clean:
+	$(MAKE) clean
+
+override_dh_auto_install: 
+ifeq ($(shell dh_listpackages | grep libmatthew-java-doc), libmatthew-java-doc)
+	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp PREFIX=/usr install install-doc
+else
+	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp PREFIX=/usr install
+endif
+
+override_dh_install:
+	dh_install --sourcedir=debian/tmp
+override_jh_installjavadoc:
+	jh_installjavadoc --author="Matthew Johnson"
