Gentoo Archives: gentoo-commits

From: Guillaume Horel <guillaume.horel@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-mathematics/scilab/, sci-mathematics/scilab/files/
Date: Sun, 01 Feb 2015 03:01:25
Message-Id: 1422758876.090811f27d48c68636513021ac82a7ed8e23286c.guillaume_horel@gentoo
1 commit: 090811f27d48c68636513021ac82a7ed8e23286c
2 Author: Guillaume Horel <guillaume.horel <AT> gmail <DOT> com>
3 AuthorDate: Tue Jan 27 03:14:29 2015 +0000
4 Commit: Guillaume Horel <guillaume.horel <AT> gmail <DOT> com>
5 CommitDate: Sun Feb 1 02:47:56 2015 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=090811f2
7
8 sci-mathematics/scilab: remove old versions
9
10 Package-Manager: portage-2.2.15
11
12 ---
13 sci-mathematics/scilab/ChangeLog | 16 ++
14 .../scilab/files/scilab-5.3.3-as-needed.patch | 42 ----
15 .../scilab/files/scilab-5.3.3-blas-libs.patch | 12 -
16 .../files/scilab-5.3.3-disable-build-help.patch | 12 -
17 .../scilab-5.3.3-fix-random-runtime-failures.patch | 98 --------
18 .../scilab/files/scilab-5.3.3-fortran-link.patch | 23 --
19 .../scilab/files/scilab-5.3.3-gui-no-xcos.patch | 26 ---
20 .../scilab/files/scilab-5.3.3-hdf18.patch | 13 --
21 .../scilab/files/scilab-5.3.3-java-heap.patch | 11 -
22 .../files/scilab-5.3.3-java-version-check.patch | 23 --
23 .../scilab/files/scilab-5.3.3-javadoc-utf8.patch | 25 --
24 .../scilab/files/scilab-5.3.3-jgrapx-min.patch | 0
25 .../scilab/files/scilab-5.3.3-jvm-detection.patch | 44 ----
26 .../scilab/files/scilab-5.3.3-matio15.patch | 25 --
27 .../scilab/files/scilab-5.3.3-no-lhpi.patch | 22 --
28 .../scilab/files/scilab-5.3.3-no-xcos-deps.patch | 90 --------
29 .../scilab-5.4.1-fix-random-runtime-failure.patch | 12 -
30 .../scilab/files/scilab-5.4.1-followlinks.patch | 12 -
31 .../scilab/files/scilab-5.4.1-gluegen.patch | 12 -
32 .../scilab/files/scilab-5.4.1-java-heap.patch | 14 --
33 sci-mathematics/scilab/scilab-5.3.3-r2.ebuild | 252 ---------------------
34 sci-mathematics/scilab/scilab-5.4.1.ebuild | 243 --------------------
35 22 files changed, 16 insertions(+), 1011 deletions(-)
36
37 diff --git a/sci-mathematics/scilab/ChangeLog b/sci-mathematics/scilab/ChangeLog
38 index 53eed59..d960f40 100644
39 --- a/sci-mathematics/scilab/ChangeLog
40 +++ b/sci-mathematics/scilab/ChangeLog
41 @@ -2,6 +2,22 @@
42 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
43 # $Header: $
44
45 + 27 Jan 2015; Guillaume Horel <guillaume.horel@×××××.com>
46 + -files/scilab-5.3.3-as-needed.patch, -files/scilab-5.3.3-blas-libs.patch,
47 + -files/scilab-5.3.3-disable-build-help.patch,
48 + -files/scilab-5.3.3-fix-random-runtime-failures.patch,
49 + -files/scilab-5.3.3-fortran-link.patch, -files/scilab-5.3.3-gui-no-xcos.patch,
50 + -files/scilab-5.3.3-hdf18.patch, -files/scilab-5.3.3-java-heap.patch,
51 + -files/scilab-5.3.3-java-version-check.patch,
52 + -files/scilab-5.3.3-javadoc-utf8.patch, -files/scilab-5.3.3-jgrapx-min.patch,
53 + -files/scilab-5.3.3-jvm-detection.patch, -files/scilab-5.3.3-matio15.patch,
54 + -files/scilab-5.3.3-no-lhpi.patch, -files/scilab-5.3.3-no-xcos-deps.patch,
55 + -files/scilab-5.4.1-fix-random-runtime-failure.patch,
56 + -files/scilab-5.4.1-followlinks.patch, -files/scilab-5.4.1-gluegen.patch,
57 + -files/scilab-5.4.1-java-heap.patch, -scilab-5.3.3-r2.ebuild,
58 + -scilab-5.4.1.ebuild:
59 + sci-mathematics/scilab: remove old versions
60 +
61 29 Jun 2014; Guillaume Horel <guillaume.horel@×××××.com>
62 +files/scilab-5.5.0-jdk1.8.patch, scilab-5.5.0.ebuild:
63 sci-mathematics/scilab: support jdk1.8
64
65 diff --git a/sci-mathematics/scilab/files/scilab-5.3.3-as-needed.patch b/sci-mathematics/scilab/files/scilab-5.3.3-as-needed.patch
66 deleted file mode 100644
67 index 4df4258..0000000
68 --- a/sci-mathematics/scilab/files/scilab-5.3.3-as-needed.patch
69 +++ /dev/null
70 @@ -1,42 +0,0 @@
71 ---- scilab-5.3.3.orig/modules/history_manager/Makefile.am 2012-04-16 21:18:43.000000000 +0100
72 -+++ scilab-5.3.3/modules/history_manager/Makefile.am 2012-05-23 20:17:50.000000000 +0100
73 -@@ -82,7 +82,7 @@
74 - INCLUDE_FLAGS = $(libscihistory_manager_la_CFLAGS)
75 -
76 - ## Libraries necessary
77 --libscihistory_manager_la_LIBADD = $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la $(top_builddir)/modules/fileio/libscifileio.la
78 -+libscihistory_manager_la_LIBADD = $(top_builddir)/libs/MALLOC/libscimalloc.la $(top_builddir)/modules/output_stream/libscioutput_stream.la $(top_builddir)/modules/fileio/libscifileio.la $(top_builddir)/modules/history_browser/libscihistory_browser-disable.la
79 - modulename=history_manager
80 -
81 - #### history_manager : Conf files ####
82 ---- scilab-5.3.3.orig/modules/commons/Makefile.am 2012-04-16 21:18:41.000000000 +0100
83 -+++ scilab-5.3.3/modules/commons/Makefile.am 2012-05-24 19:06:11.000000000 +0100
84 -@@ -80,7 +80,7 @@
85 - endif
86 -
87 - libscicommons_la_LIBADD = $(top_builddir)/libs/MALLOC/libscimalloc.la \
88 --$(top_builddir)/modules/output_stream/libscioutput_stream.la
89 -+$(top_builddir)/modules/output_stream/libscioutput_stream.la $(top_builddir)/modules/core/libscicore.la
90 -
91 -
92 - #### commons : gateway declaration ####
93 ---- scilab-5.3.3.orig/modules/Makefile.am 2012-04-16 21:18:41.000000000 +0100
94 -+++ scilab-5.3.3/modules/Makefile.am 2012-05-24 18:41:25.000000000 +0100
95 -@@ -23,7 +23,6 @@
96 - api_scilab \
97 - dynamic_link \
98 - fileio \
99 --history_manager \
100 - spreadsheet \
101 - tclsci \
102 - localization \
103 -@@ -88,7 +87,8 @@
104 - parallel \
105 - modules_manager \
106 - ui_data \
107 --history_browser
108 -+history_browser \
109 -+history_manager
110 -
111 - #umfpack
112 -
113
114 diff --git a/sci-mathematics/scilab/files/scilab-5.3.3-blas-libs.patch b/sci-mathematics/scilab/files/scilab-5.3.3-blas-libs.patch
115 deleted file mode 100644
116 index b2921f7..0000000
117 --- a/sci-mathematics/scilab/files/scilab-5.3.3-blas-libs.patch
118 +++ /dev/null
119 @@ -1,12 +0,0 @@
120 - upstream http://bugzilla.scilab.org/show_bug.cgi?id=9824
121 -
122 ---- scilab-5.3.2-orig/m4/libsmath.m4 2011-09-19 14:08:11.167292730 -0400
123 -+++ scilab-5.3.2/m4/libsmath.m4 2011-09-19 14:08:26.477292283 -0400
124 -@@ -37,7 +37,6 @@
125 - AC_PREREQ(2.50)
126 - AC_REQUIRE([AC_F77_LIBRARY_LDFLAGS])
127 - acx_blas_ok=no
128 --BLAS_LIBS=
129 - acx_blas_save_LIBS="$LIBS"
130 -
131 - AC_ARG_WITH(blas-library,
132
133 diff --git a/sci-mathematics/scilab/files/scilab-5.3.3-disable-build-help.patch b/sci-mathematics/scilab/files/scilab-5.3.3-disable-build-help.patch
134 deleted file mode 100644
135 index e503748..0000000
136 --- a/sci-mathematics/scilab/files/scilab-5.3.3-disable-build-help.patch
137 +++ /dev/null
138 @@ -1,12 +0,0 @@
139 -upstream http://bugzilla.scilab.org/show_bug.cgi?id=9268
140 -
141 ---- a/scilab/modules/scinotes/Makefile.am
142 -+++ b/scilab/modules/scinotes/Makefile.am
143 -@@ -112,5 +112,7 @@ libsciscinotes_la_sci_gatewaydir = $(mydatadir)/sci_gateway
144 - libsciscinotes_la_sci_gateway_DATA = sci_gateway/scinotes_gateway.xml
145 -
146 - if GUI
147 -+if BUILD_HELP
148 - USEANT=1
149 - endif
150 -+endif
151
152 diff --git a/sci-mathematics/scilab/files/scilab-5.3.3-fix-random-runtime-failures.patch b/sci-mathematics/scilab/files/scilab-5.3.3-fix-random-runtime-failures.patch
153 deleted file mode 100644
154 index 6661989..0000000
155 --- a/sci-mathematics/scilab/files/scilab-5.3.3-fix-random-runtime-failures.patch
156 +++ /dev/null
157 @@ -1,98 +0,0 @@
158 -fix random failures, triggered by gentoo qa scripts: missing declarations (headers), assigning NULL to int or double
159 -
160 -diff -Nur scilab-5.3.3.orig/modules/api_scilab/src/cpp/api_double.cpp scilab-5.3.3/modules/api_scilab/src/cpp/api_double.cpp
161 ---- scilab-5.3.3.orig/modules/api_scilab/src/cpp/api_double.cpp 2012-04-16 21:18:42.000000000 +0100
162 -+++ scilab-5.3.3/modules/api_scilab/src/cpp/api_double.cpp 2012-05-23 23:26:09.000000000 +0100
163 -@@ -481,7 +481,7 @@
164 - /*--------------------------------------------------------------------------*/
165 - int createScalarDouble(void* _pvCtx, int _iVar, double _dblReal)
166 - {
167 -- return createCommonScalarDouble(_pvCtx, _iVar, 0, _dblReal, NULL);
168 -+ return createCommonScalarDouble(_pvCtx, _iVar, 0, _dblReal, 0);
169 - }
170 - /*--------------------------------------------------------------------------*/
171 - int createScalarComplexDouble(void* _pvCtx, int _iVar, double _dblReal, double _dblImg)
172 -diff -Nur scilab-5.3.3.orig/modules/api_scilab/src/cpp/api_list.cpp scilab-5.3.3/modules/api_scilab/src/cpp/api_list.cpp
173 ---- scilab-5.3.3.orig/modules/api_scilab/src/cpp/api_list.cpp 2012-04-16 21:18:42.000000000 +0100
174 -+++ scilab-5.3.3/modules/api_scilab/src/cpp/api_list.cpp 2012-05-23 23:23:22.000000000 +0100
175 -@@ -1133,7 +1133,7 @@
176 - SciErr sciErr; sciErr.iErr = 0; sciErr.iMsgCount = 0;
177 - int* piAddr = NULL;
178 - int* piRoot = NULL;
179 -- int iNbItem = NULL;
180 -+ int iNbItem = 0;
181 -
182 - if(_piParent == NULL)
183 - {
184 -@@ -1329,7 +1329,7 @@
185 - SciErr sciErr; sciErr.iErr = 0; sciErr.iMsgCount = 0;
186 - int* piAddr = NULL;
187 - int* piRoot = NULL;
188 -- int iNbItem = NULL;
189 -+ int iNbItem = 0;
190 - int* piBool = NULL;
191 -
192 -
193 -@@ -1577,7 +1577,7 @@
194 - SciErr sciErr; sciErr.iErr = 0; sciErr.iMsgCount = 0;
195 - int* piAddr = NULL;
196 - int* piRoot = NULL;
197 -- int iNbItem = NULL;
198 -+ int iNbItem = 0;
199 -
200 - if(_piParent == NULL)
201 - {
202 -diff -Nur scilab-5.3.3.orig/modules/core/src/c/csignal.c scilab-5.3.3/modules/core/src/c/csignal.c
203 ---- scilab-5.3.3.orig/modules/core/src/c/csignal.c 2012-04-16 21:18:43.000000000 +0100
204 -+++ scilab-5.3.3/modules/core/src/c/csignal.c 2012-05-23 23:18:19.000000000 +0100
205 -@@ -11,6 +11,7 @@
206 - *
207 - */
208 - #include <stdio.h>
209 -+#include <string.h>
210 - #include "banier.h"
211 - #include "csignal.h"
212 - #include "sigbas.h"
213 -diff -Nur scilab-5.3.3.orig/modules/functions/src/c/getmacroslist.c scilab-5.3.3/modules/functions/src/c/getmacroslist.c
214 ---- scilab-5.3.3.orig/modules/functions/src/c/getmacroslist.c 2012-04-16 21:18:41.000000000 +0100
215 -+++ scilab-5.3.3/modules/functions/src/c/getmacroslist.c 2012-05-23 23:18:38.000000000 +0100
216 -@@ -11,6 +11,7 @@
217 - *
218 - */
219 - #include <stdlib.h>
220 -+#include <string.h>
221 - #include "api_scilab.h"
222 - #include "sci_types.h"
223 - #include "getmacroslist.h"
224 -diff -Nur scilab-5.3.3.orig/modules/localization/src/c/charEncoding.c scilab-5.3.3/modules/localization/src/c/charEncoding.c
225 ---- scilab-5.3.3.orig/modules/localization/src/c/charEncoding.c 2012-04-16 21:18:43.000000000 +0100
226 -+++ scilab-5.3.3/modules/localization/src/c/charEncoding.c 2012-05-23 23:16:17.000000000 +0100
227 -@@ -16,6 +16,7 @@
228 - #include <stdio.h>
229 - #include <string.h>
230 - #include <locale.h>
231 -+#include <wctype.h>
232 - #include "charEncoding.h"
233 - #include "MALLOC.h"
234 - /*--------------------------------------------------------------------------*/
235 -diff -Nur scilab-5.3.3.orig/modules/matio/src/c/CreateCharVariable.c scilab-5.3.3/modules/matio/src/c/CreateCharVariable.c
236 ---- scilab-5.3.3.orig/modules/matio/src/c/CreateCharVariable.c 2012-04-16 21:18:43.000000000 +0100
237 -+++ scilab-5.3.3/modules/matio/src/c/CreateCharVariable.c 2012-05-23 23:19:36.000000000 +0100
238 -@@ -11,6 +11,7 @@
239 - *
240 - */
241 -
242 -+#include <string.h>
243 - #include "api_scilab.h"
244 - #include "CreateMatlabVariable.h"
245 - #include "freeArrayOfString.h"
246 ---- scilab-5.3.3.orig/modules/graphics/src/c/getHandleProperty/set_log_flags_property.c 2012-04-16 21:18:41.000000000 +0100
247 -+++ scilab-5.3.3/modules/graphics/src/c/getHandleProperty/set_log_flags_property.c 2012-05-24 20:54:16.000000000 +0100
248 -@@ -18,6 +18,7 @@
249 - /* a handle */
250 - /*------------------------------------------------------------------------*/
251 - #include <string.h>
252 -+#define _GNU_SOURCE
253 - #include <math.h>
254 - #include "setHandleProperty.h"
255 - #include "SetProperty.h"
256
257 diff --git a/sci-mathematics/scilab/files/scilab-5.3.3-fortran-link.patch b/sci-mathematics/scilab/files/scilab-5.3.3-fortran-link.patch
258 deleted file mode 100644
259 index 707da3b..0000000
260 --- a/sci-mathematics/scilab/files/scilab-5.3.3-fortran-link.patch
261 +++ /dev/null
262 @@ -1,23 +0,0 @@
263 ---- scilab-5.3.3.orig/configure.ac 2012-04-16 21:18:43.000000000 +0100
264 -+++ scilab-5.3.3/configure.ac 2012-05-23 00:54:55.000000000 +0100
265 -@@ -196,16 +196,16 @@
266 - if test -z "$F77"; then
267 - AC_MSG_ERROR([You asked me to use gfortran but i haven't been able to find it])
268 - fi
269 --fi
270 -
271 --if test "$with_intelcompilers" = yes; then
272 -+
273 -+elif test "$with_intelcompilers" = yes; then
274 - AC_PROG_F77(ifc ifort)
275 - if test -z "$F77"; then
276 - AC_MSG_ERROR([You asked me to use ifc (intel fortran compiler) but i haven't been able to find it])
277 - fi
278 --fi
279 -+else
280 -+
281 -
282 --if test -z "$F77"; then
283 - ## No Frotran compiler specified... We rely on Autoconf to find the best
284 - AC_PROG_F77
285 - fi
286
287 diff --git a/sci-mathematics/scilab/files/scilab-5.3.3-gui-no-xcos.patch b/sci-mathematics/scilab/files/scilab-5.3.3-gui-no-xcos.patch
288 deleted file mode 100644
289 index 82ebbde..0000000
290 --- a/sci-mathematics/scilab/files/scilab-5.3.3-gui-no-xcos.patch
291 +++ /dev/null
292 @@ -1,26 +0,0 @@
293 -diff -Nur scilab-5.3.3.orig/modules/graph/Makefile.am scilab-5.3.3/modules/graph/Makefile.am
294 ---- scilab-5.3.3.orig/modules/graph/Makefile.am 2012-05-29 18:59:31.000000000 +0100
295 -+++ scilab-5.3.3/modules/graph/Makefile.am 2012-05-29 19:02:11.000000000 +0100
296 -@@ -87,5 +87,7 @@
297 - libscigraph_la_sci_gateway_DATA =
298 -
299 - if GUI
300 -+if XCOS
301 - USEANT=1
302 - endif
303 -+endif
304 -diff -Nur scilab-5.3.3.orig/modules/hdf5/Makefile.am scilab-5.3.3/modules/hdf5/Makefile.am
305 ---- scilab-5.3.3.orig/modules/hdf5/Makefile.am 2012-05-29 18:59:42.000000000 +0100
306 -+++ scilab-5.3.3/modules/hdf5/Makefile.am 2012-05-29 19:03:04.000000000 +0100
307 -@@ -10,9 +10,11 @@
308 - if HDF5
309 -
310 - if GUI
311 -+if XCOS
312 - # No GUI. Disable the Java build
313 - USEANT=1
314 - endif
315 -+endif
316 -
317 -
318 - HDF5_SOURCES = src/c/h5_fileManagement.c \
319
320 diff --git a/sci-mathematics/scilab/files/scilab-5.3.3-hdf18.patch b/sci-mathematics/scilab/files/scilab-5.3.3-hdf18.patch
321 deleted file mode 100644
322 index 7a7e6c2..0000000
323 --- a/sci-mathematics/scilab/files/scilab-5.3.3-hdf18.patch
324 +++ /dev/null
325 @@ -1,13 +0,0 @@
326 -Index: modules/xcos/src/java/org/scilab/modules/xcos/Xcos.java
327 -===================================================================
328 ---- modules/xcos/src/java/org/scilab/modules/xcos/Xcos.java.orig
329 -+++ modules/xcos/src/java/org/scilab/modules/xcos/Xcos.java
330 -@@ -61,7 +61,7 @@ public final class Xcos {
331 - * Dependencies version
332 - */
333 - private static final List<String> MXGRAPH_VERSIONS = Arrays.asList("1.4.1.0");
334 -- private static final List<String> HDF5_VERSIONS = Arrays.asList("[1, 8, 4]", "[1, 8, 5]");
335 -+ private static final List<String> HDF5_VERSIONS = Arrays.asList("[1, 8, 4]", "[1, 8, 5]", "[1, 8, 7]", "[1, 8, 8]", "[1, 8, 9]","[1, 8, 10]");
336 - private static final List<String> BATIK_VERSIONS = Arrays.asList("1.7");
337 -
338 - private static final String UNABLE_TO_LOAD_JGRAPHX =
339
340 diff --git a/sci-mathematics/scilab/files/scilab-5.3.3-java-heap.patch b/sci-mathematics/scilab/files/scilab-5.3.3-java-heap.patch
341 deleted file mode 100644
342 index e493a3b..0000000
343 --- a/sci-mathematics/scilab/files/scilab-5.3.3-java-heap.patch
344 +++ /dev/null
345 @@ -1,11 +0,0 @@
346 ---- scilab-5.3.3.orig//etc/jvm_options.xml 2011-05-25 23:20:12.145833420 -0400
347 -+++ scilab-5.3.3/etc/jvm_options.xml 2011-05-25 23:20:58.760833451 -0400
348 -@@ -22,7 +22,7 @@
349 - <!-- ENABLE Just In Time java compiler -->
350 - <option value="-Djava.compiler=JIT"/>
351 - <!-- Set Java Heap space to 256mb -->
352 -- <option value="-Xmx256m"/>
353 -+ <option value="-Xmx512m"/>
354 - <option value="-Dapple.laf.useScreenMenuBar=true" os="macosx"/>
355 - <!-- DISABLE Just In Time java compiler -->
356 - <!--
357
358 diff --git a/sci-mathematics/scilab/files/scilab-5.3.3-java-version-check.patch b/sci-mathematics/scilab/files/scilab-5.3.3-java-version-check.patch
359 deleted file mode 100644
360 index c5eb611..0000000
361 --- a/sci-mathematics/scilab/files/scilab-5.3.3-java-version-check.patch
362 +++ /dev/null
363 @@ -1,23 +0,0 @@
364 -diff -Naurp scilab-5.3.3-r1-orig/m4/java-thirdparty.m4 scilab-5.3.3-r1/m4/java-thirdparty.m4
365 ---- scilab-5.3.3-r1-orig/m4/java-thirdparty.m4 2013-01-07 14:55:58.516374556 +0100
366 -+++ scilab-5.3.3-r1/m4/java-thirdparty.m4 2013-01-07 16:19:21.256370075 +0100
367 -@@ -38,9 +38,16 @@ AC_DEFUN([AC_JAVA_CHECK_VERSION_PACKAGE]
368 - AC_JAVA_TRY_COMPILE($2, [String minVersion="$4";
369 - $6
370 - System.out.println($5);
371 -- if (minVersion.compareTo($5) > 0) {
372 -- System.exit(-1);
373 -- } ]
374 -+ String[] minV = minVersion.split("\\.");
375 -+ String[] curV = $5.split("\\.");
376 -+ for (int i=0; i<Math.max(minV.length,curV.length); i++) {
377 -+ int mE = i<minV.length ? Integer.parseInt(minV[i]) : 0;
378 -+ int cE = i<curV.length ? Integer.parseInt(curV[i]) : 0;
379 -+ if (mE < cE)
380 -+ break;
381 -+ if (mE > cE)
382 -+ System.exit(-1);
383 -+ } ]
384 - , "yes", echo "yes" , AC_MSG_ERROR([Wrong version of $1. Expected at least $4. Found $STDOUT]))
385 - else
386 - AC_JAVA_TRY_COMPILE($2, [String minVersion="$4";
387
388 diff --git a/sci-mathematics/scilab/files/scilab-5.3.3-javadoc-utf8.patch b/sci-mathematics/scilab/files/scilab-5.3.3-javadoc-utf8.patch
389 deleted file mode 100644
390 index b4b2175..0000000
391 --- a/sci-mathematics/scilab/files/scilab-5.3.3-javadoc-utf8.patch
392 +++ /dev/null
393 @@ -1,25 +0,0 @@
394 -From e42e4a78fa2e070bad79257f575d9a500547e809 Mon Sep 17 00:00:00 2001
395 -From: =?UTF-8?q?Cl=C3=A9ment=20DAVID?= <clement.david@××××××××××××××××××.com>
396 -Date: Mon, 31 Oct 2011 14:31:27 +0100
397 -Subject: [PATCH 4/8] fix javadoc encoding
398 -
399 ----
400 - Makefile.am | 2 +-
401 - 1 files changed, 1 insertions(+), 1 deletions(-)
402 -
403 -diff --git a/Makefile.am b/Makefile.am
404 -index 1e4d590..7b905ae 100644
405 ---- a/Makefile.am
406 -+++ b/Makefile.am
407 -@@ -163,7 +163,7 @@ macros:$(top_builddir)/scilab-cli-bin $(top_builddir)/bin/scilab-cli
408 - # This is not done in the module itself because its needs also the "types"
409 - # module
410 - javadoc:
411 -- $(JAVADOC) -noindex -nohelp -nonavbar -notree \
412 -+ $(JAVADOC) -noindex -nohelp -nonavbar -notree -encoding "utf-8" \
413 - -d $(top_builddir)/modules/javasci/javadoc \
414 - -sourcepath $(top_srcdir)/modules/javasci/src/java:$(top_srcdir)/modules/types/src/java \
415 - org.scilab.modules.javasci org.scilab.modules.types
416 ---
417 -1.7.7
418 -
419
420 diff --git a/sci-mathematics/scilab/files/scilab-5.3.3-jgrapx-min.patch b/sci-mathematics/scilab/files/scilab-5.3.3-jgrapx-min.patch
421 deleted file mode 100644
422 index e69de29..0000000
423
424 diff --git a/sci-mathematics/scilab/files/scilab-5.3.3-jvm-detection.patch b/sci-mathematics/scilab/files/scilab-5.3.3-jvm-detection.patch
425 deleted file mode 100644
426 index 4b3d852..0000000
427 --- a/sci-mathematics/scilab/files/scilab-5.3.3-jvm-detection.patch
428 +++ /dev/null
429 @@ -1,44 +0,0 @@
430 -applied from upstream http://bugzilla.scilab.org/show_bug.cgi?id=9268
431 -
432 -diff --git a/scilab/bin/scilab b/scilab/bin/scilab
433 -index 67f6474..7a4f6f5 100755
434 ---- a/scilab/bin/scilab
435 -+++ b/scilab/bin/scilab
436 -@@ -355,7 +355,7 @@ detect_java_vm() {
437 - # uname -m Darwin
438 -
439 - # If the user has the variable JAVA_HOME in the ENV
440 -- if test -n "$JAVA_HOME" ; then
441 -+ if test -n "$JAVA_HOME" ; then
442 - if test $SCIVERBOSE -ne 0; then
443 - echo "Using specified vm: $JAVA_HOME"
444 - fi
445 -@@ -363,7 +363,7 @@ detect_java_vm() {
446 - echo "Cannot find $JAVA_HOME/bin/java"
447 - exit 1
448 - fi
449 -- fi
450 -+ else
451 -
452 - case $OS in
453 - *darwin* | *Darwin*)
454 -@@ -429,18 +429,17 @@ detect_java_vm() {
455 - done
456 - IFS=$as_save_IFS
457 - fi
458 -+ fi
459 - if test ! -z "$JAVA_HOME"; then
460 - if test $SCIVERBOSE -ne 0; then
461 - echo "JAVA_HOME : $JAVA_HOME"
462 - fi
463 --
464 - # Manage JRE & JDK because libjava.so and others are stored in the JRE
465 - if test -d $JAVA_HOME/jre; then
466 - JRE_HOME=$JAVA_HOME/jre
467 - else
468 - JRE_HOME=$JAVA_HOME
469 - fi
470 --
471 - # Configuring LD_LIBRARY_PATH for libjava.so libhpi.so and libxxxx.so
472 -
473 - case $OS in
474
475 diff --git a/sci-mathematics/scilab/files/scilab-5.3.3-matio15.patch b/sci-mathematics/scilab/files/scilab-5.3.3-matio15.patch
476 deleted file mode 100644
477 index 178b4bd..0000000
478 --- a/sci-mathematics/scilab/files/scilab-5.3.3-matio15.patch
479 +++ /dev/null
480 @@ -1,25 +0,0 @@
481 -diff -Nur scilab-5.3.3.orig/configure.ac scilab-5.3.3/configure.ac
482 ---- scilab-5.3.3.orig/configure.ac 2012-04-16 21:18:43.000000000 +0100
483 -+++ scilab-5.3.3/configure.ac 2012-05-14 19:27:21.000000000 +0100
484 -@@ -1514,7 +1514,7 @@
485 - CFLAGS="$CFLAGS $MATIO_CFLAGS"
486 - LIBS="$LIBS $MATIO_LIBS"
487 -
488 -- AC_CHECK_HEADERS([matio.h matioConfig.h], [],
489 -+ AC_CHECK_HEADERS([matio.h], [],
490 - [AC_MSG_ERROR([Invalid MATIO_CFLAGS returned by pkg-config. Try to define MATIO_CFLAGS.])])
491 - AC_CHECK_LIB([matio], [Mat_Open], [],
492 - [AC_MSG_ERROR([Invalid MATIO_LIBS returned by pkg-config. Try to define MATIO_LIBS.])])
493 -diff -Nur scilab-5.3.3.orig/modules/core/includes/machine.h.in scilab-5.3.3/modules/core/includes/machine.h.in
494 ---- scilab-5.3.3.orig/modules/core/includes/machine.h.in 2012-04-16 21:18:43.000000000 +0100
495 -+++ scilab-5.3.3/modules/core/includes/machine.h.in 2012-05-14 19:25:56.000000000 +0100
496 -@@ -176,9 +176,6 @@
497 - /* Define to 1 if you have the <malloc.h> header file. */
498 - #undef HAVE_MALLOC_H
499 -
500 --/* Define to 1 if you have the <matioConfig.h> header file. */
501 --#undef HAVE_MATIOCONFIG_H
502 --
503 - /* Define to 1 if you have the <matio.h> header file. */
504 - #undef HAVE_MATIO_H
505 -
506
507 diff --git a/sci-mathematics/scilab/files/scilab-5.3.3-no-lhpi.patch b/sci-mathematics/scilab/files/scilab-5.3.3-no-lhpi.patch
508 deleted file mode 100644
509 index ec48a17..0000000
510 --- a/sci-mathematics/scilab/files/scilab-5.3.3-no-lhpi.patch
511 +++ /dev/null
512 @@ -1,22 +0,0 @@
513 -fixed upstream
514 -
515 ---- scilab-5.3.3.orig/m4/java.m4 2012-04-16 21:18:41.000000000 +0100
516 -+++ scilab-5.3.3/m4/java.m4 2012-05-23 22:07:31.000000000 +0100
517 -@@ -497,7 +497,7 @@
518 - ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -ljvm"
519 - D=$ac_java_jvm_dir/jre/lib/$machine/native_threads
520 - ac_java_jvm_jni_lib_runtime_path="${ac_java_jvm_jni_lib_runtime_path}:$D"
521 -- ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -lhpi"
522 -+ ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D "
523 - fi
524 - fi
525 -
526 -@@ -598,7 +598,7 @@
527 - ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -ljvm"
528 - D=$ac_java_jvm_dir/jre/lib/mipsel/native_threads
529 - ac_java_jvm_jni_lib_runtime_path="${ac_java_jvm_jni_lib_runtime_path}:$D"
530 -- ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D -lhpi"
531 -+ ac_java_jvm_jni_lib_flags="$ac_java_jvm_jni_lib_flags -L$D "
532 - fi
533 - fi
534 -
535
536 diff --git a/sci-mathematics/scilab/files/scilab-5.3.3-no-xcos-deps.patch b/sci-mathematics/scilab/files/scilab-5.3.3-no-xcos-deps.patch
537 deleted file mode 100644
538 index 143e77e..0000000
539 --- a/sci-mathematics/scilab/files/scilab-5.3.3-no-xcos-deps.patch
540 +++ /dev/null
541 @@ -1,90 +0,0 @@
542 -From 86ea77b316580c685263e54cd6564e4b939daf72 Mon Sep 17 00:00:00 2001
543 -From: =?UTF-8?q?Cl=C3=A9ment=20DAVID?= <clement.david@××××××.org>
544 -Date: Wed, 14 Sep 2011 20:52:14 +0200
545 -Subject: [PATCH 3/8] Remove Xcos dependencies check
546 -
547 ----
548 - .../src/java/org/scilab/modules/xcos/Xcos.java | 67 +------------------
549 - 1 files changed, 4 insertions(+), 63 deletions(-)
550 -
551 -diff --git a/modules/xcos/src/java/org/scilab/modules/xcos/Xcos.java b/modules/xcos/src/java/org/scilab/modules/xcos/Xcos.java
552 -index 2417b06..35ed224 100644
553 ---- a/modules/xcos/src/java/org/scilab/modules/xcos/Xcos.java
554 -+++ b/modules/xcos/src/java/org/scilab/modules/xcos/Xcos.java
555 -@@ -145,69 +145,10 @@ public final class Xcos {
556 - // CSOFF: IllegalCatch
557 - // CSOFF: MagicNumber
558 - private void checkDependencies() {
559 -- final ClassLoader loader = ClassLoader.getSystemClassLoader();
560 --
561 -- /* JGraphx */
562 -- String mxGraphVersion = "";
563 -- try {
564 -- final Class< ? > klass = loader.loadClass("com.mxgraph.view.mxGraph");
565 -- mxGraphVersion = (String) klass.getDeclaredField("VERSION").get(null);
566 --
567 -- if (!MXGRAPH_VERSIONS.contains(mxGraphVersion)) {
568 -- throw new Exception();
569 -- }
570 -- } catch (final Throwable e) {
571 -- throw new RuntimeException(String.format(UNABLE_TO_LOAD_JGRAPHX,
572 -- MXGRAPH_VERSIONS.get(0), mxGraphVersion), e);
573 -- }
574 --
575 -- /* HDF5 */
576 -- final int[] libVersion = new int[3];
577 -- try {
578 -- final Class< ? > klass = loader.loadClass("ncsa.hdf.hdf5lib.H5");
579 --
580 -- /* hdf5-java */
581 -- int ret = (Integer) klass.getMethod("H5get_libversion", libVersion.getClass())
582 -- .invoke(null, libVersion);
583 -- if (ret < 0) {
584 -- throw new Exception();
585 -- }
586 --
587 -- if (!HDF5_VERSIONS.contains(Arrays.toString(libVersion))) {
588 -- throw new Exception();
589 -- }
590 --
591 --
592 -- /* hdf5 */
593 -- ret = (Integer) klass.getMethod("H5check_version", int.class,
594 -- int.class, int.class).invoke(null, libVersion[0],
595 -- libVersion[1], libVersion[2]);
596 -- if (ret < 0) {
597 -- throw new RuntimeException(UNABLE_TO_LOAD_HDF5);
598 -- }
599 --
600 -- } catch (final Throwable e) {
601 -- if (!(e instanceof RuntimeException)) {
602 -- throw new RuntimeException(String.format(UNABLE_TO_LOAD_JHDF5,
603 -- HDF5_VERSIONS.get(0), Arrays.toString(libVersion)), e);
604 -- }
605 -- }
606 --
607 -- /* Batik */
608 -- String batikVersion = null;
609 -- try {
610 -- final Class< ? > klass = loader.loadClass("org.apache.batik.Version");
611 -- batikVersion = klass.getPackage().getImplementationVersion()
612 -- .split("\\+")[0];
613 --
614 -- if (!BATIK_VERSIONS.contains(batikVersion)) {
615 -- throw new Exception();
616 -- }
617 --
618 -- } catch (final Throwable e) {
619 -- throw new RuntimeException(String.format(UNABLE_TO_LOAD_BATIK,
620 -- BATIK_VERSIONS.get(0), batikVersion), e);
621 -- }
622 -+ LOG.trace("dependencies check removed");
623 -+ // Remove all dependencies check
624 -+ // It may cause some trouble in case of any API change but will
625 -+ // ease maintenance.
626 - }
627 - // CSON: MagicNumber
628 - // CSON: IllegalCatch
629 ---
630 -1.7.7
631 -
632
633 diff --git a/sci-mathematics/scilab/files/scilab-5.4.1-fix-random-runtime-failure.patch b/sci-mathematics/scilab/files/scilab-5.4.1-fix-random-runtime-failure.patch
634 deleted file mode 100644
635 index 92ac453..0000000
636 --- a/sci-mathematics/scilab/files/scilab-5.4.1-fix-random-runtime-failure.patch
637 +++ /dev/null
638 @@ -1,12 +0,0 @@
639 -diff -urN scilab-orig/modules/api_scilab/src/cpp/api_double.cpp scilab/modules/api_scilab/src/cpp/api_double.cpp
640 ---- scilab-orig/modules/api_scilab/src/cpp/api_double.cpp 2012-08-06 23:26:31.342617365 -0400
641 -+++ scilab/modules/api_scilab/src/cpp/api_double.cpp 2012-08-06 23:27:34.838621420 -0400
642 -@@ -497,7 +497,7 @@
643 - /*--------------------------------------------------------------------------*/
644 - int createScalarDouble(void* _pvCtx, int _iVar, double _dblReal)
645 - {
646 -- return createCommonScalarDouble(_pvCtx, _iVar, 0, _dblReal, NULL);
647 -+ return createCommonScalarDouble(_pvCtx, _iVar, 0, _dblReal, 0);
648 - }
649 - /*--------------------------------------------------------------------------*/
650 - int createScalarComplexDouble(void* _pvCtx, int _iVar, double _dblReal, double _dblImg)
651
652 diff --git a/sci-mathematics/scilab/files/scilab-5.4.1-followlinks.patch b/sci-mathematics/scilab/files/scilab-5.4.1-followlinks.patch
653 deleted file mode 100644
654 index 118df3b..0000000
655 --- a/sci-mathematics/scilab/files/scilab-5.4.1-followlinks.patch
656 +++ /dev/null
657 @@ -1,12 +0,0 @@
658 -diff -urN scilab-orig/m4/java.m4 scilab/m4/java.m4
659 ---- scilab-orig/m4/java.m4 2012-07-07 18:39:39.036716695 -0400
660 -+++ scilab/m4/java.m4 2012-07-07 18:40:54.479721514 -0400
661 -@@ -846,7 +846,7 @@
662 - for jar in "$jardir/$1.jar" "$jardir/lib$1.jar" "$jardir/lib$1-java.jar" "$jardir/$1*.jar"; do
663 -
664 - # TODO check the behaviour when spaces
665 -- jars_resolved=`ls $jar 2>/dev/null`
666 -+ jars_resolved=$(realpath $(ls $jar 2>/dev/null) 2>/dev/null)
667 - for jar_resolved in $jars_resolved; do # If several jars matches
668 - if test -e "$jar_resolved"; then
669 - export ac_java_classpath="$jar_resolved:$ac_java_classpath"
670
671 diff --git a/sci-mathematics/scilab/files/scilab-5.4.1-gluegen.patch b/sci-mathematics/scilab/files/scilab-5.4.1-gluegen.patch
672 deleted file mode 100644
673 index 64717a7..0000000
674 --- a/sci-mathematics/scilab/files/scilab-5.4.1-gluegen.patch
675 +++ /dev/null
676 @@ -1,12 +0,0 @@
677 -diff -urN scilab-orig/modules/gui/src/java/org/scilab/modules/gui/bridge/canvas/SwingScilabCanvas.java scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/canvas/SwingScilabCanvas.java
678 ---- scilab-orig/modules/gui/src/java/org/scilab/modules/gui/bridge/canvas/SwingScilabCanvas.java 2012-07-09 23:14:03.261245376 -0400
679 -+++ scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/canvas/SwingScilabCanvas.java 2012-07-09 23:17:38.226239081 -0400
680 -@@ -73,7 +73,7 @@
681 -
682 - static {
683 - try {
684 -- System.loadLibrary("gluegen2-rt");
685 -+ System.loadLibrary("gluegen-rt");
686 - } catch (Exception e) {
687 - System.err.println(e);
688 - }
689
690 diff --git a/sci-mathematics/scilab/files/scilab-5.4.1-java-heap.patch b/sci-mathematics/scilab/files/scilab-5.4.1-java-heap.patch
691 deleted file mode 100644
692 index ae9ec1a..0000000
693 --- a/sci-mathematics/scilab/files/scilab-5.4.1-java-heap.patch
694 +++ /dev/null
695 @@ -1,14 +0,0 @@
696 -diff -urN scilab-5.4.1-orig/etc/jvm_options.xml scilab-5.4.1/etc/jvm_options.xml
697 ---- scilab-5.4.1-orig/etc/jvm_options.xml 2013-04-09 04:48:25.468385699 -0400
698 -+++ scilab-5.4.1/etc/jvm_options.xml 2013-04-09 04:49:17.608390887 -0400
699 -@@ -21,8 +21,8 @@
700 - <option value="-Djava.util.logging.config.file=$SCILAB/etc/logging.properties"/>
701 - <!-- ENABLE Just In Time java compiler -->
702 - <option value="-Djava.compiler=JIT"/>
703 -- <!-- Set Java Heap space to 256mb -->
704 -- <option value="-Xmx256m"/>
705 -+ <!-- Set Java Heap space to 512mb -->
706 -+ <option value="-Xmx512m"/>
707 -
708 - <!-- Set Java space for direct buffer allocation -->
709 - <!--
710
711 diff --git a/sci-mathematics/scilab/scilab-5.3.3-r2.ebuild b/sci-mathematics/scilab/scilab-5.3.3-r2.ebuild
712 deleted file mode 100644
713 index e906dfd..0000000
714 --- a/sci-mathematics/scilab/scilab-5.3.3-r2.ebuild
715 +++ /dev/null
716 @@ -1,252 +0,0 @@
717 -# Copyright 1999-2014 Gentoo Foundation
718 -# Distributed under the terms of the GNU General Public License v2
719 -# $Header: $
720 -
721 -EAPI=4
722 -
723 -JAVA_PKG_OPT_USE="gui"
724 -VIRTUALX_REQUIRED="manual"
725 -
726 -inherit eutils autotools check-reqs fdo-mime bash-completion-r1 \
727 - java-pkg-opt-2 fortran-2 flag-o-matic toolchain-funcs virtualx
728 -
729 -# TODO:
730 -# - work out src_test. do we need testng? (java-experimental overlay)
731 -# - emacs mode: http://forge.scilab.org/index.php/p/scilab-emacs/
732 -# - work out as-needed
733 -# - compatibility with matio >= 1.5
734 -# - apply extra patches? (fedora, mageia, debian, freebsd have some)
735 -# - do ebuilds for scilab packages: plotlib, scimax, scimysql, scivp, swt, ann,
736 -# celestlab, jims,...
737 -
738 -DESCRIPTION="Scientific software package for numerical computations"
739 -HOMEPAGE="http://www.scilab.org/"
740 -SRC_URI="http://www.scilab.org/download/${PV}/${P}-src.tar.gz"
741 -
742 -SLOT="0"
743 -LICENSE="CeCILL-2"
744 -KEYWORDS="~amd64 ~x86"
745 -IUSE="bash-completion debug doc fftw +gui hdf5 +matio nls openmp
746 - static-libs test tk +umfpack xcos"
747 -REQUIRED_USE="xcos? ( hdf5 gui ) doc? ( gui )"
748 -
749 -# ALL_LINGUAS variable defined in configure.ac
750 -LINGUAS="fr_FR zh_CN zh_TW ca_ES es_ES pt_BR"
751 -for l in ${LINGUAS}; do
752 - IUSE="${IUSE} linguas_${l}"
753 -done
754 -LINGUASLONG="de_DE ja_JP it_IT uk_UA pl_PL ru_RU"
755 -for l in ${LINGUASLONG}; do
756 - IUSE="${IUSE} linguas_${l%_*}"
757 -done
758 -
759 -CDEPEND="
760 - dev-libs/libpcre
761 - dev-libs/libxml2:2
762 - sys-devel/gettext
763 - sys-libs/ncurses
764 - sys-libs/readline
765 - virtual/lapack
766 - fftw? ( sci-libs/fftw:3.0 )
767 - gui? (
768 - dev-java/avalon-framework
769 - dev-java/batik
770 - dev-java/commons-io
771 - dev-java/commons-logging
772 - dev-java/flexdock
773 - dev-java/fop
774 - =dev-java/gluegen-1*
775 - dev-java/javahelp
776 - dev-java/jeuclid-core
777 - dev-java/jgoodies-looks
778 - >=dev-java/jlatexmath-0.9.4
779 - =dev-java/jogl-1*
780 - dev-java/jrosetta
781 - dev-java/skinlf
782 - dev-java/xmlgraphics-commons
783 - virtual/opengl
784 - doc? ( dev-java/saxon:6.5 )
785 - hdf5? (
786 - dev-java/hdf-java
787 - xcos? ( =dev-java/jgraphx-1.4.1.0 ) ) )
788 - hdf5? ( sci-libs/hdf5 )
789 - matio? ( <sci-libs/matio-1.5 )
790 - tk? ( dev-lang/tk )
791 - umfpack? ( sci-libs/umfpack )"
792 -
793 -RDEPEND="${CDEPEND}
794 - gui? ( >=virtual/jre-1.5 )"
795 -
796 -DEPEND="${CDEPEND}
797 - virtual/pkgconfig
798 - debug? ( dev-util/lcov )
799 - gui? (
800 - >=virtual/jdk-1.5
801 - doc? (
802 - app-text/docbook-xsl-stylesheets
803 - >=dev-java/jlatexmath-fop-0.9.4
804 - dev-java/xml-commons-external )
805 - xcos? ( dev-lang/ocaml ) )
806 - test? ( gui? ( ${VIRTUALX_DEPEND} ) )"
807 -
808 -pkg_pretend() {
809 - use doc && CHECKREQS_MEMORY="512M" check-reqs_pkg_pretend
810 -}
811 -
812 -pkg_setup() {
813 - if use openmp; then
814 - if [[ $(tc-getCC) == *gcc* ]] && ! tc-has-openmp; then
815 - ewarn "You are using a gcc without OpenMP capabilities"
816 - die "Need an OpenMP capable compiler"
817 - fi
818 - FORTRAN_NEED_OPENMP=1
819 - fi
820 - FORTRAN_STANDARD="77 90"
821 - fortran-2_pkg_setup
822 - java-pkg-opt-2_pkg_setup
823 - ALL_LINGUAS=
824 - for l in ${LINGUAS}; do
825 - use linguas_${l} && ALL_LINGUAS="${ALL_LINGUAS} ${l}"
826 - done
827 - for l in ${LINGUASLONG}; do
828 - use linguas_${l%_*} && ALL_LINGUAS="${ALL_LINGUAS} ${l}"
829 - done
830 - export ALL_LINGUAS
831 -}
832 -
833 -src_prepare() {
834 - epatch \
835 - "${FILESDIR}"/${P}-fortran-link.patch \
836 - "${FILESDIR}"/${P}-jvm-detection.patch \
837 - "${FILESDIR}"/${P}-disable-build-help.patch \
838 - "${FILESDIR}"/${P}-hdf18.patch \
839 - "${FILESDIR}"/${P}-no-lhpi.patch \
840 - "${FILESDIR}"/${P}-blas-libs.patch \
841 - "${FILESDIR}"/${P}-no-xcos-deps.patch \
842 - "${FILESDIR}"/${P}-javadoc-utf8.patch \
843 - "${FILESDIR}"/${P}-fix-random-runtime-failures.patch \
844 - "${FILESDIR}"/${P}-gui-no-xcos.patch \
845 - "${FILESDIR}"/${P}-java-version-check.patch
846 -
847 - # need serious as-needed work (inter-dependencies among modules)
848 - # "${FILESDIR}"/${P}-as-needed.patch \
849 - append-ldflags $(no-as-needed)
850 -
851 - # to apply with matio-1.5, unfortunately needs more work
852 - # "${FILESDIR}"/${P}-matio15.patch
853 -
854 - # increases java heap to 512M when building docs (sync with cheqreqs above)
855 - use doc && epatch "${FILESDIR}"/${P}-java-heap.patch
856 -
857 - # make sure library path are preloaded in binaries
858 - sed -i \
859 - -e "s|^LD_LIBRARY_PATH=|LD_LIBRARY_PATH=${EPREFIX}/usr/$(get_libdir)/scilab:|g" \
860 - bin/scilab* || die
861 -
862 - # fix jgraphx min version (fixed upstream)
863 - sed -i -e 's/\[=\]/\[\]/p' configure.ac || die
864 -
865 - # upstream http://bugzilla.scilab.org/show_bug.cgi?id=10244
866 - mv modules/call_scilab/examples/call_scilab/NET/VB.NET/My\ Project/ \
867 - modules/call_scilab/examples/call_scilab/NET/VB.NET/My_Project || die
868 -
869 - # gentoo bug #392363 (fixed upstream)
870 - sed -i \
871 - -e "s|Cl.*ment DAVID|Clement DAVID|g" \
872 - $(find . -iname '*.java') || die
873 -
874 - # add specific gentoo java directories
875 - if use gui; then
876 - sed -i -e "s|-L\$SCI_SRCDIR/bin/|-L\$SCI_SRCDIR/bin/ \
877 - -L$(java-config -i gluegen) \
878 - -L$(java-config -i jogl)|" \
879 - configure.ac || die
880 - sed -i \
881 - -e "/<\/librarypaths>/i\<path value=\"$(java-config -i gluegen)\"\/>" \
882 - -e "/<\/librarypaths>/i\<path value=\"$(java-config -i jogl)\"\/>" \
883 - etc/librarypath.xml || die
884 - if use xcos; then
885 - sed -i \
886 - -e "s|/usr/lib/jni|$(java-config -i hdf-java)|g" \
887 - m4/hdf5.m4 || die
888 - sed -i \
889 - -e "/<\/librarypaths>/i\<path value=\"$(java-config -i hdf-java)\"\/>" \
890 - etc/librarypath.xml || die
891 - fi
892 - fi
893 - java-pkg-opt-2_src_prepare
894 - eautoreconf
895 -}
896 -
897 -src_configure() {
898 - if use gui; then
899 - export JAVA_HOME="$(java-config -O)"
900 - else
901 - unset JAVAC
902 - fi
903 -
904 - export BLAS_LIBS="$($(tc-getPKG_CONFIG) --libs blas)"
905 - export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)"
906 - export F77_LDFLAGS="${LDFLAGS}"
907 - # gentoo bug #302621
908 - use hdf5 && has_version sci-libs/hdf5[mpi] && \
909 - export CXX=mpicxx CC=mpicc FC=mpif77 F77=mpif77
910 -
911 - econf \
912 - --enable-relocatable \
913 - --disable-rpath \
914 - --with-docbook="${EPREFIX}/usr/share/sgml/docbook/xsl-stylesheets" \
915 - --without-pvm \
916 - $(use_enable debug) \
917 - $(use_enable debug code-coverage) \
918 - $(use_enable debug debug-C) \
919 - $(use_enable debug debug-CXX) \
920 - $(use_enable debug debug-fortran) \
921 - $(use_enable debug debug-java) \
922 - $(use_enable debug debug-linker) \
923 - $(use_enable doc build-help) \
924 - $(use_enable nls) \
925 - $(use_enable nls build-localization) \
926 - $(use_enable static-libs static) \
927 - $(use_enable test compilation-tests) \
928 - $(use_with fftw) \
929 - $(use_with gui) \
930 - $(use_with gui javasci) \
931 - $(use_with hdf5) \
932 - $(use_with matio) \
933 - $(use_with openmp) \
934 - $(use_with tk) \
935 - $(use_with umfpack) \
936 - $(use_with xcos) \
937 - $(use_with xcos modelica)
938 -}
939 -
940 -src_compile() {
941 - emake
942 - use doc && emake doc
943 -}
944 -
945 -src_test() {
946 - if use gui; then
947 - Xemake check
948 - else
949 - emake check
950 - fi
951 -}
952 -
953 -src_install() {
954 - default
955 - find "${ED}" -name '*.la' -delete || die
956 - dodoc ACKNOWLEDGEMENTS README_Unix Readme_Visual.txt
957 - insinto /usr/share/mime/packages
958 - doins "${FILESDIR}"/${PN}.xml
959 - use bash-completion && newbashcomp "${FILESDIR}"/"${PN}".bash_completion "${PN}"
960 -}
961 -
962 -pkg_postinst() {
963 - fdo-mime_mime_database_update
964 -}
965 -
966 -pkg_postrm() {
967 - fdo-mime_mime_database_update
968 -}
969
970 diff --git a/sci-mathematics/scilab/scilab-5.4.1.ebuild b/sci-mathematics/scilab/scilab-5.4.1.ebuild
971 deleted file mode 100644
972 index 79bcb83..0000000
973 --- a/sci-mathematics/scilab/scilab-5.4.1.ebuild
974 +++ /dev/null
975 @@ -1,243 +0,0 @@
976 -# Copyright 1999-2014 Gentoo Foundation
977 -# Distributed under the terms of the GNU General Public License v2
978 -# $Header: $
979 -
980 -EAPI=5
981 -
982 -JAVA_PKG_OPT_USE="gui"
983 -VIRTUALX_REQUIRED="manual"
984 -
985 -inherit eutils autotools bash-completion-r1 check-reqs fdo-mime flag-o-matic \
986 - fortran-2 java-pkg-opt-2 toolchain-funcs virtualx
987 -
988 -# Things that don't work:
989 -# - tests
990 -# - can't build without docs (-doc)
991 -
992 -DESCRIPTION="Scientific software package for numerical computations"
993 -HOMEPAGE="http://www.scilab.org/"
994 -SRC_URI="http://www.scilab.org/download/${PV}/${P}-src.tar.gz"
995 -
996 -LICENSE="CeCILL-2"
997 -SLOT="0"
998 -KEYWORDS="~amd64 ~x86"
999 -IUSE="bash-completion debug +doc fftw +gui +matio nls openmp
1000 - static-libs test tk +umfpack +xcos"
1001 -REQUIRED_USE="xcos? ( gui ) doc? ( gui )"
1002 -
1003 -# ALL_LINGUAS variable defined in configure.ac
1004 -LINGUAS="fr_FR zh_CN zh_TW ca_ES es_ES pt_BR"
1005 -for l in ${LINGUAS}; do
1006 - IUSE="${IUSE} linguas_${l}"
1007 -done
1008 -LINGUASLONG="de_DE ja_JP it_IT uk_UA pl_PL ru_RU"
1009 -for l in ${LINGUASLONG}; do
1010 - IUSE="${IUSE} linguas_${l%_*}"
1011 -done
1012 -
1013 -CDEPEND="dev-libs/libpcre
1014 - dev-libs/libxml2:2
1015 - sci-libs/hdf5
1016 - >=sci-libs/arpack-3
1017 - sys-devel/gettext
1018 - sys-libs/ncurses
1019 - sys-libs/readline
1020 - virtual/lapack
1021 - fftw? ( sci-libs/fftw:3.0 )
1022 - gui? (
1023 - dev-java/avalon-framework:4.2
1024 - dev-java/batik:1.7
1025 - dev-java/commons-io:1
1026 - >=dev-java/flexdock-1.2.3:0
1027 - dev-java/fop:0
1028 - dev-java/gluegen:2
1029 - dev-java/javahelp:0
1030 - dev-java/jeuclid-core:0
1031 - dev-java/jgoodies-looks:2.0
1032 - dev-java/jgraphx:1.8
1033 - >=dev-java/jlatexmath-1.0.2:1
1034 - =dev-java/jogl-2.0_rc8-r1:2
1035 - >=dev-java/jrosetta-1.0.4:0
1036 - >=dev-java/scirenderer-1.1.0:1
1037 - dev-java/skinlf:0
1038 - dev-java/xmlgraphics-commons:1.5
1039 - virtual/opengl
1040 - doc? ( dev-java/saxon:6.5
1041 - dev-java/jlatexmath-fop:1 )
1042 - xcos? ( dev-java/commons-logging:0 ) )
1043 - matio? ( <sci-libs/matio-1.5 )
1044 - tk? ( dev-lang/tk )
1045 - umfpack? ( sci-libs/umfpack )"
1046 -
1047 -RDEPEND="${CDEPEND}
1048 - gui? ( >=virtual/jre-1.5 )"
1049 -
1050 -DEPEND="${CDEPEND}
1051 - virtual/pkgconfig
1052 - debug? ( dev-util/lcov )
1053 - gui? (
1054 - >=virtual/jdk-1.5
1055 - doc? ( app-text/docbook-xsl-stylesheets
1056 - dev-java/xml-commons-external:1.4 )
1057 - xcos? ( dev-lang/ocaml ) )
1058 - test? (
1059 - dev-java/junit:4
1060 - gui? ( ${VIRTUALX_DEPEND} ) )"
1061 -
1062 -DOCS=( "ACKNOWLEDGEMENTS" "README_Unix" "Readme_Visual.txt" )
1063 -
1064 -pkg_pretend() {
1065 - use doc && CHECKREQS_MEMORY="512M" check-reqs_pkg_pretend
1066 -}
1067 -
1068 -pkg_setup() {
1069 - if use openmp; then
1070 - if [[ $(tc-getCC) == *gcc* ]] && ! tc-has-openmp; then
1071 - ewarn "You are using a gcc without OpenMP capabilities"
1072 - die "Need an OpenMP capable compiler"
1073 - fi
1074 - FORTRAN_NEED_OPENMP=1
1075 - fi
1076 - FORTRAN_STANDARD="77 90"
1077 - fortran-2_pkg_setup
1078 - java-pkg-opt-2_pkg_setup
1079 -
1080 - ALL_LINGUAS="en_US"
1081 - for l in ${LINGUAS}; do
1082 - use linguas_${l} && ALL_LINGUAS="${ALL_LINGUAS} ${l}"
1083 - done
1084 - for l in ${LINGUASLONG}; do
1085 - use linguas_${l%_*} && ALL_LINGUAS="${ALL_LINGUAS} ${l}"
1086 - done
1087 - export ALL_LINGUAS ALL_LINGUAS_DOC=$ALL_LINGUAS
1088 -}
1089 -
1090 -src_prepare() {
1091 - epatch \
1092 - "${FILESDIR}/${P}-followlinks.patch" \
1093 - "${FILESDIR}/${P}-gluegen.patch" \
1094 - "${FILESDIR}/${P}-fix-random-runtime-failure.patch"
1095 -
1096 - append-ldflags $(no-as-needed)
1097 -
1098 - # increases java heap to 512M when building docs (sync with cheqreqs above)
1099 - use doc && epatch "${FILESDIR}/${P}-java-heap.patch"
1100 -
1101 - # use the LINGUAS variable that we set
1102 - sed -i -e "/^ALL_LINGUAS=/d" -e "/^ALL_LINGUAS_DOC=/d" -i configure.ac ||die
1103 -
1104 - # make sure the DOCBOOK_ROOT variable is set
1105 - sed -i -e "s/xsl-stylesheets-\*/xsl-stylesheets/g" bin/scilab* || die
1106 -
1107 - #add specific gentoo java directories
1108 - if use gui; then
1109 - sed -i -e "s|/usr/lib/jogl2|/usr/lib/jogl-2|" \
1110 - -e "s|/usr/lib64/jogl2|/usr/lib64/jogl-2|" configure.ac || die
1111 - sed -i -e "s|/usr/lib/gluegen2|/usr/lib/gluegen-2|" \
1112 - -e "s|/usr/lib64/gluegen2|/usr/lib64/gluegen-2|" \
1113 - -e "s|AC_CHECK_LIB(\[gluegen2-rt|AC_CHECK_LIB([gluegen-rt|" \
1114 - configure.ac || die
1115 -
1116 - sed -i -e "s/jogl2/jogl-2/" -e "s/gluegen2/gluegen-2/" \
1117 - etc/librarypath.xml || die
1118 - fi
1119 -
1120 - mkdir jar || die
1121 - pushd jar
1122 - java-pkg_jar-from jgraphx-1.8,jlatexmath-1,flexdock,skinlf
1123 - java-pkg_jar-from jgoodies-looks-2.0,jrosetta,scirenderer-1
1124 - java-pkg_jar-from avalon-framework-4.2,jeuclid-core
1125 - java-pkg_jar-from xmlgraphics-commons-1.5,commons-io-1
1126 - java-pkg_jar-from jogl-2 jogl.all.jar jogl2.jar
1127 - java-pkg_jar-from gluegen-2 gluegen-rt.jar gluegen2-rt.jar
1128 - java-pkg_jar-from batik-1.7 batik-all.jar
1129 - java-pkg_jar-from fop fop.jar
1130 - java-pkg_jar-from javahelp jhall.jar
1131 - if use xcos; then
1132 - java-pkg_jar-from commons-logging
1133 - fi
1134 - if use doc; then
1135 - java-pkg_jar-from jlatexmath-fop-1,saxon-6.5
1136 - java-pkg_jar-from xml-commons-external-1.4 xml-apis-ext.jar
1137 - fi
1138 - if use test; then
1139 - java-pkg_jar-from junit-4 junit.jar junit4.jar
1140 - fi
1141 - popd
1142 -
1143 - java-pkg-opt-2_src_prepare
1144 - eautoconf
1145 -}
1146 -
1147 -src_configure() {
1148 - if use gui; then
1149 - export JAVA_HOME="$(java-config -O)"
1150 - else
1151 - unset JAVAC
1152 - fi
1153 -
1154 - export BLAS_LIBS="$($(tc-getPKG_CONFIG) --libs blas)"
1155 - export LAPACK_LIBS="$($(tc-getPKG_CONFIG) --libs lapack)"
1156 - export F77_LDFLAGS="${LDFLAGS}"
1157 - # gentoo bug #302621
1158 - has_version sci-libs/hdf5[mpi] && \
1159 - export CXX=mpicxx CC=mpicc
1160 -
1161 - econf \
1162 - --enable-relocatable \
1163 - --disable-rpath \
1164 - --with-docbook="${EPREFIX}/usr/share/sgml/docbook/xsl-stylesheets" \
1165 - $(use_enable debug) \
1166 - $(use_enable debug code-coverage) \
1167 - $(use_enable debug debug-C) \
1168 - $(use_enable debug debug-CXX) \
1169 - $(use_enable debug debug-fortran) \
1170 - $(use_enable debug debug-java) \
1171 - $(use_enable debug debug-linker) \
1172 - $(use_enable doc build-help) \
1173 - $(use_enable nls) \
1174 - $(use_enable nls build-localization) \
1175 - $(use_enable static-libs static) \
1176 - $(use_enable test compilation-tests) \
1177 - $(use_with fftw) \
1178 - $(use_with gui) \
1179 - $(use_with gui javasci) \
1180 - $(use_with matio) \
1181 - $(use_with openmp) \
1182 - $(use_with tk) \
1183 - $(use_with umfpack) \
1184 - $(use_with xcos) \
1185 - $(use_with xcos modelica)
1186 -}
1187 -
1188 -src_compile() {
1189 - emake
1190 - use doc && emake doc
1191 -}
1192 -
1193 -src_test() {
1194 - if use gui; then
1195 - Xemake check
1196 - else
1197 - emake check
1198 - fi
1199 -}
1200 -
1201 -src_install() {
1202 - default
1203 - prune_libtool_files --all
1204 - rm -rf "${D}"/usr/share/scilab/modules/*/tests ||die
1205 - use bash-completion && newbashcomp "${FILESDIR}"/"${PN}".bash_completion "${PN}"
1206 - echo "LD_LIBRARY_MASK=libverify.so
1207 -SEARCH_DIRS_MASK=${EPREFIX}/usr/$(get_libdir)/scilab" \
1208 - > 50-"${PN}"
1209 - insinto /etc/revdep-rebuild && doins "50-${PN}"
1210 -}
1211 -
1212 -pkg_postinst() {
1213 - fdo-mime_mime_database_update
1214 -}
1215 -
1216 -pkg_postrm() {
1217 - fdo-mime_mime_database_update
1218 -}