summaryrefslogtreecommitdiff
path: root/math/scilab/files
diff options
context:
space:
mode:
Diffstat (limited to 'math/scilab/files')
-rw-r--r--math/scilab/files/extra-patch-NOPORTDOCS28
-rw-r--r--math/scilab/files/extra-patch-bin-JAVA_HOME20
-rw-r--r--math/scilab/files/patch-Makefile.in46
-rw-r--r--math/scilab/files/patch-build.incl.xml10
-rw-r--r--math/scilab/files/patch-clang19
-rw-r--r--math/scilab/files/patch-configure56
-rw-r--r--math/scilab/files/patch-desktop-scilab-adv-cli.desktop11
-rw-r--r--math/scilab/files/patch-etc-librarypath.xml58
-rw-r--r--math/scilab/files/patch-modules-atoms-macros-atoms_gui-atomsGui.sci11
-rw-r--r--math/scilab/files/patch-modules-atoms-macros-atoms_internals-atomsAUWriteAccess.sci32
-rw-r--r--math/scilab/files/patch-modules-atoms-macros-atoms_internals-atomsDownload.sci84
-rw-r--r--math/scilab/files/patch-modules-dynamic_link-macros-ilib_gen_Make_unix.sci38
-rw-r--r--math/scilab/files/patch-modules__arnoldi__Makefile.in11
-rw-r--r--math/scilab/files/patch-modules__core__src__c__stack2.c105
-rw-r--r--math/scilab/files/patch-modules__xcos__src__java__org__scilab__modules__xcos__Xcos.java11
-rw-r--r--math/scilab/files/patch-xdg-open28
16 files changed, 142 insertions, 426 deletions
diff --git a/math/scilab/files/extra-patch-NOPORTDOCS b/math/scilab/files/extra-patch-NOPORTDOCS
deleted file mode 100644
index 771d98b6c116..000000000000
--- a/math/scilab/files/extra-patch-NOPORTDOCS
+++ /dev/null
@@ -1,28 +0,0 @@
---- Makefile.in.orig 2010-12-16 22:07:06.000000000 -0800
-+++ Makefile.in 2010-12-16 22:07:26.000000000 -0800
-@@ -618,24 +618,7 @@
- $(top_builddir)/Version.incl
-
- infofilesdir = $(pkgdatadir)/
--infofiles_DATA = $(top_srcdir)/CHANGES_2.X \
--$(top_srcdir)/CHANGES_3.X \
--$(top_srcdir)/CHANGES_4.X \
--$(top_srcdir)/CHANGES_5.0.X \
--$(top_srcdir)/CHANGES_5.1.X \
--$(top_srcdir)/CHANGES_5.2.X \
--$(top_srcdir)/CHANGES_5.3.X \
--$(top_srcdir)/ACKNOWLEDGEMENTS \
--$(top_srcdir)/COPYING \
--$(top_srcdir)/COPYING-BSD \
--$(top_srcdir)/COPYING-FR \
--$(top_srcdir)/README_Unix \
--$(top_srcdir)/RELEASE_NOTES_5.0.X \
--$(top_srcdir)/RELEASE_NOTES_5.1.X \
--$(top_srcdir)/RELEASE_NOTES_5.2.X \
--$(top_srcdir)/RELEASE_NOTES_5.3.X \
--$(top_srcdir)/Readme_Visual.txt \
--$(top_srcdir)/README_Windows.txt
-+infofiles_DATA =
-
- iconsdir = $(pkgdatadir)/icons/
- icons_DATA = $(top_srcdir)/icons/scilab.xpm \
diff --git a/math/scilab/files/extra-patch-bin-JAVA_HOME b/math/scilab/files/extra-patch-bin-JAVA_HOME
index 9570707d7e30..e8c5c6783844 100644
--- a/math/scilab/files/extra-patch-bin-JAVA_HOME
+++ b/math/scilab/files/extra-patch-bin-JAVA_HOME
@@ -8,23 +8,3 @@
#
# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
# Copyright (C) INRIA - 2006-2008 - Sylvestre Ledru
---- bin/scilab-adv-cli.orig 2010-09-01 19:31:28.000000000 -0700
-+++ bin/scilab-adv-cli 2010-09-01 19:32:46.000000000 -0700
-@@ -1,4 +1,7 @@
- #!/bin/sh
-+
-+export JAVA_HOME=%%JAVA_HOME%%
-+
- #
- # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- # Copyright (C) INRIA - 2006-2008 - Sylvestre Ledru
---- bin/scilab-cli.orig 2010-09-01 19:31:34.000000000 -0700
-+++ bin/scilab-cli 2010-09-01 19:32:57.000000000 -0700
-@@ -1,4 +1,7 @@
- #!/bin/sh
-+
-+export JAVA_HOME=%%JAVA_HOME%%
-+
- #
- # Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
- # Copyright (C) INRIA - 2006-2008 - Sylvestre Ledru
diff --git a/math/scilab/files/patch-Makefile.in b/math/scilab/files/patch-Makefile.in
new file mode 100644
index 000000000000..571aa45e32f1
--- /dev/null
+++ b/math/scilab/files/patch-Makefile.in
@@ -0,0 +1,46 @@
+--- Makefile.in.orig 2014-07-23 08:16:45.372563695 +0000
++++ Makefile.in 2014-07-23 09:22:04.067294214 +0000
+@@ -108,6 +108,7 @@
+ @IS_MACOSX_TRUE@am__append_2 = -framework Cocoa
+ @NEED_JAVA_TRUE@am__append_3 = \
+ @NEED_JAVA_TRUE@ $(top_builddir)/modules/console/libsciconsole.la \
++@NEED_JAVA_TRUE@ $(top_builddir)/modules/console/libsciconsole-minimal.la \
+ @NEED_JAVA_TRUE@ $(top_builddir)/modules/jvm/libscijvm.la \
+ @NEED_JAVA_TRUE@ $(top_builddir)/modules/commons/libscicommons.la
+
+@@ -827,12 +828,22 @@
+ scilab_bin_LDADD = $(top_builddir)/modules/libscilab.la \
+ $(top_builddir)/modules/libscilab-cli.la $(OPENMPI_LIBS) \
+ $(XML_LIBS) $(COMMON_LIBS) $(FLIBS) $(am__append_3) \
+- $(am__append_4) $(am__append_11)
++ $(am__append_4) $(am__append_11) \
++ $(top_builddir)/modules/history_manager/libscihistory_manager.la \
++ $(top_builddir)/modules/ui_data/libsciui_data-disable.la \
++ $(top_builddir)/modules/hdf5/libscihdf5.la \
++ $(top_builddir)/modules/functions/libscifunctions.la \
++ $(top_builddir)/modules/history_browser/libscihistory_browser-disable.la
+ scilab_cli_bin_LDADD = $(top_builddir)/modules/libscilab-cli.la \
+ $(top_builddir)/modules/console/libsciconsole-minimal.la \
+ $(top_builddir)/modules/jvm/libscijvm-disable.la \
+ $(OPENMPI_LIBS) $(XML_LIBS) $(COMMON_LIBS) $(FLIBS) \
+- $(am__append_12)
++ $(am__append_12) \
++ $(top_builddir)/modules/history_manager/libscihistory_manager.la \
++ $(top_builddir)/modules/ui_data/libsciui_data-disable.la \
++ $(top_builddir)/modules/hdf5/libscihdf5.la \
++ $(top_builddir)/modules/functions/libscifunctions.la \
++ $(top_builddir)/modules/history_browser/libscihistory_browser-disable.la
+ LANG_DOMAIN = scilab
+ TARGETS_ALL = macros $(am__append_13) $(am__append_14)
+
+@@ -2355,8 +2366,8 @@
+ @BUILD_HELP_TRUE@ done; \
+ @BUILD_HELP_TRUE@ fi
+ # Also install scirenderer.jar
+-@EXTERNAL_SCIRENDERER_FALSE@ $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$(PATHTOSCIRENDERER)
+-@EXTERNAL_SCIRENDERER_FALSE@ $(INSTALL_DATA) $(top_builddir)/$(PATHTOSCIRENDERER)/$(SCIRENDERERJAR) $(DESTDIR)$(pkgdatadir)/$(PATHTOSCIRENDERER)/
++@BUILD_HELP_TRUE@@EXTERNAL_SCIRENDERER_FALSE@ $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/$(PATHTOSCIRENDERER)
++@BUILD_HELP_TRUE@@EXTERNAL_SCIRENDERER_FALSE@ $(INSTALL_DATA) $(top_builddir)/$(PATHTOSCIRENDERER)/$(SCIRENDERERJAR) $(DESTDIR)$(pkgdatadir)/$(PATHTOSCIRENDERER)/
+
+ .PHONY: macros localization doc
+
diff --git a/math/scilab/files/patch-build.incl.xml b/math/scilab/files/patch-build.incl.xml
deleted file mode 100644
index 6d9da1beb832..000000000000
--- a/math/scilab/files/patch-build.incl.xml
+++ /dev/null
@@ -1,10 +0,0 @@
---- build.incl.xml.orig 2011-05-16 01:28:42.000000000 -0700
-+++ build.incl.xml 2011-05-16 01:29:23.000000000 -0700
-@@ -85,6 +85,7 @@
- <pathelement location="${saxon.jar}"/>
- <pathelement location="${fop.jar}"/>
- <pathelement location="${jlatexmath-fop.jar}"/>
-+ <pathelement location="${xmlgraphics-commons.jar}"/>
- <pathelement location="${avalon-framework.jar}"/>
- <pathelement location="${avalon-framework-impl.jar}"/>
- <pathelement location="${jeuclid-core.jar}"/>
diff --git a/math/scilab/files/patch-clang b/math/scilab/files/patch-clang
new file mode 100644
index 000000000000..d479512a40f4
--- /dev/null
+++ b/math/scilab/files/patch-clang
@@ -0,0 +1,19 @@
+--- modules/core/includes/core_math.h.orig 2014-04-11 09:51:38.000000000 +0000
++++ modules/core/includes/core_math.h 2014-07-23 08:27:27.143519955 +0000
+@@ -53,11 +53,11 @@
+ #define DEG2RAD(x) ((x) * PI_OVER_180 )
+ #define RAD2DEG(x) ((x) * _180_OVER_PI )
+
+-#ifdef round
+-#undef round
+-#endif
+-
+-#define round(a) (int)(((a)<0.0)?(a)-.5:(a)+.5)
++// #ifdef round
++// #undef round
++// #endif
++//
++// #define round(a) (int)(((a)<0.0)?(a)-.5:(a)+.5)
+ #define EPSILON 1.0e-13
+
+
diff --git a/math/scilab/files/patch-configure b/math/scilab/files/patch-configure
deleted file mode 100644
index d057db61a5e7..000000000000
--- a/math/scilab/files/patch-configure
+++ /dev/null
@@ -1,56 +0,0 @@
---- ./configure.orig 2011-07-20 08:15:42.000000000 +0000
-+++ ./configure 2013-10-23 11:59:48.722499060 +0000
-@@ -10719,7 +10719,7 @@
- ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -ljvm"
- D=$ac_java_jvm_dir/jre/lib/$machine/native_threads
- ac_java_jvm_jni_lib_runtime_path="${ac_java_jvm_jni_lib_runtime_path}:$D"
-- ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -lhpi"
-+ ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -ljvm"
- fi
- fi
-
-@@ -10850,7 +10850,7 @@
- ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -ljvm"
- D=$ac_java_jvm_dir/jre/lib/mipsel/native_threads
- ac_java_jvm_jni_lib_runtime_path="${ac_java_jvm_jni_lib_runtime_path}:$D"
-- ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -lhpi"
-+ ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -ljvm"
- fi
- fi
-
-@@ -12226,14 +12226,15 @@
-
- public class conftest {
- public static void main(String[] argv) {
-- String minVersion="1.8.4";
-+ int minVersion=10804;
- int[] vers = new int[3];
- try { H5.H5get_libversion(vers); }
- catch (Throwable ex) {System.exit(-1);}
- String ver = vers[0] + "."+ vers[1] +"."+vers[2];
-+ int Version = 10000*vers[0] + 100*vers[1] + vers[2];
-
- System.out.println(ver);
-- if (minVersion.compareTo(ver) > 0) {
-+ if (minVersion > Version) {
- System.exit(-1);
- }
-
-@@ -12281,14 +12281,15 @@
-
- public class conftest {
- public static void main(String[] argv) {
-- String minVersion="1.8.4";
-+ int minVersion=10804;
- int[] vers = new int[3];
- try { H5.H5get_libversion(vers); }
- catch (Throwable ex) {System.exit(-1);}
- String ver = vers[0] + "."+ vers[1] +"."+vers[2];
-+ int Version = 10000*vers[0] + 100*vers[1] + vers[2];
-
- System.out.println(ver);
-- if (minVersion.compareTo(ver) != 0) {
-+ if (minVersion > Version) {
- System.exit(-1);
- }
-
diff --git a/math/scilab/files/patch-desktop-scilab-adv-cli.desktop b/math/scilab/files/patch-desktop-scilab-adv-cli.desktop
deleted file mode 100644
index 5e7169f3bb67..000000000000
--- a/math/scilab/files/patch-desktop-scilab-adv-cli.desktop
+++ /dev/null
@@ -1,11 +0,0 @@
---- desktop/scilab-adv-cli.desktop.orig 2011-05-16 18:13:57.000000000 -0700
-+++ desktop/scilab-adv-cli.desktop 2011-05-16 18:14:10.000000000 -0700
-@@ -2,7 +2,7 @@
- Comment=Scientific software package for numerical computations
- Comment[fr]=Logiciel scientifique de calcul numérique
- Comment[de]=eine Wissenschaftssoftware für numerische Berechnungen
--Exec=scilab-cli
-+Exec=scilab-adv-cli
- GenericName=Scientific Software Package
- GenericName[fr]=Logiciel de calcul numérique
- GenericName[de]=Wissenschaftssoftware
diff --git a/math/scilab/files/patch-etc-librarypath.xml b/math/scilab/files/patch-etc-librarypath.xml
index 45e3a88a45a2..ded1b6a6705c 100644
--- a/math/scilab/files/patch-etc-librarypath.xml
+++ b/math/scilab/files/patch-etc-librarypath.xml
@@ -1,24 +1,36 @@
---- etc/librarypath.xml.orig 2010-08-29 23:41:41.000000000 -0700
-+++ etc/librarypath.xml 2010-08-29 23:42:38.000000000 -0700
-@@ -29,19 +29,11 @@
- <path value="$SCILAB/modules/scinotes/.libs"/>
- <path value="$SCILAB/.libs"/>
-
--<!-- Default path to the JNI classes under some Linux (JoGL under Debian for example) -->
--<path value="/usr/lib/jni/"/>
--
--<!-- Some distributions (like openSUSE) put gluegen-rt in /usr/lib instead pf /usr/lib/jni -->
--<path value="/usr/lib" />
--
- <!-- Make install with prefix -->
- <path value="$SCILAB/../../lib/scilab/"/>
-
- <!-- Standard path -->
--<path value="/usr/lib/scilab/"/>
--
--<!-- Standard path for 64 bits -->
--<path value="/usr/lib64/scilab/"/>
-+<path value="%%JAVALIBDIR%%"/>
-+<path value="%%PREFIX%%/lib"/>
-
+--- etc/librarypath.xml.orig 2014-04-11 09:51:34.000000000 +0000
++++ etc/librarypath.xml 2014-05-08 06:41:45.257546863 +0000
+@@ -35,30 +35,12 @@
+ <path value="$SCILAB/modules/javasci/.libs"/>
+ <path value="$SCILAB/modules/.libs"/>
+ <path value="$SCILAB/.libs"/>
+-
+- <!-- Default path to the JNI classes under some Linux (JoGL under Debian for example) -->
+- <path value="/usr/lib/jni/"/>
+-
+- <!-- Standard path for %{_jnidir} rpm macro (jpackage) -->
+- <path value="/usr/lib/java/"/>
+- <path value="/usr/lib64/java/"/>
+-
+- <!-- RedHat put JNI on /usr/%{libdir}/%{name} instead of /usr/lib/jni -->
+- <path value="/usr/lib/jogl2/"/>
+- <path value="/usr/lib64/jogl2/"/>
+- <path value="/usr/lib/gluegen2/"/>
+- <path value="/usr/lib64/gluegen2/"/>
+-
+- <!-- Some distributions (like openSUSE) put gluegen-rt in /usr/lib instead pf /usr/lib/jni -->
+- <path value="/usr/lib" />
+-
++
+ <!-- Make install with prefix -->
+ <path value="$SCILAB/../../lib/scilab/"/>
+
+ <!-- Standard path -->
+- <path value="/usr/lib/scilab/"/>
+-
+- <!-- Standard path for 64 bits -->
+- <path value="/usr/lib64/scilab/"/>
++ <path value="%%JAVALIBDIR%%"/>
++ <path value="%%LOCALBASE%%/lib"/>
+
</librarypaths>
diff --git a/math/scilab/files/patch-modules-atoms-macros-atoms_gui-atomsGui.sci b/math/scilab/files/patch-modules-atoms-macros-atoms_gui-atomsGui.sci
deleted file mode 100644
index e6429516ce65..000000000000
--- a/math/scilab/files/patch-modules-atoms-macros-atoms_gui-atomsGui.sci
+++ /dev/null
@@ -1,11 +0,0 @@
---- modules/atoms/macros/atoms_gui/atomsGui.sci.orig 2010-12-15 02:20:51.000000000 -0800
-+++ modules/atoms/macros/atoms_gui/atomsGui.sci 2010-12-15 02:21:41.000000000 -0800
-@@ -20,7 +20,7 @@
-
- if errStatus<>0 | size(allModules, "*") == 0 then
- if size(atomsRepositoryList(),"*") > 0 then
-- messagebox(gettext("No ATOMS module is available. Please, check your Internet connection."), gettext("ATOMS error"), "error");
-+ messagebox(gettext("ATOMS is not available for FreeBSD at this time."), gettext("ATOMS error"), "error");
- else
- messagebox(gettext("No ATOMS module is available: your repository list is empty."), gettext("ATOMS error"), "error");
- end
diff --git a/math/scilab/files/patch-modules-atoms-macros-atoms_internals-atomsAUWriteAccess.sci b/math/scilab/files/patch-modules-atoms-macros-atoms_internals-atomsAUWriteAccess.sci
deleted file mode 100644
index 863bd058bde0..000000000000
--- a/math/scilab/files/patch-modules-atoms-macros-atoms_internals-atomsAUWriteAccess.sci
+++ /dev/null
@@ -1,32 +0,0 @@
---- modules/atoms/macros/atoms_internals/atomsAUWriteAccess.sci.orig 2010-12-16 23:18:06.000000000 -0800
-+++ modules/atoms/macros/atoms_internals/atomsAUWriteAccess.sci 2010-12-16 23:21:49.000000000 -0800
-@@ -24,25 +24,11 @@
- atoms_system_directory = atomsPath("system" ,"allusers");
- atoms_install_directory = atomsPath("install","allusers");
-
-- // Physical test
--
-- if ~ isdir(atoms_system_directory) then
-- if mkdir(atoms_system_directory) <> 1 then
-- return;
-- end
-- end
--
-- if execstr("mputl(""dummy"",atoms_system_directory+""dummy"");","errcatch") == 0 then
-+ // Just assume root should install to DATADIR and everyone else should
-+ // use ~/.Scilab
-+ rep = unix_g("whoami");
-+ if rep == "root" then
- res = %T;
-- mdelete(atoms_system_directory+"dummy");
-- else
-- return;
-- end
--
-- if execstr("mputl(""dummy"",atoms_install_directory+""dummy"");","errcatch") <> 0 then
-- res = %F;
-- else
-- mdelete(atoms_install_directory+"dummy");
- end
-
- endfunction
diff --git a/math/scilab/files/patch-modules-atoms-macros-atoms_internals-atomsDownload.sci b/math/scilab/files/patch-modules-atoms-macros-atoms_internals-atomsDownload.sci
deleted file mode 100644
index 82504e532aca..000000000000
--- a/math/scilab/files/patch-modules-atoms-macros-atoms_internals-atomsDownload.sci
+++ /dev/null
@@ -1,84 +0,0 @@
---- modules/atoms/macros/atoms_internals/atomsDownload.sci.orig 2010-12-16 23:27:03.000000000 -0800
-+++ modules/atoms/macros/atoms_internals/atomsDownload.sci 2010-12-16 23:41:40.000000000 -0800
-@@ -71,6 +71,7 @@
- CURL = %F;
- WGET = %F;
- HTTPDOWNLOAD = %F;
-+ FETCH = %F;
-
- // Maybe the detection has already been done
-
-@@ -83,10 +84,16 @@
- elseif atomsGetConfig("downloadTool") == "httpdownload" & getos() == 'Windows' then
- HTTPDOWNLOAD=%T;
-
-+ elseif atomsGetConfig("downloadTool") == "fetch" then
-+ FETCH=%T;
-+
- else
-
- // Default values according to platform
-- if LINUX | SOLARIS | BSD then
-+ if BSD then
-+ FETCH = %T;
-+
-+ elseif LINUX | SOLARIS then
-
- // Need to detect under Linux platforms
- [rep,stat,err] = unix_g("wget --version");
-@@ -125,9 +132,12 @@
- if CURL then
- // Curl
- timeout_arg = " --connect-timeout ";
-- else
-+ elseif WGET then
- // wget
- timeout_arg = " --timeout=";
-+ else
-+ // fetch
-+ timeout_arg = " -T ";
- end
-
- timeout = string(strtod(atomsGetConfig("downloadTimeout")));
-@@ -141,6 +151,9 @@
- timeout_arg = timeout_arg + " ";
-
- // Proxy configuration
-+ //
-+ // fetch should set environment variables for proxy - see fetch(3)
-+ //
- if (atomsGetConfig("useProxy") == "True") & (atomsGetConfig("proxyHost") <> "") then
-
- // Host
-@@ -155,7 +168,7 @@
- if CURL then
- // Curl
- proxy_host_arg = " --proxy "+ proxy_host;
-- else
-+ elseif WGET then
- // wget
- proxy_host_arg = " http_proxy="""+proxy_host+""" ";
- end
-@@ -165,7 +178,7 @@
- if CURL then
- // Curl
- proxy_user_arg = " --proxy-user "+atomsGetConfig("proxyUser")+":"+atomsGetConfig("proxyPassword");
-- else
-+ elseif WGET then
- // wget
- proxy_user_arg = " --proxy-user="""+atomsGetConfig("proxyUser")+""" --proxy-password="""+atomsGetConfig("proxyPassword")+"""";
- end
-@@ -179,9 +192,12 @@
- elseif CURL then
- // curl
- download_cmd = "curl "+proxy_host_arg+proxy_user_arg+timeout_arg+" -s "+url_in + " -o " + file_out;
-- else
-+ elseif WGET
- // wget
- download_cmd = proxy_host_arg+"wget"+proxy_user_arg+timeout_arg+" "+url_in + " -O " + file_out;
-+ else
-+ // fetch
-+ download_cmd = "fetch " + timeout_arg + "-o " + file_out + " " + url_in;
- end
-
- [rep,stat,err] = unix_g(download_cmd);
diff --git a/math/scilab/files/patch-modules-dynamic_link-macros-ilib_gen_Make_unix.sci b/math/scilab/files/patch-modules-dynamic_link-macros-ilib_gen_Make_unix.sci
index 497877c81390..fb082e297fa9 100644
--- a/math/scilab/files/patch-modules-dynamic_link-macros-ilib_gen_Make_unix.sci
+++ b/math/scilab/files/patch-modules-dynamic_link-macros-ilib_gen_Make_unix.sci
@@ -1,42 +1,32 @@
---- modules/dynamic_link/macros/ilib_gen_Make_unix.sci.orig 2010-11-24 00:50:36.000000000 -0800
-+++ modules/dynamic_link/macros/ilib_gen_Make_unix.sci 2010-12-15 05:04:30.000000000 -0800
-@@ -64,22 +64,7 @@
- originPath = pwd();
- linkBuildDir = TMPDIR;
+--- ./modules/dynamic_link/macros/ilib_gen_Make_unix.sci.orig 2014-04-11 09:51:43.000000000 +0000
++++ ./modules/dynamic_link/macros/ilib_gen_Make_unix.sci 2014-07-24 23:46:32.896279292 +0000
+@@ -65,20 +65,6 @@
+ linkBuildDir = TMPDIR+"/"+libname;
+ mkdir(linkBuildDir);
commandpath = SCI+"/modules/dynamic_link/src/scripts";
- [fd,ierr] = mopen(commandpath+"/write.test","w+");
-
- if (ierr<>0) then
-- writePerm=%F
+- writePerm=%F
- else
-- writePerm=%T
-- mclose(fd)
-- mdelete(commandpath+"/write.test");
+- writePerm=%T
+- mclose(fd)
+- mdelete(commandpath+"/write.test");
- end
-
- if (writePerm == %T & ( fileinfo(commandpath+"/Makefile.orig") == [] | fileinfo(commandpath+"/libtool") == [] )) then
-- // We have write permission on the scilab tree, then generate the stuff into the directory in order to avoid the configure each time.
+- // We have write permission on the scilab tree, then generate the stuff into the directory in order to avoid the configure each time.
- generateConfigure(commandpath);
- end
--
--
-+
- // Copy files => linkBuildDir
- chdir(linkBuildDir);
-@@ -178,7 +163,7 @@
+
+ // Copy files => linkBuildDir
+@@ -187,7 +173,7 @@
end
end
-- if ldflags <> '' | cflags <> '' | fflags <> '' | cc <> '' | fileinfo(commandpath+"/Makefile.orig") == [] | fileinfo(commandpath+"/libtool") == [] then
+- if ldflags <> "" | cflags <> "" | fflags <> "" | cc <> "" | fileinfo(commandpath+"/Makefile.orig") == [] | fileinfo(commandpath+"/libtool") == [] then
+ if %T then
// Makefile.orig doesn't exists or may be invalid regarding the flags
// run the ./configure with the flags
-@@ -274,4 +259,4 @@
- end
-
- endfunction
--//=============================================================================
-\ No newline at end of file
-+//=============================================================================
diff --git a/math/scilab/files/patch-modules__arnoldi__Makefile.in b/math/scilab/files/patch-modules__arnoldi__Makefile.in
deleted file mode 100644
index 38012a75af54..000000000000
--- a/math/scilab/files/patch-modules__arnoldi__Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- modules/arnoldi/Makefile.in.orig 2011-07-20 04:15:42.000000000 -0400
-+++ modules/arnoldi/Makefile.in 2011-08-09 09:52:07.000000000 -0400
-@@ -489,7 +489,7 @@
-
- libsciarnoldi_la_FFLAGS = -I$(srcdir)/src/arpack/
- pkglib_LTLIBRARIES = libsciarnoldi.la
--libsciarnoldi_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LAPACK_LIBS)
-+libsciarnoldi_la_LDFLAGS = -version-number $(SCILAB_LIBRARY_VERSION) $(LAPACK_LIBS) $(BLAS_LIBS)
- libsciarnoldi_la_SOURCES = $(ARNOLDI_FORTRAN_SOURCES) $(GATEWAY_C_SOURCES)
-
- # For the code check (splint)
diff --git a/math/scilab/files/patch-modules__core__src__c__stack2.c b/math/scilab/files/patch-modules__core__src__c__stack2.c
deleted file mode 100644
index b9da3b626f12..000000000000
--- a/math/scilab/files/patch-modules__core__src__c__stack2.c
+++ /dev/null
@@ -1,105 +0,0 @@
---- ./modules/core/src/c/stack2.c.orig 2011-07-20 01:15:44.000000000 -0700
-+++ ./modules/core/src/c/stack2.c 2012-03-06 01:18:59.000000000 -0800
-@@ -667,7 +667,6 @@
- if (*lar != -1) C2F(cvstr1)(&MN, istk(*lr), cstk(*lar), &cx0, MN + 1);
- *lar = *lr;
- *lr = cadr(*lr);
-- M=MN; N= 1;
- break;
- case 'd' :
- if (! C2F(cremat)(fname, &lw1, &it, m, n, lr, &lcs, nlgh)) return FALSE;
-@@ -1259,6 +1258,12 @@
- *n = 1;
- if (! C2F(getsmat)(fname,&topk,&lw,&m1,&n1,&cx1,&cx1,lr,m, nlgh))
- return FALSE;
-+ if ((m1 != 1) || (n1 != 1))
-+ {
-+ /* bug 8768 check dimensions */
-+ Scierror(999, _("%s: Wrong size for input argument #%d: A string expected.\n"), fname, *number);
-+ return FALSE;
-+ }
- ix2 = *m * *n;
- /* in case where ix2 is 0 in2str adds the \0 char after the end of
- the storage of the variable, so it writes over the next variable
-@@ -1348,7 +1353,6 @@
- nn= (*m)*(*n);
- ScilabMStr2CM(istk(il1),&nn,istk(ild1),&items,&ierr);
- if ( ierr == 1) return FALSE;
-- Type = '$';
- /*
- * Warning : lr must have the proper size when calling getrhsvar
- * char **Str1; .... GetRhsVar(...., &lr)
-@@ -1621,7 +1625,6 @@
- Sp->icol = istk(icol);
- Sp->R = stk(lr1);
- Sp->I = stk(lc);
-- Type = '$';
- break;
- case 'I' :
- /* int matrices */
-@@ -1630,7 +1633,6 @@
- return FALSE;
- Im->m = *m ; Im->n = *n ; Im->it = it; Im->l = lr1;
- Im->D = istk(lr1);
-- Type = '$';
- break;
- case 'p' :
- if (! C2F(getlistpointer)(fname, &topk, &lw, number, lr, nlgh))
-@@ -2086,7 +2088,7 @@
- int ret = FALSE;
- int ifin = 0, ifun = 0, tops = 0, moutputs = 0;
- int id[nsiz];
-- int lf = 0, op = 0, ile = 0, ils = 0, nnn = thestring_len, ninputs = 0;
-+ int lf = 0, op = 0, ile = 0, ils = 0, nnn = thestring_len;
-
- if (nnn <= 2)
- {
-@@ -2114,11 +2116,6 @@
- ils = iadr(lf) + 1;
- moutputs = *istk(ils);
- ile = ils + moutputs * nsiz + 1;
-- ninputs = *istk(ile);
-- /*
-- * ninputs=actual number of inputs, moutputs=actual number of outputs
-- * of thestring: checking mlhs=ninputs and mrhs=moutputs not done.
-- */
- ret = C2F(scifunction)(ifirst, &lf, mlhs, mrhs);
- }
- else
-@@ -2170,9 +2167,9 @@
-
- int C2F(scibuiltin)(int *number,int *ifun,int *ifin,int *mlhs,int *mrhs)
- {
-- int srhs, slhs;
-- int ix, k, intop, lw, pt0;
-- int imode,ireftop;
-+ int srhs = 0, slhs = 0;
-+ int ix = 0, k = 0, intop = 0, lw = 0;
-+ int imode = 0, ireftop = 0;
- intop = Top;
-
- if ( intersci_push() == 0 )
-@@ -2187,7 +2184,6 @@
- Lhs = *mlhs;
- Rhs = *mrhs;
- C2F(recu).krec = -1;
-- pt0 = C2F(recu).pt;
- ++C2F(recu).niv;
- goto L90;
- /* ***************************** copied from callinter.h */
-@@ -2564,12 +2560,15 @@
-
- for (k = 1; k <= Lhs; k++)
- {
-+ if (LhsVar(k))
-+ {
- plhsk=*Lstk(LhsVar(k)+Top-Rhs);
- if (*istk( iadr(plhsk) ) < 0) {
- if (*Lstk(Bot) > *Lstk(*istk(iadr (plhsk) +2)) )
- LhsVar(k)=*istk(iadr(plhsk)+2);
- /* lcres = 0 */
- }
-+ }
- }
-
- if (Err > 0||C2F(errgst).err1> 0) return TRUE ;
diff --git a/math/scilab/files/patch-modules__xcos__src__java__org__scilab__modules__xcos__Xcos.java b/math/scilab/files/patch-modules__xcos__src__java__org__scilab__modules__xcos__Xcos.java
deleted file mode 100644
index 199f1b9b0b04..000000000000
--- a/math/scilab/files/patch-modules__xcos__src__java__org__scilab__modules__xcos__Xcos.java
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./modules/xcos/src/java/org/scilab/modules/xcos/Xcos.java.orig 2011-07-20 01:16:12.000000000 -0700
-+++ ./modules/xcos/src/java/org/scilab/modules/xcos/Xcos.java 2012-02-13 01:10:14.000000000 -0800
-@@ -61,7 +61,7 @@
- * Dependencies version
- */
- private static final List<String> MXGRAPH_VERSIONS = Arrays.asList("1.4.1.0");
-- private static final List<String> HDF5_VERSIONS = Arrays.asList("[1, 8, 4]", "[1, 8, 5]");
-+ private static final List<String> HDF5_VERSIONS = Arrays.asList("[1, 8, 4]", "[1, 8, 5]", "[1, 8, 6]", "[1, 8, 7]", "[1, 8, 8]", "[1, 8, 9]");
- private static final List<String> BATIK_VERSIONS = Arrays.asList("1.7");
-
- private static final String UNABLE_TO_LOAD_JGRAPHX =
diff --git a/math/scilab/files/patch-xdg-open b/math/scilab/files/patch-xdg-open
new file mode 100644
index 000000000000..a6be94d82fd7
--- /dev/null
+++ b/math/scilab/files/patch-xdg-open
@@ -0,0 +1,28 @@
+--- ./modules/gui/src/java/org/scilab/modules/gui/utils/WebBrowser.java.orig 2014-07-24 22:44:04.242274707 +0000
++++ ./modules/gui/src/java/org/scilab/modules/gui/utils/WebBrowser.java 2014-07-24 22:50:25.305278583 +0000
+@@ -98,14 +98,14 @@
+ // We have <pierre.marechal@scilab.org>
+ String mail = "mailto:" + url.substring(1, url.length() - 1);
+ if (webprefs.defaultMailer) {
+- Desktop.getDesktop().mail(new URI(mail));
++ Runtime.getRuntime().exec("xdg-email " + new URI(mail).toString());
+ } else {
+ Runtime.getRuntime().exec(webprefs.cmdMailer + " " + new URI(mail).toString());
+ }
+ }
+ } else if (protocol.equals("mailto")) {
+ if (webprefs.defaultMailer) {
+- Desktop.getDesktop().mail(new URI(url));
++ Runtime.getRuntime().exec("xdg-open " + new URI(url).toString());
+ } else {
+ Runtime.getRuntime().exec(webprefs.cmdMailer + " " + new URI(url).toString());
+ }
+@@ -113,7 +113,7 @@
+ if (webprefs.defaultBrowser) {
+ // Under Windows, ShellExecute is called with the URI and under Linux it is gnome_url_show.
+ // So to handle different protocol in URI, user must config its OS to handle them.
+- Desktop.getDesktop().browse(new URI(url));
++ Runtime.getRuntime().exec("xdg-open " + new URI(url).toString());
+ } else {
+ Runtime.getRuntime().exec(webprefs.cmdBrowser + " " + new URI(url).toString());
+ }