1 |
commit: 5e0372b6e22e7499c65c0fc01a3532797e8a12b4 |
2 |
Author: Guillaume Horel <guillaume.horel <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Nov 27 03:26:51 2012 +0000 |
4 |
Commit: Guillaume Horel <guillaume.horel <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Nov 27 03:29:53 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=5e0372b6 |
7 |
|
8 |
sci-mathematics/scilab various fixes |
9 |
|
10 |
- make sure the linguas variables have an effect |
11 |
- scilab startup script didn't set DOCBOOK_ROOT variable |
12 |
|
13 |
--- |
14 |
sci-mathematics/scilab/scilab-5.4.0.ebuild | 14 +++++++++----- |
15 |
1 files changed, 9 insertions(+), 5 deletions(-) |
16 |
|
17 |
diff --git a/sci-mathematics/scilab/scilab-5.4.0.ebuild b/sci-mathematics/scilab/scilab-5.4.0.ebuild |
18 |
index f2e4e6c..6b7a7fe 100644 |
19 |
--- a/sci-mathematics/scilab/scilab-5.4.0.ebuild |
20 |
+++ b/sci-mathematics/scilab/scilab-5.4.0.ebuild |
21 |
@@ -105,14 +105,15 @@ pkg_setup() { |
22 |
FORTRAN_STANDARD="77 90" |
23 |
fortran-2_pkg_setup |
24 |
java-pkg-opt-2_pkg_setup |
25 |
- ALL_LINGUAS= |
26 |
+ ALL_LINGUAS="en_US" |
27 |
+ ALL_LINGUAS_DOC="en_US" |
28 |
for l in ${LINGUAS}; do |
29 |
use linguas_${l} && ALL_LINGUAS="${ALL_LINGUAS} ${l}" |
30 |
done |
31 |
for l in ${LINGUASLONG}; do |
32 |
use linguas_${l%_*} && ALL_LINGUAS="${ALL_LINGUAS} ${l}" |
33 |
done |
34 |
- export ALL_LINGUAS |
35 |
+ export ALL_LINGUAS ALL_LINGUAS_DOC=$ALL_LINGUAS |
36 |
} |
37 |
|
38 |
src_prepare() { |
39 |
@@ -127,11 +128,13 @@ src_prepare() { |
40 |
# increases java heap to 512M when building docs (sync with cheqreqs above) |
41 |
use doc && epatch "${FILESDIR}/${P}-java-heap.patch" |
42 |
|
43 |
+ sed -i -e "/^ALL_LINGUAS=/d" -e "/^ALL_LINGUAS_DOC=/d" -i configure.ac |
44 |
# make sure library path are preloaded in binaries |
45 |
sed -i \ |
46 |
-e "s|^LD_LIBRARY_PATH=|LD_LIBRARY_PATH=${EPREFIX}/usr/$(get_libdir)/scilab:|g" \ |
47 |
bin/scilab* || die |
48 |
- |
49 |
+ # make sure it exports the DOCBOOK_ROOT variable |
50 |
+ sed -i -e "s/xsl-stylesheets-\*/xsl-stylesheets/g" bin/scilab* || die |
51 |
#add specific gentoo java directories |
52 |
if use gui; then |
53 |
sed -i -e "s|/usr/lib/jogl|/usr/lib/jogl-2|" \ |
54 |
@@ -144,7 +147,8 @@ src_prepare() { |
55 |
sed -i -e "s/jogl/jogl-2/" -e "s/gluegen/gluegen-2/" \ |
56 |
etc/librarypath.xml || die |
57 |
fi |
58 |
- mkdir jar; cd jar |
59 |
+ mkdir jar || die |
60 |
+ pushd jar |
61 |
java-pkg_jar-from jgraphx-1.8,jlatexmath-1,flexdock,skinlf |
62 |
java-pkg_jar-from jgoodies-looks-2.0,jrosetta,scirenderer-1 |
63 |
java-pkg_jar-from avalon-framework-4.2,saxon-6.5,jeuclid-core |
64 |
@@ -159,7 +163,7 @@ src_prepare() { |
65 |
if use test; then |
66 |
java-pkg_jar-from junit-4 junit.jar junit4.jar |
67 |
fi |
68 |
- cd .. |
69 |
+ popd |
70 |
|
71 |
java-pkg-opt-2_src_prepare |
72 |
eautoconf |