jeuclid (3.1.9-1) debian-dir only changes

Summary

 debian/README.Debian                     |   13 +
 debian/build.xml                         |  229 ++++++++++++++++++++++++++
 debian/changelog                         |   66 +++++++
 debian/compat                            |    1 
 debian/control                           |   74 ++++++++
 debian/copyright                         |   93 ++++++++++
 debian/jeuclid-cli.dirs                  |    2 
 debian/jeuclid-cli.sh                    |   19 ++
 debian/jeuclid-mathviewer.dirs           |    2 
 debian/jeuclid-mathviewer.sh             |   19 ++
 debian/orig-tar.exclude                  |    4 
 debian/orig-tar.sh                       |   22 ++
 debian/patches/AppleJavaExtensions.patch |  266 +++++++++++++++++++++++++++++++
 debian/patches/MacOSX.patch              |   18 ++
 debian/patches/jeuclid-cli-name.diff     |   21 ++
 debian/rules                             |   39 ++++
 debian/watch                             |    2 
 17 files changed, 890 insertions(+)

    
download this patch

Patch contents

--- jeuclid-3.1.9.orig/debian/README.Debian
+++ jeuclid-3.1.9/debian/README.Debian
@@ -0,0 +1,13 @@
+jeuclid for Debian
+------------------
+
+mathviewer has a dependency over the library AppleJavaExtensions: 
+http://developer.apple.com/samplecode/AppleJavaExtensions/index.html
+Obviously, this dependency is useless for Debian. Therefore, I added empty
+class which are faking AppleJavaExtensions for the build time.
+Another solution could be to patch massively jeuclid-mathviewer.
+
+As a matter of consistency with the package name, mml2xxx script has been
+renamed to jeuclid-cli.
+
+ -- Sylvestre Ledru <sylvestre@debian.org>
--- jeuclid-3.1.9.orig/debian/orig-tar.sh
+++ jeuclid-3.1.9/debian/orig-tar.sh
@@ -0,0 +1,22 @@
+#!/bin/sh -e
+
+# called by uscan with '--upstream-version' <version> <file>
+DIR=jeuclid-parent-$2
+TAR=../jeuclid_$2.orig.tar.gz
+
+# clean up the upstream tarball
+unzip $3 
+# Remove jeuclid-testsuite because it is not used and there are some license
+# issues
+# Remove the license file of FreeHEP because we disabled the used of this
+# feature
+tar -c -z -X debian/orig-tar.exclude -f $TAR $DIR/
+rm -rf $DIR $3
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+    . .svn/deb-layout
+    mv $TAR $origDir
+    echo "moved $TAR to $origDir"
+fi
+
--- jeuclid-3.1.9.orig/debian/jeuclid-cli.dirs
+++ jeuclid-3.1.9/debian/jeuclid-cli.dirs
@@ -0,0 +1,2 @@
+usr/share/java
+usr/bin
--- jeuclid-3.1.9.orig/debian/rules
+++ jeuclid-3.1.9/debian/rules
@@ -0,0 +1,39 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/ant.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+
+JAVA_HOME            := /usr/lib/jvm/java-6-openjdk
+DEB_ANT_BUILDFILE    := $(CURDIR)/debian/build.xml
+DEB_JARS             := ant-nodeps junit commons-lang commons-cli fop jcip
+DEB_ANT_BUILD_TARGET := compile-core compile-mathviewer compile-cli compile-fop
+
+makebuilddir::
+	if [ -d jeuclid-testsuite ]; then \
+	  echo "You are shipping non-free code!"; \
+	  exit 1; \
+	fi
+
+install/libjeuclid-core-java::
+	install -m 644 -D target/jeuclid-core.jar debian/libjeuclid-core-java/usr/share/java/jeuclid-core-${DEB_UPSTREAM_VERSION}.jar
+	ln -s jeuclid-core-${DEB_UPSTREAM_VERSION}.jar debian/libjeuclid-core-java/usr/share/java/jeuclid-core.jar
+
+install/jeuclid-mathviewer::
+	install -m 644 -D target/jeuclid-mathviewer.jar debian/jeuclid-mathviewer/usr/share/java/jeuclid-mathviewer-${DEB_UPSTREAM_VERSION}.jar
+	ln -s jeuclid-mathviewer-${DEB_UPSTREAM_VERSION}.jar debian/jeuclid-mathviewer/usr/share/java/jeuclid-mathviewer.jar
+	cp debian/jeuclid-mathviewer.sh debian/jeuclid-mathviewer/usr/bin/jeuclid-mathviewer
+
+install/jeuclid-cli::
+	install -m 644 -D target/jeuclid-cli.jar debian/jeuclid-cli/usr/share/java/jeuclid-cli-${DEB_UPSTREAM_VERSION}.jar
+	ln -s jeuclid-cli-${DEB_UPSTREAM_VERSION}.jar debian/jeuclid-cli/usr/share/java/jeuclid-cli.jar
+	cp debian/jeuclid-cli.sh debian/jeuclid-cli/usr/bin/jeuclid-cli
+
+install/libjeuclid-fop-java::
+	install -m 644 -D target/jeuclid-fop.jar debian/libjeuclid-fop-java/usr/share/java/jeuclid-fop-${DEB_UPSTREAM_VERSION}.jar
+	ln -s jeuclid-fop-${DEB_UPSTREAM_VERSION}.jar debian/libjeuclid-fop-java/usr/share/java/jeuclid-fop.jar
+
+
+get-orig-source:
+	uscan --force-download --rename    
+
--- jeuclid-3.1.9.orig/debian/orig-tar.exclude
+++ jeuclid-3.1.9/debian/orig-tar.exclude
@@ -0,0 +1,4 @@
+*/jeuclid-testsuite*
+*/LICENSE.FreeHEP
+*/LICENSE.VeraMono
+*/VeraMono.ttf
--- jeuclid-3.1.9.orig/debian/build.xml
+++ jeuclid-3.1.9/debian/build.xml
@@ -0,0 +1,229 @@
+<project default="compile-core" basedir=".." name="jeuclid">
+  <property name="build.directory" value="target"/>
+  <property name="build.output" value="${build.directory}/classes"/>
+  <property environment="env"/>
+
+
+  <path id="libs-build-classpath">
+     <pathelement location="/usr/share/java/commons-logging.jar" />
+     <pathelement location="/usr/share/java/xmlgraphics-commons.jar" />
+     <pathelement location="/usr/share/java/batik-all.jar" />
+     <pathelement location="/usr/share/java/xalan2.jar" />
+  </path>
+
+  <target name="init" description="Init dependencies">
+    <mkdir dir="${build.directory}"/>
+    <echo message="------------------- ${ant.project.name} ----------------"/>
+    <echo message="${ant.version}"/>
+    <echo message="VM: ${java.vm.version}, ${java.vm.vendor}"/>
+    <echo message="JAVA_HOME: ${env.JAVA_HOME}"/>
+
+    <available property="ant.present" classname="org.apache.tools.ant.BuildException" classpathref="libs-build-classpath"/>
+    <condition property="ant.message" value="ANT Support PRESENT">
+      <equals arg1="${ant.present}" arg2="true"/>
+    </condition>
+    <condition property="ant.message" value="ANT Support NOT Present">
+      <not>
+        <equals arg1="${ant.present}" arg2="true"/>
+      </not>
+    </condition>
+    <echo message="${ant.message}"/>
+
+    <available property="batik.present" classname="org.apache.batik.dom.AbstractNode" classpathref="libs-build-classpath"/>
+    <condition property="batik.message" value="Batik Support PRESENT">
+      <equals arg1="${batik.present}" arg2="true"/>
+    </condition>
+    <condition property="batik.message" value="Batik Support NOT Present">
+      <not>
+        <equals arg1="${batik.present}" arg2="true"/>
+      </not>
+    </condition>
+    <echo message="${batik.message}"/>
+
+    <available property="logging.present" classname="org.apache.commons.logging.LogFactory" classpathref="libs-build-classpath"/>
+    <condition property="logging.message" value="commons-logging Support PRESENT">
+      <equals arg1="${logging.present}" arg2="true"/>
+    </condition>
+    <condition property="logging.message" value="commons-logging Support NOT Present">
+      <not>
+        <equals arg1="${logging.present}" arg2="true"/>
+      </not>
+    </condition>
+    <echo message="${logging.message}"/>
+<!--
+    <available property="freeheputil.present" classname="org.freehep.util.export.ExportFileType" classpathref="libs-build-classpath"/>
+    <condition property="freeheputil.message" value="FreeHep Util Support PRESENT">
+      <equals arg1="${freeheputil.present}" arg2="true"/>
+    </condition>
+    <condition property="freeheputil.message" value="FreeHep Util Support NOT Present">
+      <not>
+        <equals arg1="${freeheputil.present}" arg2="true"/>
+      </not>
+    </condition>
+    <echo message="${freeheputil.message}"/>
+
+    <available property="freehepgraph.present" classname="org.freehep.graphics2d.VectorGraphics" classpathref="libs-build-classpath"/>
+    <condition property="freehepgraph.message" value="FreeHep Graphics2D Support PRESENT">
+      <equals arg1="${freehepgraph.present}" arg2="true"/>
+    </condition>
+    <condition property="freehepgraph.message" value="FreeHep Graphics2D Support NOT Present">
+      <not>
+        <equals arg1="${freehepgraph.present}" arg2="true"/>
+      </not>
+    </condition>
+    <echo message="${freehepgraph.message}"/>
+-->
+
+    <available property="xmlext.present" classname="org.xml.sax.InputSource" classpathref="libs-build-classpath"/>
+    <condition property="xmlext.message" value="xml-commons-external Support PRESENT">
+      <equals arg1="${xmlext.present}" arg2="true"/>
+    </condition>
+    <condition property="xmlext.message" value="xml-commons-external Support NOT Present">
+      <not>
+        <equals arg1="${xmlext.present}" arg2="true"/>
+      </not>
+    </condition>
+    <echo message="${xmlext.message}"/>
+
+    <available property="xmlgraphics.present" classname="org.apache.xmlgraphics.util.ClasspathResource" classpathref="libs-build-classpath"/>
+    <condition property="xmlgraphics.message" value="xmlgraphics-commons Support PRESENT">
+      <equals arg1="${xmlgraphics.present}" arg2="true"/>
+    </condition>
+    <condition property="xmlgraphics.message" value="xmlgraphics-commons Support NOT Present">
+      <not>
+        <equals arg1="${xmlgraphics.present}" arg2="true"/>
+      </not>
+    </condition>
+    <echo message="${xmlgraphics.message}"/>
+
+    <available property="commonscli.present" classname="org.apache.commons.cli.CommandLine" classpathref="libs-build-classpath"/>
+    <condition property="commonscli.message" value="commons-cli Support PRESENT">
+      <equals arg1="${commonscli.present}" arg2="true"/>
+    </condition>
+    <condition property="commonscli.message" value="commons-cli Support NOT Present">
+      <not>
+        <equals arg1="${commonscli.present}" arg2="true"/>
+      </not>
+    </condition>
+    <echo message="${commonscli.message}"/>
+
+    <available property="commonslang.present" classname="org.apache.commons.lang.StringUtils" classpathref="libs-build-classpath"/>
+    <condition property="commonslang.message" value="commons-lang Support PRESENT">
+      <equals arg1="${commonslang.present}" arg2="true"/>
+    </condition>
+    <condition property="commonslang.message" value="commons-lang Support NOT Present">
+      <not>
+        <equals arg1="${commonslang.present}" arg2="true"/>
+      </not>
+    </condition>
+    <echo message="${commonslang.message}"/>
+</target>
+
+  <target name="compile-core" depends="init" description="Compile the core code">
+  <property name="package.name" value="jeuclid-core" />
+  <property name="full.build.output.core" value="${package.name}/${build.output}" />
+
+    <mkdir dir="${full.build.output.core}"/>
+    <javac destdir="${full.build.output.core}" debug="true" deprecation="true" optimize="false" source="1.5" target="1.5">
+      <src>
+        <pathelement location="${package.name}/src/main/java"/>
+
+      </src>
+      <exclude name="**/FreeHep*" />
+      <classpath refid="libs-build-classpath"/>
+    </javac>
+    <copy todir="${full.build.output.core}">
+      <fileset dir="${package.name}/src/main/resources"/>
+    </copy>
+    <jar jarfile="${build.directory}/${package.name}.jar" basedir="${full.build.output.core}"/>
+  </target>
+
+
+  <target name="compile-mathviewer" depends="init, compile-core" description="Compile the mathviewer code">
+  <property name="package.name.mathviewer" value="jeuclid-mathviewer" />
+  <property name="full.build.output.mathviewer" value="${package.name.mathviewer}/${build.output}" />
+    <mkdir dir="${full.build.output.mathviewer}"/>
+    <javac destdir="${package.name.mathviewer}/${build.output}" debug="true" deprecation="true" optimize="false" source="1.5" target="1.5">
+      <src>
+        <pathelement location="${package.name.mathviewer}/src/main/java"/>
+
+      </src>
+      <exclude name="**/FreeHep*" />
+      <classpath>
+        <fileset dir="${build.directory}">
+          <include name="jeuclid-core.jar"/>
+        </fileset>
+        <path refid="libs-build-classpath"/>
+      </classpath>
+    </javac>
+    <copy todir="${full.build.output.mathviewer}">
+      <fileset dir="${package.name.mathviewer}/src/main/resources"/>
+    </copy>
+    <jar jarfile="${build.directory}/${package.name.mathviewer}.jar" basedir="${full.build.output.mathviewer}">
+      <manifest>
+        <attribute name="Main-Class" value="net.sourceforge.jeuclid.app.mathviewer.MathViewer"/>
+      </manifest>
+	</jar>
+  </target>
+
+  <target name="compile-cli" depends="init, compile-core" description="Compile the jeuclid cli">
+  <property name="package.name.cli" value="jeuclid-cli" />
+  <property name="full.build.output.cli" value="${package.name.cli}/${build.output}" />
+
+    <mkdir dir="${full.build.output.cli}"/>
+    <javac destdir="${full.build.output.cli}" debug="true" deprecation="true" optimize="false" source="1.5" target="1.5">
+      <src>
+        <pathelement location="${package.name.cli}/src/main/java"/>
+
+      </src>
+      <classpath>
+        <fileset dir="${build.directory}">
+          <include name="jeuclid-core.jar"/>
+        </fileset>
+        <path refid="libs-build-classpath"/>
+      </classpath>
+    </javac>
+    <jar jarfile="${build.directory}/${package.name.cli}.jar" basedir="${full.build.output.cli}">
+      <manifest>
+        <attribute name="Main-Class" value="net.sourceforge.jeuclid.app.Mml2xxx"/>
+      </manifest>
+
+	</jar>
+  </target>
+
+
+  <target name="compile-fop" depends="init, compile-core" description="Compile the jeuclid fop">
+  <property name="package.name.fop" value="jeuclid-fop" />
+  <property name="full.build.output.fop" value="${package.name.fop}/${build.output}" />
+
+    <mkdir dir="${full.build.output.fop}"/>
+    <javac destdir="${full.build.output.fop}" debug="true" deprecation="true" optimize="false" source="1.5" target="1.5">
+      <src>
+        <pathelement location="${package.name.fop}/src/main/java"/>
+
+      </src>
+      <classpath>
+        <fileset dir="${build.directory}">
+          <include name="jeuclid-core.jar"/>
+        </fileset>
+        <path refid="libs-build-classpath"/>
+      </classpath>
+    </javac>
+    <copy todir="${full.build.output.fop}">
+      <fileset dir="${package.name.fop}/src/main/resources"/>
+    </copy>
+    <jar jarfile="${build.directory}/${package.name.fop}.jar" basedir="${full.build.output.fop}"/>
+  </target>
+
+
+
+
+	<!-- Clean sources -->
+        <target name="clean" description="clean sources">
+                <delete dir="${build.directory}"/>
+                <delete dir="jeuclid-core/${build.directory}"/>
+                <delete dir="jeuclid-mathviewer/${build.directory}"/>
+                <delete dir="jeuclid-cli/${build.directory}"/>
+                <delete dir="jeuclid-fop/${build.directory}"/>
+        </target>
+</project>
--- jeuclid-3.1.9.orig/debian/copyright
+++ jeuclid-3.1.9/debian/copyright
@@ -0,0 +1,93 @@
+This package was debianized by Sylvestre Ledru <sylvestre.ledru@inria.fr> on
+Mon Jul 14 00:59:27 CEST 2008. Some pieces of the build.xml file come
+Gentoo's package.
+
+It was downloaded from <http://jeuclid.sourceforge.net>
+
+Upstream Authors:
+
+    Max Berger
+    Erik Putrycz
+    Ernest Mishkin
+    Emmanuel Pietriga
+    PetrProchy
+
+Copyright: 2002-2008 JEuclid, http://jeuclid.sf.net
+
+License:
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+The full text of the Apache 2 license can be found in
+`/usr/share/common-licenses/Apache-2.0`
+
+The Debian packaging is (C) 2008, Sylvestre Ledru <sylvestre.ledru@inria.fr>
+and is licensed under the Apache 2.
+
+
+File: jeuclid-core/src/main/resources/mathml.2.0/mathml2.dtd
+
+Copyright:
+	1998-2003 W3C&#xae; (MIT, ERCIM, Keio), All Rights Reserved.
+
+License:
+     Permission to use, copy, modify and distribute the MathML 2.0 DTD and
+     its accompanying documentation for any purpose and without fee is
+     hereby granted in perpetuity, provided that the above copyright notice
+     and this paragraph appear in all copies.  The copyright holders make
+     no representation about the suitability of the DTD for any purpose.
+
+
+File: jeuclid-core/src/main/resources/mathml.2.0/mathml2-qname-1.mod
+
+Copyright: 1998-2000 World Wide Web Consortium
+   (Massachusetts Institute of Technology, Institut National de
+    Recherche en Informatique et en Automatique, Keio University).
+    All Rights Reserved.
+
+License:
+	Permission to use, copy, modify and distribute the XHTML 1.1 DTD and
+	its accompanying documentation for any purpose and without fee is
+	hereby granted in perpetuity, provided that the above copyright notice
+	and this paragraph appear in all copies.  The copyright holders make
+	no representation about the suitability of the DTD for any purpose.
+
+It is provided "as is" without expressed or implied warranty.
+
+File: jeuclid-core/src/main/resources/mathml.2.0/xhtml-math11-f.dtd
+
+Copyright: 2002 World Wide Web Consortium
+        (Massachusetts Institute of Technology, Institut National de
+         Recherche en Informatique et en Automatique, Keio University).
+         All Rights Reserved.
+
+License:
+     Permission to use, copy, modify and distribute this DTD and its
+     accompanying documentation for any purpose and without fee is hereby
+     granted in perpetuity, provided that the above copyright notice and
+     this paragraph appear in all copies.  The copyright holders make no
+     representation about the suitability of the DTD for any purpose.
+
+File: jeuclid-core/src/main/resources/openoffice.mathml.1.0.1/math.dtd
+
+Copyright: 1997-1999 World Wide Web Consortium
+        (Massachusetts Institute of Technology, Institut National de
+         Recherche en Informatique et en Automatique, Keio University).
+         All Rights Reserved.
+
+License:
+     Permission to use, copy, modify and distribute this DTD and its
+     accompanying documentation for any purpose and without fee is hereby
+     granted in perpetuity, provided that the above copyright notice and
+     this paragraph appear in all copies.  The copyright holders make no
+     representation about the suitability of the DTD for any purpose.
\ No newline at end of file
--- jeuclid-3.1.9.orig/debian/changelog
+++ jeuclid-3.1.9/debian/changelog
@@ -0,0 +1,66 @@
+jeuclid (3.1.9-1) unstable; urgency=low
+
+  * New upstream release
+  * Standards-Version updated to version 3.8.4
+
+ -- Sylvestre Ledru <sylvestre@debian.org>  Wed, 17 Mar 2010 22:25:03 +0100
+
+jeuclid (3.1.8-2) unstable; urgency=low
+
+  * mml2xxx is named jeuclid-cli in Debian. Update help. (Closes: #566800)
+  * Fixed a typo in README.Debian 
+
+ -- Sylvestre Ledru <sylvestre@debian.org>  Mon, 25 Jan 2010 10:20:38 +0100
+
+jeuclid (3.1.8-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Sylvestre Ledru <sylvestre@debian.org>  Wed, 14 Oct 2009 22:39:36 +0200
+
+jeuclid (3.1.7-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Sylvestre Ledru <sylvestre@debian.org>  Fri, 02 Oct 2009 17:00:23 +0200
+
+jeuclid (3.1.6-1) unstable; urgency=low
+
+  * New upstream release
+  * Standards-Version updated to 3.8.3
+  * DM-Upload-Allowed removed
+  * Add all jar to the startup script since they are no longer loading 
+    automatically (LP: #370404)
+  * patch freehep.patch removed
+  * missing ${misc:Depends} added
+
+ -- Sylvestre Ledru <sylvestre@debian.org>  Wed, 02 Sep 2009 11:24:47 +0200
+
+jeuclid (3.1.5-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Sylvestre Ledru <sylvestre@debian.org>  Wed, 02 Sep 2009 11:24:45 +0200
+
+jeuclid (3.1.4-1) unstable; urgency=low
+
+  [ Sylvestre Ledru ]
+  * New upstream release
+  * Missing copyright information about 
+    jeuclid-core/src/test/resources/VeraMono.ttf
+  * Upload to unstable
+  * Dep to libjcip-annotations-java added and patch jcip.patch removed
+
+  [ Christoph Korn ]
+  * debian/control: Changed the unique package descriptions to make
+    lintian happy.
+  * removed debian/copyright entry for a *.ttf file that is not in
+    the tarball
+
+ -- Sylvestre Ledru <sylvestre.ledru@inria.fr>  Wed, 18 Feb 2009 10:59:05 +0100
+
+jeuclid (3.1.3-1) experimental; urgency=low
+
+  * Initial release. (Closes: #490749)
+
+ -- Sylvestre Ledru <sylvestre.ledru@inria.fr>  Thu, 18 Dec 2008 17:50:26 +0100
--- jeuclid-3.1.9.orig/debian/jeuclid-mathviewer.sh
+++ jeuclid-3.1.9/debian/jeuclid-mathviewer.sh
@@ -0,0 +1,19 @@
+#! /bin/sh
+
+# Shell script wrapper around the jeuclid-mathviewer program,
+# Copyright 2008 by Sylvestre Ledru <sylvestre.ledru@inria.fr>
+#
+# Licensed under the same terms as jeuclid-mathviewer itself, that is under
+# the conditions of the Apache 2 licencee.
+
+# Include the wrappers utility script
+. /usr/lib/java-wrappers/java-wrappers.sh
+
+
+# We prefer to use openjdk or Sun's java if available
+find_java_runtime openjdk sun  || find_java_runtime 
+
+find_jars jeuclid-cli commons-cli commons-logging batik-all xmlgraphics-commons
+find_jars commons-io jeuclid-mathviewer jeuclid-core
+
+run_java net.sourceforge.jeuclid.app.mathviewer.MathViewer "$@"
--- jeuclid-3.1.9.orig/debian/compat
+++ jeuclid-3.1.9/debian/compat
@@ -0,0 +1 @@
+5
--- jeuclid-3.1.9.orig/debian/jeuclid-mathviewer.dirs
+++ jeuclid-3.1.9/debian/jeuclid-mathviewer.dirs
@@ -0,0 +1,2 @@
+usr/share/java
+usr/bin
--- jeuclid-3.1.9.orig/debian/jeuclid-cli.sh
+++ jeuclid-3.1.9/debian/jeuclid-cli.sh
@@ -0,0 +1,19 @@
+#! /bin/sh
+
+# Shell script wrapper around the jeuclid-cli program,
+# Copyright 2008 by Sylvestre Ledru <sylvestre.ledru@inria.fr>
+#
+# Licensed under the same terms as jeuclid-cli itself, that is under
+# the conditions of the Apache 2 licencee.
+
+# Include the wrappers utility script
+. /usr/lib/java-wrappers/java-wrappers.sh
+
+
+# We prefer to use openjdk or Sun's java if available
+find_java_runtime openjdk sun  || find_java_runtime 
+
+find_jars jeuclid-cli commons-cli commons-logging batik-all xmlgraphics-commons
+find_jars commons-io commons-lang jeuclid-core
+
+run_java net.sourceforge.jeuclid.app.Mml2xxx "$@"
--- jeuclid-3.1.9.orig/debian/control
+++ jeuclid-3.1.9/debian/control
@@ -0,0 +1,74 @@
+Source: jeuclid
+Section: java
+Priority: optional
+Maintainer:  Debian Science Team <debian-science-maintainers@lists.alioth.debian.org>
+Uploaders: Sylvestre Ledru <sylvestre@debian.org>, Torsten Werner <twerner@debian.org>
+Build-Depends: debhelper (>= 5), autotools-dev, cdbs, 
+ openjdk-6-jdk, ant, junit, libxmlgraphics-commons-java (>= 1.3.0), 
+ libcommons-logging-java, libbatik-java (>= 1.7), libcommons-cli-java, 
+ libcommons-lang-java, fop (>= 0.95), libcommons-io-java, 
+ libjcip-annotations-java
+Standards-Version: 3.8.4
+Homepage: http://jeuclid.sourceforge.net
+Vcs-Svn: svn://svn.debian.org/svn/debian-science/packages/jeuclib/trunk
+Vcs-Browser: http://svn.debian.org/viewsvn/debian-science/packages/jeuclid/trunk
+
+Package: libjeuclid-core-java
+Architecture: all
+Depends: java-gcj-compat | java1-runtime | java2-runtime,
+ libxmlgraphics-commons-java (>= 1.3.0), libcommons-logging-java, libbatik-java (>= 1.7), ${misc:Depends}
+Description: A complete MathML rendering solution (java classes)
+ JEuclid is a complete MathML rendering solution, consisting of:
+  * A MathViewer application
+  * Command line converters from MathML to other formats
+  * An ant task for automated conversion
+  * Display components for AWT and Swing
+  * A component for Apache Cocoon
+ .
+ This package contains the basic JEuclid rendering and document handling 
+ classes.
+
+Package: jeuclid-mathviewer
+Architecture: all
+Depends: java-gcj-compat | java1-runtime | java2-runtime,
+ libjeuclid-core-java, java-wrappers, libcommons-io-java, ${misc:Depends}
+Description: A complete MathML rendering solution (Swing MathViewer)
+ JEuclid is a complete MathML rendering solution, consisting of:
+  * A MathViewer application
+  * Command line converters from MathML to other formats
+  * An ant task for automated conversion
+  * Display components for AWT and Swing
+  * A component for Apache Cocoon
+ .
+ This package contains the Swing MathViewer application.
+
+
+Package: jeuclid-cli
+Architecture: all
+Depends: java-gcj-compat | java1-runtime | java2-runtime,
+ libjeuclid-core-java, libcommons-cli-java, libcommons-lang-java, java-wrappers,
+ ${misc:Depends}
+Description: A complete MathML rendering solution (command line tools)
+ JEuclid is a complete MathML rendering solution, consisting of:
+  * A MathViewer application
+  * Command line converters from MathML to other formats
+  * An ant task for automated conversion
+  * Display components for AWT and Swing
+  * A component for Apache Cocoon
+ .
+ This package contains the command line tools.
+ .
+
+Package: libjeuclid-fop-java
+Architecture: all
+Depends: java-gcj-compat | java1-runtime | java2-runtime,
+ libjeuclid-core-java, fop (>= 0.95), ${misc:Depends}
+Description: A complete MathML rendering solution (fop plugin)
+ JEuclid is a complete MathML rendering solution, consisting of:
+  * A MathViewer application
+  * Command line converters from MathML to other formats
+  * An ant task for automated conversion
+  * Display components for AWT and Swing
+  * A component for Apache Cocoon
+ .
+ This package contains the fop plugin.
--- jeuclid-3.1.9.orig/debian/watch
+++ jeuclid-3.1.9/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/jeuclid/jeuclid-parent-(.*)-src\.zip debian debian/orig-tar.sh
--- jeuclid-3.1.9.orig/debian/patches/MacOSX.patch
+++ jeuclid-3.1.9/debian/patches/MacOSX.patch
@@ -0,0 +1,18 @@
+--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/net/sourceforge/jeuclid/app/mathviewer/MathViewer.java	2008-06-03 12:02:46.000000000 +0200
++++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/net/sourceforge/jeuclid/app/mathviewer/MathViewer.java	2008-08-15 20:11:59.000000000 +0200
+@@ -86,13 +86,13 @@
+             public void run() {
+                 final MainFrame mainFrame = new MainFrame();
+                 mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+-                if (MathViewer.OSX) {
++/*                if (MathViewer.OSX) {
+                     final Application a = Application.getApplication();
+                     a.setEnabledAboutMenu(true);
+                     a.setEnabledPreferencesMenu(true);
+                     a.addApplicationListener(new MainFrameAppListener(
+                             mainFrame));
+-                }
++                }*/
+                 if (MathViewer.source != null) {
+                     mainFrame.loadFile(MathViewer.source);
+                 }
--- jeuclid-3.1.9.orig/debian/patches/AppleJavaExtensions.patch
+++ jeuclid-3.1.9/debian/patches/AppleJavaExtensions.patch
@@ -0,0 +1,266 @@
+--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationAdapter.java	1970-01-01 01:00:00.000000000 +0100
++++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationAdapter.java	2008-08-15 19:46:42.000000000 +0200
+@@ -0,0 +1,36 @@
++/*
++ *                 Sun Public License Notice
++ * 
++ * The contents of this file are subject to the Sun Public License
++ * Version 1.0 (the "License"). You may not use this file except in
++ * compliance with the License. A copy of the License is available at
++ * http://www.sun.com/
++ * 
++ * The Original Code is NetBeans. The Initial Developer of the Original
++ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
++ * Microsystems, Inc. All Rights Reserved.
++ */
++
++/* this is stub code written based on Apple EAWT package javadoc 
++published at
++ * http://developer.apple.com.  It makes compiling code which uses Apple 
++EAWT
++ * on non-Mac platforms possible.  The compiled stub classes should 
++never be
++ * included in the final product.
++ */
++
++package com.apple.eawt;
++
++public class ApplicationAdapter {
++    public void handleAbout(ApplicationEvent event) {}
++    public void handleOpenApplication(ApplicationEvent event) {}
++    public void handleOpenFile(ApplicationEvent event) {}
++    public void handlePreferences(ApplicationEvent event) {}
++    public void handlePrintFile(ApplicationEvent event) {}
++    public void handleQuit(ApplicationEvent event) {}
++    public void handleReOpenApplication(ApplicationEvent event) {} 
++}
++
++
++
+--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationBeanInfo.java	1970-01-01 01:00:00.000000000 +0100
++++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationBeanInfo.java	2008-08-15 19:46:42.000000000 +0200
+@@ -0,0 +1,29 @@
++/*
++ *                 Sun Public License Notice
++ * 
++ * The contents of this file are subject to the Sun Public License
++ * Version 1.0 (the "License"). You may not use this file except in
++ * compliance with the License. A copy of the License is available at
++ * http://www.sun.com/
++ * 
++ * The Original Code is NetBeans. The Initial Developer of the Original
++ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
++ * Microsystems, Inc. All Rights Reserved.
++ */
++
++/* this is stub code written based on Apple EAWT package javadoc 
++published at
++ * http://developer.apple.com.  It makes compiling code which uses Apple 
++EAWT
++ * on non-Mac platforms possible.  The compiled stub classes should 
++never be
++ * included in the final product.
++ */
++
++package com.apple.eawt;
++
++public class ApplicationBeanInfo extends java.beans.SimpleBeanInfo
++{
++    public java.awt.Image getIcon(int iconKind) { return null; }
++}
++
+--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationEvent.java	1970-01-01 01:00:00.000000000 +0100
++++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationEvent.java	2008-08-15 19:46:42.000000000 +0200
+@@ -0,0 +1,34 @@
++/*
++ *                 Sun Public License Notice
++ * 
++ * The contents of this file are subject to the Sun Public License
++ * Version 1.0 (the "License"). You may not use this file except in
++ * compliance with the License. A copy of the License is available at
++ * http://www.sun.com/
++ * 
++ * The Original Code is NetBeans. The Initial Developer of the Original
++ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
++ * Microsystems, Inc. All Rights Reserved.
++ */
++
++/* this is stub code written based on Apple EAWT package javadoc 
++published at
++ * http://developer.apple.com.  It makes compiling code which uses Apple 
++EAWT
++ * on non-Mac platforms possible.  The compiled stub classes should 
++never be
++ * included in the final product.
++ */
++
++package com.apple.eawt;
++
++public class ApplicationEvent extends java.util.EventObject implements 
++java.io.Serializable
++{
++    public ApplicationEvent(Object source) { super(source); }
++    public java.lang.String getFilename() { return null; }
++    public boolean isHandled() { return false; }
++    public void setHandled(boolean state) {}
++}
++
++
+--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/Application.java	1970-01-01 01:00:00.000000000 +0100
++++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/Application.java	2008-08-15 19:46:42.000000000 +0200
+@@ -0,0 +1,45 @@
++/*
++ *                 Sun Public License Notice
++ * 
++ * The contents of this file are subject to the Sun Public License
++ * Version 1.0 (the "License"). You may not use this file except in
++ * compliance with the License. A copy of the License is available at
++ * http://www.sun.com/
++ * 
++ * The Original Code is NetBeans. The Initial Developer of the Original
++ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
++ * Microsystems, Inc. All Rights Reserved.
++ */
++
++/* this is stub code written based on Apple EAWT package javadoc 
++published at
++ * http://developer.apple.com.  It makes compiling code which uses Apple 
++EAWT
++ * on non-Mac platforms possible.  The compiled stub classes should 
++never be
++ * included in the final product.
++ */
++
++package com.apple.eawt;
++
++public class Application
++{
++    public Application() { }
++    public void addAboutMenuItem() {}
++    public void addApplicationListener(ApplicationListener listener) {}
++    public void addPreferencesMenuItem() {}
++    public static Application getApplication() { return null; }
++    public boolean getEnabledAboutMenu() { return false; }
++    public boolean getEnabledPreferencesMenu() { return false; }
++    public static java.awt.Point getMouseLocationOnScreen() { return 
++null; }
++    public boolean isAboutMenuItemPresent() { return false; }
++    public boolean isPreferencesMenuItemPresent() { return false; }
++    public void removeAboutMenuItem() {}
++    public void removeApplicationListener(ApplicationListener listener) 
++{}
++    public void removePreferencesMenuItem() {}
++    public void setEnabledAboutMenu(boolean enable) {}
++    public void setEnabledPreferencesMenu(boolean enable) {}
++}
++
+--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationListener.java	1970-01-01 01:00:00.000000000 +0100
++++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/ApplicationListener.java	2008-08-15 19:47:48.000000000 +0200
+@@ -0,0 +1,35 @@
++/*
++ *                 Sun Public License Notice
++ * 
++ * The contents of this file are subject to the Sun Public License
++ * Version 1.0 (the "License"). You may not use this file except in
++ * compliance with the License. A copy of the License is available at
++ * http://www.sun.com/
++ * 
++ * The Original Code is NetBeans. The Initial Developer of the Original
++ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
++ * Microsystems, Inc. All Rights Reserved.
++ */
++
++/* this is stub code written based on Apple EAWT package javadoc 
++published at
++ * http://developer.apple.com.  It makes compiling code which uses Apple 
++EAWT
++ * on non-Mac platforms possible.  The compiled stub classes should 
++never be
++ * included in the final product.
++ */
++
++package com.apple.eawt;
++
++public interface ApplicationListener extends java.util.EventListener
++{
++    public void handleAbout(ApplicationEvent event);
++    public void handleOpenApplication(ApplicationEvent event);
++    public void handleOpenFile(ApplicationEvent event);
++    public void handlePreferences(ApplicationEvent event);
++    public void handlePrintFile(ApplicationEvent event);
++    public void handleQuit(ApplicationEvent event);
++    public void handleReOpenApplication(ApplicationEvent event);
++}
++
+--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/CocoaComponent.java	1970-01-01 01:00:00.000000000 +0100
++++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/CocoaComponent.java	2008-08-15 19:46:42.000000000 +0200
+@@ -0,0 +1,31 @@
++/*
++ *                 Sun Public License Notice
++ * 
++ * The contents of this file are subject to the Sun Public License
++ * Version 1.0 (the "License"). You may not use this file except in
++ * compliance with the License. A copy of the License is available at
++ * http://www.sun.com/
++ * 
++ * The Original Code is NetBeans. The Initial Developer of the Original
++ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
++ * Microsystems, Inc. All Rights Reserved.
++ */
++
++/* this is stub code written based on Apple EAWT package javadoc published at
++ * http://developer.apple.com.  It makes compiling code which uses Apple EAWT
++ * on non-Mac platforms possible.
++ */
++
++
++package com.apple.eawt;
++
++public abstract class CocoaComponent extends java.awt.Canvas
++{
++    public abstract int createNSView();
++    public long createNSViewLong() { return 0; }
++    public abstract java.awt.Dimension getMaximumSize();
++    public abstract java.awt.Dimension getMinimumSize();
++    public abstract java.awt.Dimension getPreferredSize();
++    public void sendMessage(int messageID, java.lang.Object message) {}
++}
++
+--- jeuclid-3.1.1.orig/jeuclid-mathviewer/src/main/java/com/apple/eawt/package	1970-01-01 01:00:00.000000000 +0100
++++ jeuclid-3.1.1/jeuclid-mathviewer/src/main/java/com/apple/eawt/package	2008-08-15 19:46:42.000000000 +0200
+@@ -0,0 +1,35 @@
++/*
++ *                 Sun Public License Notice
++ * 
++ * The contents of this file are subject to the Sun Public License
++ * Version 1.0 (the "License"). You may not use this file except in
++ * compliance with the License. A copy of the License is available at
++ * http://www.sun.com/
++ * 
++ * The Original Code is NetBeans. The Initial Developer of the Original
++ * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
++ * Microsystems, Inc. All Rights Reserved.
++ */
++
++/* this is stub code written based on Apple EAWT package javadoc 
++published at
++ * http://developer.apple.com.  It makes compiling code which uses Apple 
++EAWT
++ * on non-Mac platforms possible.  The compiled stub classes should 
++never be
++ * included in the final product.
++ */
++
++package com.apple.eawt;
++
++public interface ApplicationListener extends java.util.EventListener
++{
++    public void handleAbout(ApplicationEvent event);
++    public void handleOpenApplication(ApplicationEvent event);
++    public void handleOpenFile(ApplicationEvent event);
++    public void handlePreferences(ApplicationEvent event);
++    public void handlePrintFile(ApplicationEvent event);
++    public void handleQuit(ApplicationEvent event);
++    public void handleReOpenApplication(ApplicationEvent event);
++}
++
--- jeuclid-3.1.9.orig/debian/patches/jeuclid-cli-name.diff
+++ jeuclid-3.1.9/debian/patches/jeuclid-cli-name.diff
@@ -0,0 +1,21 @@
+Index: jeuclid-3.1.8/jeuclid-cli/src/main/java/net/sourceforge/jeuclid/app/Mml2xxx.java
+===================================================================
+--- jeuclid-3.1.8.orig/jeuclid-cli/src/main/java/net/sourceforge/jeuclid/app/Mml2xxx.java	2010-01-25 09:59:29.000000000 +0100
++++ jeuclid-3.1.8/jeuclid-cli/src/main/java/net/sourceforge/jeuclid/app/Mml2xxx.java	2010-01-25 09:59:48.000000000 +0100
+@@ -228,14 +228,14 @@
+         final String lineSep = hf.getNewLine();
+         hf
+                 .printHelp(
+-                        "mml2xxx <source file(s)> <target file/directory> [options]",
++                        "jeuclid-cli <source file(s)> <target file/directory> [options]",
+                         "source is the path to the source file (MathML or ODF format)"
+                                 + lineSep
+                                 + "target is the path to the target file / directory"
+                                 + lineSep
+                                 + "If multiple source files are given, target must be a directory",
+                         options,
+-                        "Example: mml2xxx a.mml a.png -backgroundColor white");
++                        "Example: jeuclid-cli a.mml a.png -backgroundColor white");
+     }
+ 
+ }