debian/0000755000000000000000000000000012146631366007176 5ustar debian/examples0000644000000000000000000000001312146631045010723 0ustar examples/* debian/control0000644000000000000000000000147512146631045010602 0ustar Source: mathpiper Section: java Priority: extra Maintainer: Debian Java Maintainers Uploaders: Giovanni Mascellani Build-Depends: debhelper (>= 7.0.50~), javahelper, default-jdk, libjfreechart-java, libjdom1-java, libjas-java, libjlatexmath-java Standards-Version: 3.9.4 Homepage: http://www.mathpiper.org/ Vcs-Git: git://anonscm.debian.org/pkg-java/mathpiper.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-java/mathpiper.git Package: mathpiper Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, ${java:Depends} Description: Java Computer Algebra System Mathpiper is a CAS (Computer Algebra System), written in Java. It is part of the mathrider suite, a mathematics computing environment for performing numeric and symbolic computations. debian/javabuild0000644000000000000000000000002312146631045011047 0ustar mathpiper.jar src/ debian/README.Debian0000644000000000000000000000111212146631045011224 0ustar README.Debian for package mathpiper ----------------------------------- This Debian version of Mathpiper lacks two classes, that are disabled for technical reason: * ParseRubiFiles.java: it requires the Matheclipse library, which is not in Debian. This class will be re-enabled as soon as someone will package Matheclipse in Debian; * ViewGeoGebra.java: it requires the GeoGebra classes, but in Debian Mathpiper is used to build GeoGebra. Since I don't want circular dependencies, the GeoGebra support in Mathpiper is disabled. -- Giovanni Mascellani debian/changelog0000644000000000000000000000377212146631045011053 0ustar mathpiper (0.81f+svn4469+dfsg3-3) unstable; urgency=low * Upload to unstable. * Fix some lintian warnings. + Bump Standards-Version to 3.9.4 (no changes required). * Cosmetic changes to debian/copyright. -- Giovanni Mascellani Tue, 21 May 2013 10:33:14 +0200 mathpiper (0.81f+svn4469+dfsg3-2) experimental; urgency=low * Fix upstream URL (closes: #698899). -- Giovanni Mascellani Mon, 11 Mar 2013 21:53:32 +0100 mathpiper (0.81f+svn4469+dfsg3-1) unstable; urgency=low * Add Lisp scripts from mpreduce, needed to execute Reduce algorithms. * Do not compile Javadoc, which is discarded anyway. -- Giovanni Mascellani Sat, 03 Mar 2012 00:21:04 +0100 mathpiper (0.81f+svn4469+dfsg2-1) unstable; urgency=low * Add mpreduce code. -- Giovanni Mascellani Fri, 16 Dec 2011 15:09:23 +0100 mathpiper (0.81f+dfsg1-1) unstable; urgency=low * New upstream version, from SVN revision 4053. * Remove watch file, which is not reliable. * Use javahelper to build the library instead of relying on its build.xml script. * Switch from CDBS to debhelper 7. * Switch to source package format 3.0 (quilt). -- Giovanni Mascellani Wed, 23 Nov 2011 08:54:20 +0100 mathpiper (0.0.svn2556-3) unstable; urgency=low * Add real watch file. * Update my email address. * Bump Standards-Version to 3.9.2 (no changes required). * Drop dependency on JRE, which is not mandated anymore. * Fix JAVA_HOME variable in debian/rules (closes: #643538). -- Giovanni Mascellani Sun, 09 Oct 2011 18:05:50 +0200 mathpiper (0.0.svn2556-2) unstable; urgency=low * debian/copyright: added missing files * debian/watch: placeholder added -- Giovanni Mascellani Wed, 11 Nov 2009 00:04:00 +0100 mathpiper (0.0.svn2556-1) unstable; urgency=low * Initial release (Closes: #549975) -- Giovanni Mascellani Sat, 31 Oct 2009 12:16:54 +0100 debian/rules0000755000000000000000000000140212146631045010245 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export JAVA_HOME=/usr/lib/jvm/default-java export CLASSPATH=/usr/share/java/jdom1.jar:/usr/share/java/jas.jar:/usr/share/java/jfreechart.jar:/usr/share/java/jlatexmath.jar %: dh $@ --with javahelper # Avoid the default build.xml and its ant dependency override_dh_auto_build: true override_dh_auto_clean: rm -f reduceimg.log default.img override_jh_build: jh_build -N # Compile the Lisp scripts and put them into the JAR CLASSPATH=$$CLASSPATH:./mathpiper.jar java -Xmx300M -Xms300M -Xss8M org.mathpiper.mpreduce.Jlisp -w -v -z -o default.img lib/build_scripts/buildreduce.lsp -D@srcdir=lib/build_scripts -- reduceimg.log jar uf mathpiper.jar default.img debian/copyright0000644000000000000000000001771412146631045011135 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Mathpiper Source: http://code.google.com/p/mathpiper/ Files: * Copyright: 2008-2011 Ted Kosan 2008-2011, Sherm Ostrowsky 1998-2009, Ayal Pinkus License: GPL-2+ Files: src/org/mathpiper/ui/gui/controlpanel/HaltButton.java src/org/mathpiper/ui/gui/MultiSplitLayout.java src/org/mathpiper/ui/gui/MultiSplitPane.java Copyright: 2004, Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. License: LGPL-2.1+ This library 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 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 LGPL-2.1 license text can be found in: /usr/share/common-licenses/LGPL-2.1 Files: src/org/mathpiper/ui/gui/hoteqn/* Copyright: 2006, Stefan Müller 2006, Christian Schmid License: GPL HotEqn 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; HotEqn 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 program. If not, see . Files: src/org/mathpiper/mpreduce/* lib/build_scripts/* src/packages/* Copyright: 1998-2011, Codemist Ltd. 1998-2011, A. C. Norman 2002, Vijay Chauhan 2011, Ted Kosan 1987-1996, The RAND Corporation 1987-2005, Anthony C. Hearn 2008-2010, Thomas Sturm 1996, Neil Langmead 1988, David Harper 1990-1997, Zuse-Institut Berlin (ZIB) 1997, Wolfram Koepf 1997, Harald Boeing 1987, James W Eastwood 1987-1995, Stanley L. Kameny 1988-1990, Institute of Nuclear Physics, Moscow State University 1990-1992, Mathias Warns 1990-1996, A. Kryukov 1989-2010, Rainer M. Schoepf 1999-2009, Andreas Dolzmann 2003-2009, Lorenz Gilch 2002-2009, A. Seidl J.A. van Hulzen Alexey Yu. Zharkov Yuri A. Blinkov License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the relevant copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Comment: Portions attributed to the RAND Corporation do not carry an explicit license notice. Anyway, they come from the Reduce project, which is now wholly available under the reported license (see http://www.reduce-algebra.com/license.htm). I believe it is safe to consider such code snippets under the same license. Files: src/org/mathpiper/builtin/javareflection/JavaField.java src/org/mathpiper/builtin/javareflection/JavaMethod.java src/org/mathpiper/builtin/javareflection/JavaConstructor.java src/org/mathpiper/builtin/javareflection/StaticReflector.java src/org/mathpiper/builtin/javareflection/Invoke.java src/org/mathpiper/builtin/javareflection/Import.java Copyright: 1998, Peter Norvig 2000, Ken R. Anderson License: JScheme This system is licensed under the following zlib/libpng open-source license. . This software is provided 'as-is', without any express or implied warranty. . In no event will the authors be held liable for any damages arising from the use of this software. . Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: . 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. . 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. . 3. This notice may not be removed or altered from any source distribution. Comment: These files come from the JScheme project. Their license is not specified in Mathpiper, but I consider safe to assume the JScheme license is valid here. Files: src/org/mathpiper/builtin/library/cern/* Copyright: © 1999, CERN - European Organization for Nuclear Research License: CERN Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. CERN makes no representations about the suitability of this software for any purpose. It is provided "as is" without expressed or implied warranty. Files: src/org/mathpiper/builtin/library/jscistats/SpecialMath.java Copyright: © 1993, Sun Microsystems, Inc. License: SUN Permission to use, copy, modify, and distribute this software is freely granted, provided that this notice is preserved. Files: src/org/mathpiper/builtin/library/statdistlib/* Copyright: 1995-1998, Ross Ihaka 1995-1996, Robert Gentleman 1998, R Core Team Mark Hale Jaco van Kooten License: GPL-2+ Files: debian/* Copyright: 2009-2013, Giovanni Mascellani License: GPL-2+ License: GPL-2+ 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 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 program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the GPL-2 license text can be found in: /usr/share/common-licenses/GPL-2 debian/README.source0000644000000000000000000000246612146631045011357 0ustar mathpiper for Debian -------------------- The upstream source tarball is obtained by the script get_orig_source.sh by exporing a copy of the SVN tag corresponding to the desired version and then: * Deleting the misc/ directory, which are not necessary for the Debian package; * Deleting a few embedded copies of other pieces of software, documented below; * Deleting a few script files distributed under the non-DFSG-free license "CCL Public License". QUILT This package uses quilt to manage all modifications to the upstream source. Changes are stored in the source package as diffs in debian/patches and applied during the build. Please see: /usr/share/doc/quilt/README.source for more information on how to apply the patches, modify patches, or remove a patch. EMBEDDED SOFTWARE The following pieces of software are present in the upstream distribution of Mathpiper, but are not included in the Debian package: * The JAS (Java Algebra System) library, that is already included in Debian; * The Apache Log4J library, that is already included in Debian; * The Matheclipse library, whose use is disabled in the Debian build of Mathpiper; * The JLaTeXMath library, that is already included in Debian; * The JMathTeX library, that is already included in Debian (and is not used anyway). debian/gbp.conf0000644000000000000000000000017012146631045010605 0ustar [DEFAULT] cleaner = fakeroot debian/rules clean upstream-branch = upstream debian-branch = master pristine-tar = True debian/compat0000644000000000000000000000000212146631045010366 0ustar 7 debian/get_orig_source.sh0000755000000000000000000000516212146631045012712 0ustar #!/bin/bash # Input: # $VERSION - the upstream version of the generated tarball # $REVISION (optional) - export a specific revision of the SVN repository # $ONLYFILTER - if not null, don't download the tarball from the SVN; just re-filter its content DESTDIR="../tarballs/mathpiper-$VERSION" DESTTGZ="../tarballs/mathpiper_$VERSION.orig.tar.gz" if [ "x$ONLYFILTER" == "x" ] ; then # Downloads code from SVN repository test -d ../tarballs/. || mkdir -p ../tarballs if [ "x$REVISION" == "x" ] ; then svn export "http://mathpiper.googlecode.com/svn/trunk/src/library_apps/mathpiper" "$DESTDIR" svn export "http://mathpiper.googlecode.com/svn/trunk/src/library_apps/mpreduce/src/java/org/mathpiper/mpreduce" "$DESTDIR/src/org/mathpiper/mpreduce" svn export "http://mathpiper.googlecode.com/svn/trunk/src/library_apps/mpreduce/src/packages" "$DESTDIR/src/packages" mkdir "$DESTDIR/lib" svn export "http://mathpiper.googlecode.com/svn/trunk/src/library_apps/mpreduce/lib/build_scripts" "$DESTDIR/lib/build_scripts" else svn export -r "$REVISION" "http://mathpiper.googlecode.com/svn/trunk/src/library_apps/mathpiper" "$DESTDIR" svn export -r "$REVISION" "http://mathpiper.googlecode.com/svn/trunk/src/library_apps/mpreduce/src/java/org/mathpiper/mpreduce" "$DESTDIR/src/org/mathpiper/mpreduce" svn export -r "$REVISION" "http://mathpiper.googlecode.com/svn/trunk/src/library_apps/mpreduce/src/packages" "$DESTDIR/src/packages" mkdir "$DESTDIR/lib" svn export -r "$REVISION" "http://mathpiper.googlecode.com/svn/trunk/src/library_apps/mpreduce/lib/build_scripts" "$DESTDIR/lib/build_scripts" fi else # Uncompress the previous tarball tar xzfv "$DESTTGZ" -C `dirname "$DESTDIR"` fi # Removes embedded copies of other software rm -vfr "$DESTDIR/src/org/mathpiper/ui/gui/jmathtex" rm -vfr "$DESTDIR/src/org/apache" rm -vfr "$DESTDIR/src/org/matheclipse" rm -vfr "$DESTDIR/src/org/scilab" rm -vfr "$DESTDIR/src/edu" # Remove other unecessary files rm -vfr "$DESTDIR/misc" rm -vf "$DESTDIR/src/org/mathpiper/test/matheclipse/ParseRubiFiles.java" rm -vf "$DESTDIR/src/org/mathpiper/builtin/functions/optional/ViewGeoGebra.java" # Remove other files with problematic licenses rm -f "$DESTDIR/lib/build_scripts/buildcsl.lsp" rm -f "$DESTDIR/lib/build_scripts/ccomp.lsp" rm -f "$DESTDIR/lib/build_scripts/mkbytes.red" rm -f "$DESTDIR/lib/build_scripts/opcodes.red" # Removes all upstream JARs, DLLs, SOs and JNILIBs for ext in jar dll so jnilib ; do find "$DESTDIR" -iname '*'."$ext" -print0 | xargs -0 rm -vf done # Builds tarball tar czfv "$DESTTGZ" -C `dirname "$DESTDIR"` `basename "$DESTDIR"` # Deletes snapshot and temporary dir rm -fr "$DESTDIR" debian/patches/0000755000000000000000000000000012146631045010617 5ustar debian/patches/series0000644000000000000000000000001512146631045012030 0ustar variableList debian/patches/variableList0000644000000000000000000000656612146631045013200 0ustar From: Giovanni Mascellani Subject: Fix an out-of-date API from JAS Last-Update: 2011-11-23 Forwarded: no The variableList static method in the JAS library was moved from StringUtil to the GenPolynomialTokenizer class. Here we acknowledge this change. Index: mathpiper/src/org/mathpiper/builtin/library/jas/JFactorsPolyInt.java =================================================================== --- mathpiper.orig/src/org/mathpiper/builtin/library/jas/JFactorsPolyInt.java 2011-11-23 08:53:56.000000000 +0100 +++ mathpiper/src/org/mathpiper/builtin/library/jas/JFactorsPolyInt.java 2011-11-23 08:57:29.000000000 +0100 @@ -19,7 +19,6 @@ import edu.jas.poly.GenPolynomial; import edu.jas.poly.GenPolynomialRing; import edu.jas.poly.TermOrder; -import edu.jas.util.StringUtil; //------------------------------------------------------------------------ Index: mathpiper/src/org/mathpiper/builtin/library/jas/JasAccess.java =================================================================== --- mathpiper.orig/src/org/mathpiper/builtin/library/jas/JasAccess.java 2011-11-23 08:53:56.000000000 +0100 +++ mathpiper/src/org/mathpiper/builtin/library/jas/JasAccess.java 2011-11-23 08:57:05.000000000 +0100 @@ -20,7 +20,7 @@ import edu.jas.poly.GenPolynomial; import edu.jas.poly.GenPolynomialRing; import edu.jas.poly.TermOrder; -import edu.jas.util.StringUtil; +import edu.jas.poly.GenPolynomialTokenizer; //----------------------------------------------- public class JasAccess { @@ -49,7 +49,7 @@ } // convert string of variable names to array of strings as required - String[] jvars = StringUtil.variableList(vars); + String[] jvars = GenPolynomialTokenizer.variableList(vars); int nvars = jvars.length; if (debug) { System.out.print("\n number of variables: "); Index: mathpiper/src/org/mathpiper/builtin/library/jas/JasAccess2.java =================================================================== --- mathpiper.orig/src/org/mathpiper/builtin/library/jas/JasAccess2.java 2011-11-23 08:53:56.000000000 +0100 +++ mathpiper/src/org/mathpiper/builtin/library/jas/JasAccess2.java 2011-11-23 08:57:05.000000000 +0100 @@ -21,7 +21,7 @@ import edu.jas.poly.GenPolynomial; import edu.jas.poly.GenPolynomialRing; import edu.jas.poly.TermOrder; -import edu.jas.util.StringUtil; +import edu.jas.poly.GenPolynomialTokenizer; //----------------------------------------------- public class JasAccess2 { @@ -52,7 +52,7 @@ } // convert string of variable names to array of strings as required - String[] jvars = StringUtil.variableList(vars); + String[] jvars = GenPolynomialTokenizer.variableList(vars); int nvars = jvars.length; if (debug) { System.out.print("\n number of variables: "); Index: mathpiper/src/org/mathpiper/builtin/library/jas/JasPolynomial.java =================================================================== --- mathpiper.orig/src/org/mathpiper/builtin/library/jas/JasPolynomial.java 2011-11-23 08:53:56.000000000 +0100 +++ mathpiper/src/org/mathpiper/builtin/library/jas/JasPolynomial.java 2011-11-23 08:57:22.000000000 +0100 @@ -23,7 +23,6 @@ import edu.jas.poly.GenPolynomial; import edu.jas.poly.GenPolynomialRing; import edu.jas.poly.TermOrder; -import edu.jas.util.StringUtil; //------------------------------------------------------------------------ debian/jlibs0000644000000000000000000000001612146631045010213 0ustar mathpiper.jar debian/source/0000755000000000000000000000000012146631045010470 5ustar debian/source/format0000644000000000000000000000001412146631045011676 0ustar 3.0 (quilt)