--- scilab-scimax-2.1.1.orig/debian/rules
+++ scilab-scimax-2.1.1/debian/rules
@@ -0,0 +1,42 @@
+#!/usr/bin/make -f
+# Copyright 2008 Sylvestre Ledru <sylvestre.ledru@inria.fr>
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+
+DEB_DH_MAKESHLIBS_ARGS_scilab-scimax = -n
+
+build/scilab-scimax::
+		/usr/bin/scilab -nw -f builder.sce	
+
+clean::
+		rm -fr help/*/scilab_*_help/ help/*/.list_* 
+		rm -f macros/*.bin
+
+install/scilab-scimax::
+
+		mkdir -p $(CURDIR)/debian/scilab-scimax/usr/lib/scilab-scimax/lib/
+		mkdir -p $(CURDIR)/debian/scilab-scimax/usr/lib/scilab-scimax/src/lisp/
+		cp -p src/c/libmaxima.so $(CURDIR)/debian/scilab-scimax/usr/lib/scilab-scimax/lib/
+		cp -Rp etc/ $(CURDIR)/debian/scilab-scimax/usr/lib/scilab-scimax/
+		cp -Rp loader.sce $(CURDIR)/debian/scilab-scimax/usr/lib/scilab-scimax/
+		cp -Rp demos/ $(CURDIR)/debian/scilab-scimax/usr/lib/scilab-scimax/
+		cp -Rp macros/ $(CURDIR)/debian/scilab-scimax/usr/lib/scilab-scimax/
+		cp -Rp maxima-init/ $(CURDIR)/debian/scilab-scimax/usr/lib/scilab-scimax/
+		cp -Rp src/lisp/ src/lisp/builder_lisp.sce $(CURDIR)/debian/scilab-scimax/usr/lib/scilab-scimax/src/
+		rm -rf $(CURDIR)/debian/scilab-scimax/usr/lib/scilab-scimax/macros/buildmacros.sce
+		mkdir -p $(CURDIR)/debian/scilab-scimax/usr/share/scilab/contrib/
+		cd $(CURDIR)/debian/scilab-scimax/usr/share/scilab/contrib/; \
+		rm -f scilab-scimax; \
+		ln -s ../../../lib/scilab-scimax/ scimax
+
+install/scilab-scimax-doc::
+	cd src/maxhelp && make && ./genMaxDoc.sh fr_FR && ./genMaxDoc.sh en_US
+	# Rebuild the macros since they depend on the documentation
+	/usr/bin/scilab -nw -f builder.sce      
+	mkdir -p $(CURDIR)/debian/scilab-scimax-doc/usr/lib/scilab-scimax/
+	cp -R jar/ $(CURDIR)/debian/scilab-scimax-doc/usr/lib/scilab-scimax/
+
+get-orig-source:
+	-uscan --upstream-version 0
+
--- scilab-scimax-2.1.1.orig/debian/changelog
+++ scilab-scimax-2.1.1/debian/changelog
@@ -0,0 +1,50 @@
+scilab-scimax (2.1.1-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Sylvestre Ledru <sylvestre@debian.org>  Sun, 01 Nov 2009 14:24:22 +0100
+
+scilab-scimax (2.1-2) unstable; urgency=low
+
+  * build/scilab-scimax-doc => install/scilab-scimax-doc. Should fix the
+    too long build issue (Closes: #548470)
+
+ -- Sylvestre Ledru <sylvestre@debian.org>  Tue, 06 Oct 2009 00:58:26 +0200
+
+scilab-scimax (2.1-1) unstable; urgency=low
+
+  * New upstream release
+  * actualDemoPath.diff compilerErrorOnDollar.diff removed (applied upstream)
+  * Args of ./genMaxDoc.sh changed
+  * cleanup of debian/rules
+
+ -- Sylvestre Ledru <sylvestre@debian.org>  Sat, 03 Oct 2009 19:18:56 +0200
+
+scilab-scimax (2.0.1-4) unstable; urgency=low
+
+  * Simplification of debian/rules
+  * On the load of the toolbox, provide the actual path to the demo
+  * Lintian warnings removed (*-has-useless-call-to-ldconfig)
+
+ -- Sylvestre Ledru <sylvestre@debian.org>  Mon, 28 Sep 2009 16:36:43 +0200
+
+scilab-scimax (2.0.1-3) unstable; urgency=low
+
+  * Build of the documentation is now done when only building arch dep packages
+
+ -- Sylvestre Ledru <sylvestre@debian.org>  Sat, 26 Sep 2009 13:44:22 +0200
+
+scilab-scimax (2.0.1-2) unstable; urgency=low
+
+  * Copyright file updated with two missing statements
+  * Missing build/runtime dep on maxima-share
+  * $ADD (and others) as #define are causing some issue to gcc under
+    Armel. Replaced by __ADD
+
+ -- Sylvestre Ledru <sylvestre@debian.org>  Thu, 24 Sep 2009 10:32:27 +0200
+
+scilab-scimax (2.0.1-1) unstable; urgency=low
+
+  * Initial release (Closes: #547581)
+
+ -- Sylvestre Ledru <sylvestre@debian.org>  Sat, 12 Sep 2009 01:07:51 +0200
--- scilab-scimax-2.1.1.orig/debian/control
+++ scilab-scimax-2.1.1/debian/control
@@ -0,0 +1,39 @@
+Source: scilab-scimax
+Section: math
+Priority: optional
+Maintainer: Debian Science Team <debian-science-maintainers@lists.alioth.debian.org>
+Uploaders: Sylvestre Ledru <sylvestre@debian.org>
+Build-Depends: debhelper (>= 7), cdbs, scilab (>= 5.1.1),
+ scilab-doc (>= 5.1.1), maxima, scilab-overload, bison, flex, maxima-share
+Standards-Version: 3.8.3
+Vcs-Svn: svn://svn.debian.org/svn/debian-science/packages/scilab-toolboxes/scimax/trunk
+Vcs-Browser: http://svn.debian.org/viewsvn/debian-science/packages/scilab-toolboxes/scimax/trunk
+Homepage: http://scilabtbxset.sourceforge.net/
+
+Package: scilab-scimax-doc
+Section: doc
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, scilab (>= 5.1.1),
+ scilab-scimax
+Description: Symbolic computations for Scilab based on Maxima - Documentation
+ This toolbox is providing symbolic capabilities with the Scilab languages.
+ .
+ It is based on Maxima which is a fully symbolic computation program.
+ It is full featured doing symbolic manipulation of polynomials, matrices,
+ rational functions, integration, Todd-coxeter methods for finite group
+ analysis, graphing, multiple precision floating point computation.
+ .
+ This package contains scimax's documentation.
+
+Package: scilab-scimax
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, scilab (>= 5.1.1),
+ scilab-overload, maxima, maxima-share
+Recommends: scilab-scimax-doc
+Description: Symbolic computations for Scilab based on Maxima
+ This toolbox is providing symbolic capabilities with the Scilab languages.
+ .
+ It is based on Maxima which is a fully symbolic computation program.  
+ It is full featured doing symbolic manipulation of polynomials, matrices, 
+ rational functions, integration, Todd-coxeter methods for finite group
+ analysis, graphing, multiple precision floating point computation.
--- scilab-scimax-2.1.1.orig/debian/docs
+++ scilab-scimax-2.1.1/debian/docs
@@ -0,0 +1 @@
+README
--- scilab-scimax-2.1.1.orig/debian/orig-tar.sh
+++ scilab-scimax-2.1.1/debian/orig-tar.sh
@@ -0,0 +1,22 @@
+#!/bin/sh -e
+
+# called by uscan with '--upstream-version' <version> <file>
+DIRORIG=SciMax_Toolbox
+DIRTARGET=scilab-scimax-$2
+TAR=../scilab-scimax_$2.orig.tar.gz
+
+# clean up the upstream tarball
+tar zxvf $3
+rm $3
+mv $DIRORIG $DIRTARGET
+tar -c -z -f $TAR -X debian/orig-tar.exclude $DIRTARGET
+rm -rf $DIRTARGET
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+    . .svn/deb-layout
+    mv $TAR $origDir
+    echo "moved $TAR to $origDir"
+fi
+
+exit 0
--- scilab-scimax-2.1.1.orig/debian/copyright
+++ scilab-scimax-2.1.1/debian/copyright
@@ -0,0 +1,92 @@
+This package was debianized by Sylvestre Ledru <sylvestre@debian.org> on
+Tue, 15 May 2007 17:58:27 +0800.
+
+It was downloaded from <http://sourceforge.net/projects/scilabtbxset/>
+
+Upstream Author: 
+
+    Calixte Denizet <calixte.denizet@ac-rennes.fr>
+
+Copyright: 
+
+    <Copyright (C) 2009 Calixte Denizet>
+
+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 3 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 program.  If not, see <http://www.gnu.org/licenses/>.
+
+The full text of the GPL can be found in `/usr/share/common-licenses/GPL-3'.
+
+
+File: ./src/maxhelp/texi_yy.tab.c
+
+Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+   Free Software Foundation, Inc.
+
+
+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 3 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 program.  If not, see <http://www.gnu.org/licenses/>.  */
+
+/* As a special exception, you may create a larger work that contains
+   part or all of the Bison parser skeleton and distribute that work
+   under terms of your choice, so long as that work isn't itself a
+   parser generator using the skeleton or a modified version thereof
+   as a parser skeleton.  Alternatively, if you modify or redistribute
+   the parser skeleton itself, you may (at your option) remove this
+   special exception, which will cause the skeleton and the resulting
+   Bison output files to be licensed under the GNU General Public
+   License without this special exception.
+   
+   This special exception was added by the Free Software Foundation in
+   version 2.2 of Bison.  */
+
+/* C LALR(1) parser skeleton written by Richard Stallman, by
+   simplifying the original so-called "semantic" parser.  */
+
+File: src/sci_mygateway.c src/sci_mygateway.h
+
+Copyright: (C) 2009 - DIGITEO - Sylvestre LEDRU
+
+License: CeCILL
+ This file must be used under the terms of the CeCILL.
+ This source file is licensed as described in the file COPYING, which
+ you should have received as part of this distribution.  The terms
+ are also available at
+ http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+
+
+File: src/maxhelp/maxima-5.13.0-doc/maxima.texi
+
+Copyright: 1994,2001 William F. Schelter
+
+License: GPL
+
+
+File: help/buildhelp.sci
+
+Copyright: INRIA 2008
+
+License: Public domain
\ No newline at end of file
--- scilab-scimax-2.1.1.orig/debian/watch
+++ scilab-scimax-2.1.1/debian/watch
@@ -0,0 +1,3 @@
+version=3
+http://sf.net/scilabtbxset/SciMax_Toolbox_(\d+[0-9\-\.r]+)\.tar\.gz \
+  debian debian/orig-tar.sh
--- scilab-scimax-2.1.1.orig/debian/compat
+++ scilab-scimax-2.1.1/debian/compat
@@ -0,0 +1 @@
+5
--- scilab-scimax-2.1.1.orig/debian/orig-tar.exclude
+++ scilab-scimax-2.1.1/debian/orig-tar.exclude
@@ -0,0 +1,4 @@
+*.so
+*.jar
+*.dll
+*.jnilib
--- scilab-scimax-2.1.1.orig/debian/patches/PathToOverload.diff
+++ scilab-scimax-2.1.1/debian/patches/PathToOverload.diff
@@ -0,0 +1,28 @@
+--- SciMax_Toolbox.orig/builder.sce	2009-08-25 17:07:27.000000000 +0200
++++ SciMax_Toolbox/builder.sce	2009-09-12 19:07:52.000000000 +0200
+@@ -10,7 +10,7 @@
+ toolbox_dir = get_absolute_file_path('builder.sce');
+ 
+ // By default, %otb_path is set to '../Overload_Toolbox/'
+-%otb_path='../Overload_Toolbox'
++%otb_path='/usr/share/scilab/contrib/overload/'
+ 
+ %otb_loader='/'+%otb_path+'/'+'loader.sce';
+ if fileinfo(toolbox_dir+%otb_loader)~=[] then
+@@ -54,3 +54,5 @@
+ clear toolbox_dir TOOLBOX_NAME TOOLBOX_TITLE %otb_path fd %lisp_error;
+ 
+ // ====================================================================
++exit();
++
+--- SciMax_Toolbox.orig/etc/SciMax.start	2009-08-25 21:55:55.000000000 +0200
++++ SciMax_Toolbox/etc/SciMax.start	2009-09-12 20:01:42.000000000 +0200
+@@ -42,7 +42,7 @@
+   abort
+ end
+ 
+-addinter(mpath+'src/c/libmaxima.so','libmaxima',functions)
++addinter(mpath+'lib/libmaxima.so','libmaxima',functions)
+ 
+ //La ligne suivante permet que le passage des parametres se fasse par reference
+ //plutot que par valeur
