# ChangeLog for sci-mathematics/scilab
-# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/ChangeLog,v 1.30 2006/12/21 06:44:06 compnerd Exp $
+# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/ChangeLog,v 1.31 2007/02/11 20:26:21 markusle Exp $
+
+*scilab-4.1 (11 Feb 2007)
+
+ 11 Feb 2007; Markus Dittrich <markusle@gentoo.org>
+ +files/scilab-4.1-header-fix.patch, +scilab-4.1.ebuild:
+ Version bump. Thanks much to Michael Frank <mfrank@franksys.de>
+ for his ebuild (see bug #157508).
21 Dec 2006; Saleem Abdulrasool <compnerd@gentoo.org>
-files/scilab-2.7-configure.patch, -scilab-2.7-r3.ebuild:
MD5 49fb9cb0862b4d8eceb2b45fb1abde18 files/scilab-4.0-makefile.patch 1190
RMD160 62627b2736ccf8ad7e56f11331bdb8540c5c0ced files/scilab-4.0-makefile.patch 1190
SHA256 6f552482a5933103133b1e9245166a6d23478fffe57cccac2166f2889cff140f files/scilab-4.0-makefile.patch 1190
+AUX scilab-4.1-examples.patch 7399 RMD160 a026a9c0e585a74f9cb3d434e67f3375e5fa4f6a SHA1 19326db03cf4a4a26d3b8448d9c663a3d774d247 SHA256 99b49abc82d9a881c7d8d15c2ca8fec678ddb8b9efedc2ec3347f6156886716d
+MD5 4965960b604d55bf0df8da887d38f610 files/scilab-4.1-examples.patch 7399
+RMD160 a026a9c0e585a74f9cb3d434e67f3375e5fa4f6a files/scilab-4.1-examples.patch 7399
+SHA256 99b49abc82d9a881c7d8d15c2ca8fec678ddb8b9efedc2ec3347f6156886716d files/scilab-4.1-examples.patch 7399
+AUX scilab-4.1-header-fix.patch 3661 RMD160 f38f39a9332f4e27952bed1ccd772468f28fd492 SHA1 2870e36107a14f341dc4b6ade13dea51cad50f39 SHA256 c84b109e4ca58645d958542eaf9fce77a58ef76f26c03b038fb89642d8a47766
+MD5 8f4c8235bf0d5812f1e4ec748f46fae0 files/scilab-4.1-header-fix.patch 3661
+RMD160 f38f39a9332f4e27952bed1ccd772468f28fd492 files/scilab-4.1-header-fix.patch 3661
+SHA256 c84b109e4ca58645d958542eaf9fce77a58ef76f26c03b038fb89642d8a47766 files/scilab-4.1-header-fix.patch 3661
AUX scilab-ppc-gcc4.patch 1045 RMD160 db4219fc04b5555e702d823425735125f3000c00 SHA1 ba001966a62202f66188ba4be1abe483f56f8fbe SHA256 0844c4edad45ba23219b8d3405104a8bbb2b45e2b7b742f7aaeb10ce5e92388a
MD5 d64e32c9d98d776a5bdce28e6044cff4 files/scilab-ppc-gcc4.patch 1045
RMD160 db4219fc04b5555e702d823425735125f3000c00 files/scilab-ppc-gcc4.patch 1045
SHA256 0844c4edad45ba23219b8d3405104a8bbb2b45e2b7b742f7aaeb10ce5e92388a files/scilab-ppc-gcc4.patch 1045
DIST scilab-3.1.1-src.tar.gz 14261772 RMD160 363486c6c9d1e64a28edcd002651e3c9d3b1eb73 SHA1 63cae13441befb795d32cec5f825042b6b4e74b3 SHA256 1d75ec6b9e26216b69c31a4cb648a1e7d6045e3f1305019491cc3e1846ca60e8
DIST scilab-4.0-src.tar.gz 12523941 RMD160 13e8637b0793650b0dd2ae07ccaa6bbbff62375c SHA1 841dfe0837cd44a0608e70fe2c49023312481fd0 SHA256 e0f0e784909020c34c4512cf34f946373950cb5f8ee5499a16af73880189d41d
+DIST scilab-4.1-src.tar.gz 13164450 RMD160 6ed27ce7dcfb9231b5f3042cb7b830015d102df7 SHA1 7a8381a9a69ce280ae718ee59f4c14001b61f4b7 SHA256 e2b36f6095b824feec3489c30f640bd809b3dc55bd5487319cbd641ac14fac80
EBUILD scilab-3.1.1-r3.ebuild 4876 RMD160 61a58eae2dff32abab4e07a5f0049d7234bc8e76 SHA1 96b31546fbaf6f91b3db0bb79f80621e7e9cf8f9 SHA256 7fdc8b7a28ea71b962d503ab8125241ed7e3ceb531cab4b1d3329510e911c03e
MD5 88fe35577e6d544b620686c4cca653e9 scilab-3.1.1-r3.ebuild 4876
RMD160 61a58eae2dff32abab4e07a5f0049d7234bc8e76 scilab-3.1.1-r3.ebuild 4876
MD5 0c658156196eeed9bae6a7e3d978f368 scilab-4.0.ebuild 3949
RMD160 7d18001b2f23b9de7598915929f72846ab6cff53 scilab-4.0.ebuild 3949
SHA256 d72cdf698c115e363e05ed73fe0f9d4ace357b8fb48f0531758aa53b831af780 scilab-4.0.ebuild 3949
-MISC ChangeLog 8562 RMD160 2ff6edd43cdfad2550b5bb992b1dc2e0fbf73be7 SHA1 1e66d6c349d87431e952bd103055def9dfc65adf SHA256 34a8725507ffa38030d08e01d704237f10a1278a19cd069411165fc56af56776
-MD5 3b81be499fbcab0bc79f94b38ea880f9 ChangeLog 8562
-RMD160 2ff6edd43cdfad2550b5bb992b1dc2e0fbf73be7 ChangeLog 8562
-SHA256 34a8725507ffa38030d08e01d704237f10a1278a19cd069411165fc56af56776 ChangeLog 8562
+EBUILD scilab-4.1.ebuild 4412 RMD160 3c5fcece542765fb584602882a73295594dc9315 SHA1 47c03479ee9ddd9e72cdd9099234d92c6540cd43 SHA256 4b326749aa32a549a07156e8bf7b063868acfb0c3d26c558f83192a6f2ed80b6
+MD5 47006d4082399e3a9b2b2133d42d83de scilab-4.1.ebuild 4412
+RMD160 3c5fcece542765fb584602882a73295594dc9315 scilab-4.1.ebuild 4412
+SHA256 4b326749aa32a549a07156e8bf7b063868acfb0c3d26c558f83192a6f2ed80b6 scilab-4.1.ebuild 4412
+MISC ChangeLog 8803 RMD160 ac05bbb0700d3d7138ce01aa95fca89820d66bb0 SHA1 f040d794b7bbc71f3290d8ad3a1a3aa3c0f7673e SHA256 195cd214f842768adba81de689c85de690ca9c5bce0b590d4fef41bc90624f7d
+MD5 ff1c137203d35fb0e9088870babf2ac7 ChangeLog 8803
+RMD160 ac05bbb0700d3d7138ce01aa95fca89820d66bb0 ChangeLog 8803
+SHA256 195cd214f842768adba81de689c85de690ca9c5bce0b590d4fef41bc90624f7d ChangeLog 8803
MISC metadata.xml 168 RMD160 d98790cf055dc0f820c63d65f485b9dcfa8950f4 SHA1 95c9e4f7368f82053d631bbcd469612c92ca13cb SHA256 c0cc8d6ab9385750af753ddc504299ed90a70b5c4c655f6c77d865917a8829c9
MD5 30bc69a424d7634aae9c1e4203365d3d metadata.xml 168
RMD160 d98790cf055dc0f820c63d65f485b9dcfa8950f4 metadata.xml 168
MD5 942cb58288349d75fab903ad93a89e78 files/digest-scilab-4.0 250
RMD160 f4ee6ebd8218d59dd40f0a904b4dcfd5170a54a4 files/digest-scilab-4.0 250
SHA256 f0a3368ccf9db2d8654c3f0b5ec04a19b9ecabba49457d9f604f18293525b708 files/digest-scilab-4.0 250
+MD5 896b9796fcade4723a92c36dc4342ce7 files/digest-scilab-4.1 250
+RMD160 fb7e90d63fc7dd02199f9a5bc37fd63b4bc968c4 files/digest-scilab-4.1 250
+SHA256 3a373162c4fe7864565f76765e7b337b576455febe70d6d5c418601eedb3fd9a files/digest-scilab-4.1 250
--- /dev/null
+MD5 3003fe63088558b931a11127fb8d8ccc scilab-4.1-src.tar.gz 13164450
+RMD160 6ed27ce7dcfb9231b5f3042cb7b830015d102df7 scilab-4.1-src.tar.gz 13164450
+SHA256 e2b36f6095b824feec3489c30f640bd809b3dc55bd5487319cbd641ac14fac80 scilab-4.1-src.tar.gz 13164450
--- /dev/null
+diff -Naur examples/callsci/Makefile examples-new/callsci/Makefile
+--- examples/callsci/Makefile 2007-02-11 12:00:41.000000000 -0500
++++ examples-new/callsci/Makefile 2007-02-11 12:38:26.000000000 -0500
+@@ -1,7 +1,7 @@
+ SHELL = /bin/sh
+
+-SCIDIR=../../
+-include ../../Makefile.incl
++SCIDIR= gentoo-scidir
++include $(SCIDIR)/Makefile.incl
+
+ all :: info
+
+diff -Naur examples/interface-general/Makefile examples-new/interface-general/Makefile
+--- examples/interface-general/Makefile 2007-02-11 12:00:41.000000000 -0500
++++ examples-new/interface-general/Makefile 2007-02-11 12:38:52.000000000 -0500
+@@ -1,6 +1,7 @@
+
+ include Path.incl
+
++SCIDIR= gentoo-scidir
+ include $(SCIDIR)/Makefile.incl
+
+ all :: Makelib
+diff -Naur examples/interface-general/lib/Makefile examples-new/interface-general/lib/Makefile
+--- examples/interface-general/lib/Makefile 2007-02-11 12:00:41.000000000 -0500
++++ examples-new/interface-general/lib/Makefile 2007-02-11 12:39:04.000000000 -0500
+@@ -1,4 +1,4 @@
+-SCIDIR=../../../
++SCIDIR= gentoo-scidir
+
+ include $(SCIDIR)/Makefile.incl
+
+diff -Naur examples/interface-lapack/Makefile examples-new/interface-lapack/Makefile
+--- examples/interface-lapack/Makefile 2007-02-11 12:00:41.000000000 -0500
++++ examples-new/interface-lapack/Makefile 2007-02-11 12:39:23.000000000 -0500
+@@ -1,6 +1,6 @@
+ SHELL = /bin/sh
+
+-SCIDIR = ../..
++SCIDIR= gentoo-scidir
+
+ LIBRARY = lapackscilab.a
+
+diff -Naur examples/interface-multi-so/Makefile examples-new/interface-multi-so/Makefile
+--- examples/interface-multi-so/Makefile 2007-02-11 12:00:41.000000000 -0500
++++ examples-new/interface-multi-so/Makefile 2007-02-11 12:39:50.000000000 -0500
+@@ -1,5 +1,5 @@
+ SHELL = /bin/sh
+-SCIDIR=../..
++SCIDIR= gentoo-scidir
+
+ include Path.incl
+
+diff -Naur examples/interface-multi-so/lib/Makefile examples-new/interface-multi-so/lib/Makefile
+--- examples/interface-multi-so/lib/Makefile 2007-02-11 12:00:41.000000000 -0500
++++ examples-new/interface-multi-so/lib/Makefile 2007-02-11 12:40:04.000000000 -0500
+@@ -1,4 +1,4 @@
+-SCIDIR=../../../
++SCIDIR= gentoo-scidir
+
+ include $(SCIDIR)/Makefile.incl
+
+diff -Naur examples/interface-tour/Makefile examples-new/interface-tour/Makefile
+--- examples/interface-tour/Makefile 2007-02-11 12:00:41.000000000 -0500
++++ examples-new/interface-tour/Makefile 2007-02-11 12:40:21.000000000 -0500
+@@ -1,6 +1,6 @@
+ SHELL = /bin/sh
+
+-SCIDIR = ../..
++SCIDIR= gentoo-scidir
+
+ LIBRARY = examples.a
+
+diff -Naur examples/interface-tour-so/Makefile examples-new/interface-tour-so/Makefile
+--- examples/interface-tour-so/Makefile 2007-02-11 12:00:41.000000000 -0500
++++ examples-new/interface-tour-so/Makefile 2007-02-11 12:40:32.000000000 -0500
+@@ -1,4 +1,4 @@
+-SCIDIR=../../
++SCIDIR= gentoo-scidir
+
+ include $(SCIDIR)/Makefile.incl
+
+diff -Naur examples/interface-tutorial/Makefile examples-new/interface-tutorial/Makefile
+--- examples/interface-tutorial/Makefile 2007-02-11 12:00:41.000000000 -0500
++++ examples-new/interface-tutorial/Makefile 2007-02-11 12:40:47.000000000 -0500
+@@ -1,6 +1,6 @@
+ SHELL = /bin/sh
+
+-SCIDIR = ../..
++SCIDIR= gentoo-scidir
+
+ LIBRARY = tutorial.a
+
+diff -Naur examples/interface-tutorial-so/Makefile examples-new/interface-tutorial-so/Makefile
+--- examples/interface-tutorial-so/Makefile 2007-02-11 12:00:41.000000000 -0500
++++ examples-new/interface-tutorial-so/Makefile 2007-02-11 12:40:57.000000000 -0500
+@@ -1,4 +1,4 @@
+-SCIDIR=../../
++SCIDIR= gentoo-scidir
+
+ include $(SCIDIR)/Makefile.incl
+
+diff -Naur examples/intersci-examples/Makefile examples-new/intersci-examples/Makefile
+--- examples/intersci-examples/Makefile 2007-02-11 12:00:41.000000000 -0500
++++ examples-new/intersci-examples/Makefile 2007-02-11 12:41:21.000000000 -0500
+@@ -1,9 +1,9 @@
+ SHELL = /bin/sh
+
+-SCIDIR=../..
++SCIDIR= gentoo-scidir
+ INTERSCI = $(SCIDIR)/bin/intersci
+
+-include ../../Makefile.incl
++include $(SCIDIR)/Makefile.incl
+
+ all:: info
+
+diff -Naur examples/intersci-examples-so/Makefile examples-new/intersci-examples-so/Makefile
+--- examples/intersci-examples-so/Makefile 2007-02-11 12:00:41.000000000 -0500
++++ examples-new/intersci-examples-so/Makefile 2007-02-11 12:41:32.000000000 -0500
+@@ -2,10 +2,10 @@
+
+ SHELL = /bin/sh
+
+-SCIDIR=../..
++SCIDIR= gentoo-scidir
+ INTERSCI = $(SCIDIR)/bin/intersci-n
+
+-include ../../Makefile.incl
++include $(SCIDIR)/Makefile.incl
+
+ CFLAGS = $(CC_OPTIONS) $(CC_PICFLAGS) -I$(SCIDIR)/routines
+ FFLAGS = $(FC_OPTIONS) $(FC_PICFLAGS) -I$(SCIDIR)/routines
+diff -Naur examples/link-examples/Makefile examples-new/link-examples/Makefile
+--- examples/link-examples/Makefile 2007-02-11 12:00:41.000000000 -0500
++++ examples-new/link-examples/Makefile 2007-02-11 12:41:46.000000000 -0500
+@@ -1,6 +1,6 @@
+ SHELL = /bin/sh
+-SCIDIR=../..
+-include ../../Makefile.incl
++SCIDIR= gentoo-scidir
++include $(SCIDIR)/Makefile.incl
+
+ all:: info
+
+diff -Naur examples/link-examples-so/Makefile examples-new/link-examples-so/Makefile
+--- examples/link-examples-so/Makefile 2007-02-11 12:00:41.000000000 -0500
++++ examples-new/link-examples-so/Makefile 2007-02-11 12:41:57.000000000 -0500
+@@ -1,5 +1,5 @@
+ SHELL = /bin/sh
+-SCIDIR=../..
++SCIDIR= gentoo-scidir
+
+ include $(SCIDIR)/Makefile.incl
+
+diff -Naur examples/macros-examples/Makefile examples-new/macros-examples/Makefile
+--- examples/macros-examples/Makefile 2007-02-11 12:00:41.000000000 -0500
++++ examples-new/macros-examples/Makefile 2007-02-11 12:42:10.000000000 -0500
+@@ -2,7 +2,7 @@
+
+ # SCIDIR must be bound to your running Scilab directory
+ # SCIDIR1 also for msvc Makfile
+-SCIDIR=../..
++SCIDIR= gentoo-scidir
+ SCIDIR1=..\..
+
+ include $(SCIDIR)/Makefile.incl
+diff -Naur examples/man-examples/Makefile examples-new/man-examples/Makefile
+--- examples/man-examples/Makefile 2007-02-11 12:00:41.000000000 -0500
++++ examples-new/man-examples/Makefile 2007-02-11 12:42:23.000000000 -0500
+@@ -1,10 +1,11 @@
+ SHELL = /bin/sh
+ # just to know where is scilab
+-include ../../Path.incl
++SCIDIR= gentoo-scidir
++include $(SCIDIR)/Path.incl
+
+ # to get FILES_TO_CLEAN
+ # include $(SCIDIR)/Makefile.incl
+-include ../../Makefile.incl
++include $(SCIDIR)/Makefile.incl
+
+ # provide the list of sub-directories and format request
+ # in format.sci
+diff -Naur examples/man-examples-xml/Makefile examples-new/man-examples-xml/Makefile
+--- examples/man-examples-xml/Makefile 2007-02-11 12:00:41.000000000 -0500
++++ examples-new/man-examples-xml/Makefile 2007-02-11 12:42:34.000000000 -0500
+@@ -1,6 +1,7 @@
+ SHELL = /bin/sh
+ # just to know where is scilab
+-include ../../Path.incl
++SCIDIR= gentoo-scidir
++include $(SCIDIR)/Path.incl
+
+ # to get FILES_TO_CLEAN
+ include $(SCIDIR)/Makefile.incl
+diff -Naur examples/mex-examples/Makefile examples-new/mex-examples/Makefile
+--- examples/mex-examples/Makefile 2007-02-11 12:00:41.000000000 -0500
++++ examples-new/mex-examples/Makefile 2007-02-11 12:42:47.000000000 -0500
+@@ -1,7 +1,7 @@
+ SHELL = /bin/sh
+
+-SCIDIR=../../
+-include ../../Makefile.incl
++SCIDIR= gentoo-scidir
++include $(SCIDIR)/Makefile.incl
+
+
+ SUBDIRS = cmex fmex mexglx mexdll
+diff -Naur examples/misc-examples/Makefile examples-new/misc-examples/Makefile
+--- examples/misc-examples/Makefile 2007-02-11 12:00:41.000000000 -0500
++++ examples-new/misc-examples/Makefile 2007-02-11 12:43:00.000000000 -0500
+@@ -1,7 +1,7 @@
+ SHELL = /bin/sh
+
+-SCIDIR=../..
+-include ../../Makefile.incl
++SCIDIR= gentoo-scidir
++include $(SCIDIR)/Makefile.incl
+
+ all:: info
+
--- /dev/null
+diff -Naur scilab-4.1/pvm3/pvmgs/pvmgsu_aux.c scilab-4.1-new/pvm3/pvmgs/pvmgsu_aux.c
+--- scilab-4.1/pvm3/pvmgs/pvmgsu_aux.c 2002-10-14 10:28:41.000000000 -0400
++++ scilab-4.1-new/pvm3/pvmgs/pvmgsu_aux.c 2007-02-10 14:56:41.000000000 -0500
+@@ -53,6 +53,8 @@
+ #include "pvmgsd.h"
+ #include "pvmproto.h"
+
++#include <strings.h>
++
+ extern int pvm_errno;
+ extern int pvmmytid;
+ extern int pvmtoplvl;
+diff -Naur scilab-4.1/pvm3/src/hoster.c scilab-4.1-new/pvm3/src/hoster.c
+--- scilab-4.1/pvm3/src/hoster.c 2005-11-23 05:12:27.000000000 -0500
++++ scilab-4.1-new/pvm3/src/hoster.c 2007-02-10 23:33:45.000000000 -0500
+@@ -263,6 +263,7 @@
+ #include "bfunc.h"
+ #include <pvmtev.h>
+ #include "global.h"
++#include <unistd.h>
+
+ #ifdef IMA_BEOSCYLD
+ #include <string.h>
+diff -Naur scilab-4.1/pvm3/src/lpvm.c scilab-4.1-new/pvm3/src/lpvm.c
+--- scilab-4.1/pvm3/src/lpvm.c 2002-10-15 03:40:21.000000000 -0400
++++ scilab-4.1-new/pvm3/src/lpvm.c 2007-02-10 23:34:09.000000000 -0500
+@@ -607,6 +607,7 @@
+ #include "waitc.h"
+ #include "global.h"
+ #include "lmsg.h"
++#include "unistd.h"
+
+ #ifdef IMA_MPP
+ #include "pvmmimd.h"
+diff -Naur scilab-4.1/pvm3/tracer/cmd.c scilab-4.1-new/pvm3/tracer/cmd.c
+--- scilab-4.1/pvm3/tracer/cmd.c 2002-10-14 11:00:41.000000000 -0400
++++ scilab-4.1-new/pvm3/tracer/cmd.c 2007-02-10 14:54:48.000000000 -0500
+@@ -31,6 +31,8 @@
+
+ #include "trcglob.h"
+
++#include <stdlib.h>
++
+ #ifdef SYSVSTR
+ #include <string.h>
+ #else
+diff -Naur scilab-4.1/pvm3/tracer/tracer.c scilab-4.1-new/pvm3/tracer/tracer.c
+--- scilab-4.1/pvm3/tracer/tracer.c 2002-10-14 11:00:41.000000000 -0400
++++ scilab-4.1-new/pvm3/tracer/tracer.c 2007-02-10 14:54:08.000000000 -0500
+@@ -31,6 +31,8 @@
+
+ #include "trcglob.h"
+
++#include <stdlib.h>
++
+ #ifdef NEEDSSELECTH
+ #include <sys/select.h>
+ #endif
+diff -Naur scilab-4.1/pvm3/tracer/trccompat.c scilab-4.1-new/pvm3/tracer/trccompat.c
+--- scilab-4.1/pvm3/tracer/trccompat.c 2002-10-14 11:00:41.000000000 -0400
++++ scilab-4.1-new/pvm3/tracer/trccompat.c 2007-02-10 14:56:02.000000000 -0500
+@@ -28,6 +28,7 @@
+ /* Tracer Headers */
+
+ #include "trclib.h"
++#include <stdlib.h>
+
+ #include "trccompat.h"
+
+diff -Naur scilab-4.1/pvm3/tracer/trcsort.c scilab-4.1-new/pvm3/tracer/trcsort.c
+--- scilab-4.1/pvm3/tracer/trcsort.c 2002-10-15 08:09:48.000000000 -0400
++++ scilab-4.1-new/pvm3/tracer/trcsort.c 2007-02-10 14:55:01.000000000 -0500
+@@ -28,6 +28,7 @@
+ /* Tracer Headers */
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+
+diff -Naur scilab-4.1/pvm3/tracer/trcutil.c scilab-4.1-new/pvm3/tracer/trcutil.c
+--- scilab-4.1/pvm3/tracer/trcutil.c 2002-10-14 11:00:41.000000000 -0400
++++ scilab-4.1-new/pvm3/tracer/trcutil.c 2007-02-10 14:55:25.000000000 -0500
+@@ -26,6 +26,7 @@
+
+
+ #include "trclib.h"
++#include <stdlib.h>
+
+ #ifdef WIN32
+ #include <winsock.h>
+diff -Naur scilab-4.1/routines/graphics/Events.c scilab-4.1-new/routines/graphics/Events.c
+--- scilab-4.1/routines/graphics/Events.c 2005-12-07 04:31:48.000000000 -0500
++++ scilab-4.1-new/routines/graphics/Events.c 2007-02-10 14:33:06.000000000 -0500
+@@ -3,6 +3,7 @@
+ * jpc@cermics.enpc.fr
+ --------------------------------------------------------------------------*/
+ #include <stdio.h>
++#include <string.h>
+ #include "bcg.h"
+
+ typedef struct but
+diff -Naur scilab-4.1/routines/scicos/matscicos.h scilab-4.1-new/routines/scicos/matscicos.h
+--- scilab-4.1/routines/scicos/matscicos.h 2005-11-05 16:19:15.000000000 -0500
++++ scilab-4.1-new/routines/scicos/matscicos.h 2007-02-10 23:32:45.000000000 -0500
+@@ -10,6 +10,7 @@
+ #include <stdio.h>
+ #endif
+
++#include <string.h>
+ #include "../machine.h"
+ #include "../stack-c.h"
+
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/scilab-4.1.ebuild,v 1.1 2007/02/11 20:26:21 markusle Exp $
+
+inherit eutils fortran toolchain-funcs multilib autotools java-pkg-opt-2
+
+DESCRIPTION="Scientific software package for numerical computations (Matlab lookalike)"
+LICENSE="scilab"
+SRC_URI="http://scilabsoft.inria.fr/download/stable/${P}-src.tar.gz"
+HOMEPAGE="http://www.scilab.org/"
+
+SLOT="0"
+IUSE="ocaml tk gtk Xaw3d java"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND="virtual/blas
+ virtual/lapack
+ sys-libs/ncurses
+ gtk? (
+ media-libs/jpeg
+ media-libs/libpng
+ sys-libs/zlib
+ >=x11-libs/gtk+-2
+ >=x11-libs/libzvt-2
+ x11-libs/vte
+ =gnome-extra/gtkhtml-2*
+ )
+ tk? ( >=dev-lang/tk-8.4
+ >=dev-lang/tcl-8.4 )
+ Xaw3d? ( x11-libs/Xaw3d )
+ ocaml? ( dev-lang/ocaml )
+ java? ( >=virtual/jdk-1.4 )"
+
+DEPEND="${RDEPEND}
+ app-text/sablotron"
+
+pkg_setup() {
+ if ! use gtk && ! use tk; then
+ echo
+ eerror 'scilab must be built with either USE="gtk" or USE="tk"'
+ die
+ fi
+
+ if use gtk && use tk; then
+ echo
+ ewarn "You have selected both gtk and tk support which"
+ ewarn "are mutually exclusive. In this case, the gtk "
+ ewarn "interface will be built."
+ epause 5
+ fi
+
+ java-pkg-opt-2_pkg_setup
+ need_fortran gfortran g77
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${PN}-4.0-makefile.patch
+ epatch "${FILESDIR}"/${PN}-4.0-java-pic.patch
+ epatch "${FILESDIR}"/${P}-header-fix.patch
+ epatch "${FILESDIR}"/${P}-examples.patch
+
+ sed -e '/^ATLAS_LAPACKBLAS\>/s,=.*,= $(ATLASDIR)/liblapack.so $(ATLASDIR)/libblas.so $(ATLASDIR)/libcblas.so,' \
+ -e 's,$(SCIDIR)/libs/lapack.a,,' \
+ -i Makefile.OBJ.in || die "Failed to fix Makefile.OBJ.in"
+
+ sed -e "s:\$(PREFIX):\${D}/\$(PREFIX):g" \
+ -e "s:\$(PREFIX)/lib:\$(PREFIX)/$(get_libdir):g" \
+ -i Makefile.in || die "Failed to fix Makefile.in"
+
+ sed -e "s:@CC_OPTIONS@:${CFLAGS}:" \
+ -e "s:@FC_OPTIONS@:${FFLAGS}:" \
+ -e "s:@LD_LDFLAGS@:${LDFLAGS} -lpthread:" \
+ -i Makefile.incl.in || die "Failed to fix Makefile.incl.in"
+
+ # fix bad C practices by failure of scilab build system to
+ # include proper headers
+ sed -e "s:-DNOTMPNAM:-DNOTMPNAM -DSYSVSTR -DHASSTDLIB:" \
+ -i pvm3/conf/LINUX.def -i pvm3/conf/LINUX64.def || \
+ die "Failed to fix pvm3 conf scripts."
+
+ # fix examples
+ local MAKE_TO_FIX="callsci inter* link* m* interface-multi-so/lib interface-general/lib"
+ cd examples/
+ for name in ${MAKE_TO_FIX}; do
+ sed -e "s:gentoo-scidir:/usr/$(get_libdir)/${P}:" \
+ -i ${name}/Makefile || die "Failed to fix examples"
+ done
+}
+
+src_compile() {
+ cd "${S}"
+ local myopts
+ myopts="${myopts} --with-atlas-library=/usr/$(get_libdir)"
+
+ if [[ ${FORTRANC} == gfortran ]]; then
+ myopts="${myopts} --with-gfortran"
+ fi
+
+ econf $(use_with tk) \
+ $(use_with Xaw3d xaw3d) \
+ $(use_with gtk gtk2 ) \
+ $(use_with ocaml) \
+ $(use_with java ) \
+ ${myopts} || die "econf failed"
+ env HOME="${S}" emake -j1 all || die "emake failed"
+}
+
+src_install() {
+ DESTDIR="${D}" make install || die "installation failed"
+
+ # some postinstall fixes
+ echo "SCIDIR=/usr/$(get_libdir)/${P}" > \
+ "${D}/usr/$(get_libdir)/${P}/Path.incl"
+ strip "${D}/usr/$(get_libdir)/${P}/bin/scilex"
+
+ # install docs
+ dodoc ACKNOWLEDGEMENTS CHANGES README_Unix RELEASE_NOTES \
+ Readme_Visual.txt || die "failed to install docs"
+
+ # install examples
+ insinto /usr/share/${PN}/
+ doins -r examples/ || die "failed to install examples"
+
+ insinto /usr/$(get_libdir)/${P}
+ doins Makefile.incl || die "failed to install Makefile.incl"
+
+ # The compile and install process causes the work folder
+ # to be registered as the runtime folder in many files.
+ # This is corrected here.
+ BAD_REF="${WORKDIR}/${P}"
+ FIXED_REF="/usr/$(get_libdir)/${P}"
+ local BIN_TO_FIX="Blpr BEpsf Blatexpr2 Blatexprs Blatexpr scilab"
+ for i in ${BIN_TO_FIX}; do
+ sed -e "s%${BAD_REF}%${FIXED_REF}%" -i \
+ "${D}"/usr/$(get_libdir)/${P}/bin/${i} || \
+ die "Failed to fix wrapper scripts"
+ done
+ local MISC_TO_FIX="util/Blatdoc util/Blatdocs"
+ for i in ${MISC_TO_FIX}; do
+ sed -e "s%${BAD_REF}%${FIXED_REF}%" -i \
+ "${D}"/usr/$(get_libdir)/${P}/${i} || \
+ die "Failed to fix Blatdocs"
+ done
+}
+
+pkg_postinst() {
+ einfo "To tell Scilab about your printers, set the environment"
+ einfo "variable PRINTERS in the form:"
+ einfo
+ einfo "PRINTERS=\"firstPrinter:secondPrinter:anotherPrinter\""
+}