--- libjmathtex-java-0.7~pre.orig/debian/changelog
+++ libjmathtex-java-0.7~pre/debian/changelog
@@ -0,0 +1,37 @@
+libjmathtex-java (0.7~pre-4) unstable; urgency=low
+
+  * debian/control:
+    - Bumped Standards-Version to 3.7.3, no changes needed
+    - Build-Depend on default-jdk-builddep instead of
+      java-gcj-compat-dev (Closes: #477875)
+  * debian/rules: change JAVA_HOME accordingly to /usr/lib/jvm/default-java
+
+ -- Adriaan Peeters <apeeters@lashout.net>  Thu, 01 May 2008 09:37:43 +0200
+
+libjmathtex-java (0.7~pre-3) unstable; urgency=low
+
+  * Fixed debian/watch file (Closes: #453604)
+  * debian/control:
+    - Moved Homepage to a real field
+    - Added Vcs-Svn and Vcs-Browser fields
+  * Updated debian/README.Debian
+  * debian/rules: use DEB_ANT_BUILDFILE instead of ANT_ARGS
+  * debian/build.xml: Do not include api directory in binary jar
+  * debian/copyright
+    - include license for packaging
+    - point to GPL instead of GPL-2 license
+
+ -- Adriaan Peeters <apeeters@lashout.net>  Mon, 03 Dec 2007 09:21:26 +0100
+
+libjmathtex-java (0.7~pre-2) unstable; urgency=low
+
+  * Added libjmathtex-java-doc packaging including javadoc API documentation.
+  * Removed Build-Depends: gcj-4.1 (Closes: #442465)
+
+ -- Adriaan Peeters <apeeters@lashout.net>  Tue, 25 Sep 2007 14:07:55 +0200
+
+libjmathtex-java (0.7~pre-1) unstable; urgency=low
+
+  * Initial Debian release
+
+ -- Adriaan Peeters <apeeters@lashout.net>  Tue, 26 Jun 2007 14:25:46 +0200
--- libjmathtex-java-0.7~pre.orig/debian/control
+++ libjmathtex-java-0.7~pre/debian/control
@@ -0,0 +1,74 @@
+Source: libjmathtex-java
+Section: libs
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
+Uploaders: Adriaan Peeters <apeeters@lashout.net>
+Homepage: http://jmathtex.sourceforge.net/
+Build-Depends: debhelper (>> 5.0.0), cdbs, patchutils, ant, default-jdk-builddep, libjdom1-java
+Vcs-Svn: svn://svn.debian.org/pkg-java/trunk/libjmathtex-java/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/libjmathtex-java/
+Standards-Version: 3.7.3
+
+Package: libjmathtex-java
+Architecture: all
+Depends: gij | java-gcj-compat | java1-runtime | java2-runtime, libjdom1-java
+Description: TeX and MathML library for Java
+ The JMathTeX library provides a set of Java classes for displaying (complex)
+ mathematical formulas as part of a Java application. Some use cases are:
+  * Displaying text with embedded formulas (in an editor pane, a JavaHelp
+    page, ...)
+  * Make a combo box which provides the user with a choice between various
+    formulas.
+  * Have a slider with ticks that display their values not as decimal numbers,
+    but as exact values, e.g., fractions, square roots or any combination of
+    these.
+  * Display the formula together with the graph of a function.
+ The library uses the typesetting algorithms of the well-known TeX and LaTeX
+ systems and therefore displays formulas in a very professional looking way.
+ Formulas are Java-objects that can be built from scratch (by combining smaller
+ formulas in several ways) and from LaTeX strings. There is also limited
+ support for MathML.
+
+Package: libjmathtex-java-gcj
+Architecture: any
+Depends: libjmathtex-java (= ${source:Version}), ${misc:Depends}, ${shlibs:Depends}
+Description: TeX and MathML library for Java (native code)
+ The JMathTeX library provides a set of Java classes for displaying (complex)
+ mathematical formulas as part of a Java application. Some use cases are:
+  * Displaying text with embedded formulas (in an editor pane, a JavaHelp
+    page, ...)
+  * Make a combo box which provides the user with a choice between various
+    formulas.
+  * Have a slider with ticks that display their values not as decimal numbers,
+    but as exact values, e.g., fractions, square roots or any combination of
+    these.
+  * Display the formula together with the graph of a function.
+ The library uses the typesetting algorithms of the well-known TeX and LaTeX
+ systems and therefore displays formulas in a very professional looking way.
+ Formulas are Java-objects that can be built from scratch (by combining smaller
+ formulas in several ways) and from LaTeX strings. There is also limited
+ support for MathML.
+ .
+ This package contains the natively compiled code for use by gij.
+
+Package: libjmathtex-java-doc
+Architecture: all
+Section: doc
+Description: TeX and MathML library for Java (API documentation)
+ The JMathTeX library provides a set of Java classes for displaying (complex)
+ mathematical formulas as part of a Java application. Some use cases are:
+  * Displaying text with embedded formulas (in an editor pane, a JavaHelp
+    page, ...)
+  * Make a combo box which provides the user with a choice between various
+    formulas.
+  * Have a slider with ticks that display their values not as decimal numbers,
+    but as exact values, e.g., fractions, square roots or any combination of
+    these.
+  * Display the formula together with the graph of a function.
+ The library uses the typesetting algorithms of the well-known TeX and LaTeX
+ systems and therefore displays formulas in a very professional looking way.
+ Formulas are Java-objects that can be built from scratch (by combining smaller
+ formulas in several ways) and from LaTeX strings. There is also limited
+ support for MathML.
+ .
+ This package contains the Javadoc API documentation.
--- libjmathtex-java-0.7~pre.orig/debian/compat
+++ libjmathtex-java-0.7~pre/debian/compat
@@ -0,0 +1 @@
+5
--- libjmathtex-java-0.7~pre.orig/debian/watch
+++ libjmathtex-java-0.7~pre/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=dversionmangle=s/\~// \
+  http://sf.net/jmathtex/JMathTeX-(.*)\.src\.jar
--- libjmathtex-java-0.7~pre.orig/debian/README.Debian
+++ libjmathtex-java-0.7~pre/debian/README.Debian
@@ -0,0 +1,10 @@
+libjmathtex-java
+================
+
+This package provides the following JAR in /usr/share/java/
+  * jmathtex.jar
+
+To use the library properly, add jdom1.jar (provided by libjdom1-java) to the
+class path.
+
+ -- Adriaan Peeters <apeeters@lashout.net>,  Mon, 03 Dec 2007 09:21:26 +0100
--- libjmathtex-java-0.7~pre.orig/debian/copyright
+++ libjmathtex-java-0.7~pre/debian/copyright
@@ -0,0 +1,32 @@
+This package was debianized by Adriaan Peeters <apeeters@lashout.net> on
+Thu, 21 Jun 2007 09:06:57 +0200.
+
+It was downloaded from http://jmathtex.sourceforge.net/
+The upstream src.jar was repackaged as a tar.gz by the package maintainer.
+
+The upstream source code and the Debian packaging is licensed under the
+following license.
+
+Upstream Authors: Kris Coolsaet, Nico Van Cleemput, Kurt Vermeulen
+
+Copyright (c) 2004-2007 Universiteit Gent
+
+License:
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or (at
+   your option) any later version.
+
+   This program 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
+   General Public License for more details.
+
+   You should have received a copy of the GNU 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.
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in '/usr/share/common-licenses/GPL'.
--- libjmathtex-java-0.7~pre.orig/debian/rules
+++ libjmathtex-java-0.7~pre/debian/rules
@@ -0,0 +1,35 @@
+#!/usr/bin/make -f
+
+VERSION=0.7pre
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+include /usr/share/cdbs/1/class/ant.mk
+
+JAVA_HOME := /usr/lib/jvm/default-java
+ANT_HOME  := /usr/share/ant
+
+DEB_JARS := jdom1
+
+DEB_ANT_CLEAN_TARGET := clean
+DEB_ANT_BUILD_TARGET := all
+DEB_ANT_BUILDFILE := debian/build.xml
+
+include /usr/share/gcj/debian_defaults
+
+ifneq (,$(filter $(DEB_HOST_ARCH), $(gcj_native_archs)))
+  with_gcj_native := yes
+endif
+
+install/libjmathtex-java::
+	mv build/jmathtex.jar build/jmathtex-$(VERSION).jar
+	dh_install -plibjmathtex-java build/jmathtex-$(VERSION).jar usr/share/java/
+	dh_link -plibjmathtex-java usr/share/java/jmathtex-$(VERSION).jar usr/share/java/jmathtex.jar
+
+ifeq ($(with_gcj_native),yes)
+install/libjmathtex-java-gcj:: install/libjmathtex-java
+	dh_nativejava -plibjmathtex-java-gcj
+endif
+
+install/libjmathtex-java-doc::
+	dh_installdocs -plibjmathtex-java-doc build/api
--- libjmathtex-java-0.7~pre.orig/debian/build.xml
+++ libjmathtex-java-0.7~pre/debian/build.xml
@@ -0,0 +1,44 @@
+<project default="jar">
+    
+    <property name="build.dir" value="../build"/>
+    <property name="src.dir" value=".."/>
+    
+    <target name="prepare">
+        <mkdir dir="${build.dir}"/>
+    </target>
+    
+    <target name="compile" depends="prepare">
+        <javac srcdir="${src.dir}" destdir="${build.dir}" source="1.5"/>
+	<copy todir="${build.dir}/be/ugent/caagt/jmathtex/">
+	    <fileset dir="${src.dir}/be/ugent/caagt/jmathtex/">
+		<include name="**/*.ttf"/>
+		<include name="**/*.xml"/>
+	    </fileset>
+	</copy>
+    </target>
+
+    <target name="javadoc" depends="prepare">
+        <mkdir dir="${build.dir}/api"/>
+        <javadoc destdir="${build.dir}/api">
+            <sourcepath>
+                <pathelement location="${src.dir}"/>
+            </sourcepath>
+            <packageset dir="${src.dir}" includes="*/**"/>
+            <fileset dir="${src.dir}" includes="*.java"/>
+        </javadoc>
+    </target>
+
+    <target name="jar" depends="compile">
+        <jar jarfile="${build.dir}/jmathtex.jar"
+             basedir="${build.dir}"
+             compress="true" >
+        </jar>
+    </target>
+
+    <target name="all" depends="jar, javadoc"/>
+    
+    <target name="clean">
+        <delete dir="${build.dir}"/>
+    </target>
+    
+</project>
--- libjmathtex-java-0.7~pre.orig/debian/libjmathtex-java.dirs
+++ libjmathtex-java-0.7~pre/debian/libjmathtex-java.dirs
@@ -0,0 +1 @@
+/usr/share/java
