diff options
author | Olivier Fisette <ribosome@gentoo.org> | 2004-12-28 15:14:41 +0000 |
---|---|---|
committer | Olivier Fisette <ribosome@gentoo.org> | 2004-12-28 15:14:41 +0000 |
commit | 9188c4ae383ded0161dc5bbbe6f60f8fac437f71 (patch) | |
tree | 79524fefca63b61bfacb2035733957ad18adb50f /sci-mathematics | |
parent | Moving to sci-mathematics/scilab (diff) | |
download | gentoo-2-9188c4ae383ded0161dc5bbbe6f60f8fac437f71.tar.gz gentoo-2-9188c4ae383ded0161dc5bbbe6f60f8fac437f71.tar.bz2 gentoo-2-9188c4ae383ded0161dc5bbbe6f60f8fac437f71.zip |
Moved from app-sci/scilab to sci-mathematics/scilab.
Diffstat (limited to 'sci-mathematics')
-rw-r--r-- | sci-mathematics/scilab/ChangeLog | 103 | ||||
-rw-r--r-- | sci-mathematics/scilab/Manifest | 7 | ||||
-rw-r--r-- | sci-mathematics/scilab/files/digest-scilab-2.7-r3 | 2 | ||||
-rw-r--r-- | sci-mathematics/scilab/files/digest-scilab-3.0 | 1 | ||||
-rw-r--r-- | sci-mathematics/scilab/files/scilab-2.7-configure.patch | 58 | ||||
-rw-r--r-- | sci-mathematics/scilab/metadata.xml | 5 | ||||
-rw-r--r-- | sci-mathematics/scilab/scilab-2.7-r3.ebuild | 154 | ||||
-rw-r--r-- | sci-mathematics/scilab/scilab-3.0.ebuild | 174 |
8 files changed, 504 insertions, 0 deletions
diff --git a/sci-mathematics/scilab/ChangeLog b/sci-mathematics/scilab/ChangeLog new file mode 100644 index 000000000000..32500ae46429 --- /dev/null +++ b/sci-mathematics/scilab/ChangeLog @@ -0,0 +1,103 @@ +# ChangeLog for app-sci/scilab +# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/ChangeLog,v 1.1 2004/12/28 15:14:40 ribosome Exp $ + +*scilab-2.7-r3 (28 Dec 2004) + + 28 Dec 2004; Olivier Fisette <ribosome@gentoo.org> +metadata.xml, + +files/scilab-2.7-configure.patch, +scilab-2.7-r3.ebuild, + +scilab-3.0.ebuild: + Moved from app-sci/scilab to sci-mathematics/scilab. + + 01 Dec 2004; Patrick Kursawe <phosphan@gentoo.org> scilab-3.0.ebuild: + Correcting gtk/gtk2 handling (bug #70053) + + 27 Nov 2004; Joseph Jezak <josejx@gentoo.org> scilab-2.7-r3.ebuild: + Marked ~ppc for bug #71458. + + 14 Sep 2004; Olivier Fisette <ribosome@gentoo.org> scilab-3.0.ebuild: + Added a check for a Fortran compiler (bug #53872). + + 22 Aug 2004; Olivier Fisette <ribosome@gentoo.org> + -scilab-2.7-r2.ebuild, scilab-3.0.ebuild: + Corrected "libgtkhtml" dependency in version 3.0 (bug #61134). + Removed old ebuild (version 2.7-r2). + +*scilab-3.0 + + 19 Aug 2004; Olivier Fisette <ribosome@gentoo.org> + scilab-2.7-r3.ebuild, scilab-3.0.ebuild: + Version bump. Added 2.7-r3 to x86. + + 30 Jun 2004; Danny van Dyk <kugelfang@gentoo.org> -scilab-2.6.ebuild, + -scilab-2.7-r1.ebuild, scilab-2.7-r2.ebuild, -scilab-2.7.ebuild: + Added ifc/g77 check to scilab-2.7-r2 as well. Removed <scilab-2.7-r1. + + 27 Jun 2004; Aron Griffis <agriffis@gentoo.org> scilab-2.7-r3.ebuild, + scilab-2.7.ebuild: + QA - fix use invocation + + 14 Jun 2004; Danny van Dyk <kugelfang@gentoo.org> scilab-2.7-r1.ebuild, + scilab-2.7-r3.ebuild: + Added (already) global USE flag "ifc" and appropriate dependency as well as the + g77/ifc warning routine from app-sci/octave. Fixes BUG #53872. + + 06 Jun 2004; Danny van Dyk <kugelfang@gentoo.org> scilab-2.7-r3.ebuild: + Marked stable on amd64. + + 27 Apr 2004; Aron Griffis <agriffis@gentoo.org> scilab-2.7-r3.ebuild: + Add inherit eutils + + 21 Apr 2004; Danny van Dyk <kugelfang@gentoo.org> + +files/scilab-2.7-configure.patch, scilab-2.7-r3.ebuild: + Minor changes for amd64 only and marked ~amd64. Patch by Scott Robert Ladd. + +*scilab-2.7-r3 (22 Mar 2004) + + 22 Mar 2004; Patrick Kursawe <phosphan@gentoo.org> scilab-2.7-r3.ebuild: + Trying to fix bug #40225 by providing an X server during build. + + 11 Oct 2003; George Shapovalov <geore@gentoo.org> scilab-2.7-r2.ebuild : + added few more dependensies for gtk interface + + 06 Oct 2003; George Shapovalov <geore@gentoo.org> scilab-2.7-r2.ebuild : + looks like gnome-lib is also needed for gtk interface, added it to DEPEND under gtk? + + 05 Oct 2003; George Shapovalov <geore@gentoo.org> scilab-2.7-r2.ebuild : + looks like enabling gtk makes scilab stop building macros, + forced macros build in ebuild. + Also added check for previous version installed, as it would have + caused problems fr this revision upon upgrade. + Note: this check should be removed in new versions if they are issued + after reasonable amount of time passes (so that we can expect people to migrate to -r2) + +*scilab-2.7-r2 (04 Oct 2003) + + 04 Oct 2003; George Shapovalov <geore@gentoo.org> scilab-2.7-r2.ebuild : + fixes ##28245 and 30219, thanks to the guys from the -r1 update :) and + to Toby Smith <thlsmith@iprimus.com.au> for the gtk hint + now ebuild comes without postinst/remove functions + +*scilab-2.7-r1 (16 Sep 2003) + + 16 Sep 2003; George Shapovalov <geore@gentoo.org> scilab-2.7-r1.ebuild : + fixes #28245 (help browser), + thanks to Federico Zenith <zenith@chemeng.ntnu.no> and Gregorio Guidi <g.guidi@sns.it> + for the fixes + +*scilab-2.7 (16 Jul 2003) + + 16 Jul 2003; Ryan Phillips <rphillips@gentoo.org> scilab-2.7.ebuild : + Fixes #16737. + +*scilab-2.6 (28 Apr 2002) + + 01 May 2003; Martin Holzer <mholzer@gentoo.org> scilab-2.6.ebuild: + Fixing typo. Closes #20263. + + 28 Apr 2002; Ryan Phillips <rphillips@gentoo.org> ChangeLog : + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. diff --git a/sci-mathematics/scilab/Manifest b/sci-mathematics/scilab/Manifest new file mode 100644 index 000000000000..52ff29f6c76d --- /dev/null +++ b/sci-mathematics/scilab/Manifest @@ -0,0 +1,7 @@ +MD5 0eabe414a1914d996803eba847694a63 scilab-3.0.ebuild 5065 +MD5 2b8bc410fc32427b27bcaefab3d62220 scilab-2.7-r3.ebuild 4014 +MD5 be9f9bf4a7f3ef22a63ee2d21b038c01 ChangeLog 3986 +MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156 +MD5 814dd511c89a14982a5d6c60b09c1709 files/scilab-2.7-configure.patch 1702 +MD5 a485d7f0600472c5f79d8c78a09deb6a files/digest-scilab-3.0 68 +MD5 f8e77491ef5140fe63fbe21ca1964377 files/digest-scilab-2.7-r3 135 diff --git a/sci-mathematics/scilab/files/digest-scilab-2.7-r3 b/sci-mathematics/scilab/files/digest-scilab-2.7-r3 new file mode 100644 index 000000000000..c742d1e38c77 --- /dev/null +++ b/sci-mathematics/scilab/files/digest-scilab-2.7-r3 @@ -0,0 +1,2 @@ +MD5 e8aa1ede5efa20eeced284963d08bebb scilab-2.7.src.tar.gz 9510676 +MD5 712df122ba9d3dabf17e6016f33efcc4 patch_browsehelp.tar.gz 622246 diff --git a/sci-mathematics/scilab/files/digest-scilab-3.0 b/sci-mathematics/scilab/files/digest-scilab-3.0 new file mode 100644 index 000000000000..df2aa975ecc0 --- /dev/null +++ b/sci-mathematics/scilab/files/digest-scilab-3.0 @@ -0,0 +1 @@ +MD5 d6fc5fe12519f99ccdd492c4ba96935a scilab-3.0.src.tar.gz 10988126 diff --git a/sci-mathematics/scilab/files/scilab-2.7-configure.patch b/sci-mathematics/scilab/files/scilab-2.7-configure.patch new file mode 100644 index 000000000000..8499fd669258 --- /dev/null +++ b/sci-mathematics/scilab/files/scilab-2.7-configure.patch @@ -0,0 +1,58 @@ +--- scilab-2.7/configure.in 2003-02-06 02:42:05.000000000 -0500 ++++ scilab-save/configure.in 2004-04-21 10:06:54.000000000 -0400 +@@ -376,6 +376,55 @@ case "$host" in + fi + MAKEFILE_TARGET=Makefile.linux + ;; ++# Linux x86_64 (added by Scott Robert Ladd) ++ x86_64-*-linux-gnu) ++ LIEEELIB= ++ AC_CHECK_LIB(ieee,main, ++ [LIEEELIB=-lieee]) ++ MALLOC=malloc.o ++ GCC=yes ++ CC=gcc ++ CC_OPTIONS='-O -Dlinux -fwritable-strings' ++ CC_LDFLAGS=$LIEEELIB ++ # find Fortran compiler ++ # g77 already asked and found: good ++ if test "$WITH_G77" = yes; then ++ FC=g77 ++ # option with-f2c ++ elif test "$with_f2c" = yes; then ++ AC_CHECK_PROG(F2C,f2c,yes,no) ++ if test "$F2C" = no; then ++ AC_MSG_ERROR([Unable to configure: f2c compiler not found]) ++ fi ++ # script shell f77 have bugs, get ours ++ FC='${SCIDIR}/bin/f77-linux' ++ else ++ # first find g77 ++ AC_CHECK_PROG(WITH_G77,g77,yes,no) ++ if test "$WITH_G77" = yes; then ++ FC=g77 ++ else ++ # otherwise find f2c ++ AC_CHECK_PROG(F2C,f2c,yes,no) ++ if test "$F2C" = yes; then ++ # script shell f77 have bugs, get ours ++ FC='${SCIDIR}/bin/f77-linux' ++ else ++ AC_MSG_ERROR([Unable to configure: no Fortran compiler found]) ++ fi ++ fi ++ fi ++ FC_OPTIONS=-O ++ FC_OPTIONS_O0= ++ FC_LDFLAGS="$LIEEELIB -ldl -rdynamic" ++ LD=ld ++ LD_LDFLAGS=$LIEEELIB ++ if test "$enable_debug" = yes; then ++ CC_OPTIONS='-g -Dlinux -fwritable-strings' ++ FC_OPTIONS=-g ++ fi ++ MAKEFILE_TARGET=Makefile.linux ++ ;; + # SUN OS (NO LONGER SUPPORTED) + sparc-*-sunos*) + # standard compilers diff --git a/sci-mathematics/scilab/metadata.xml b/sci-mathematics/scilab/metadata.xml new file mode 100644 index 000000000000..b229aec85b8f --- /dev/null +++ b/sci-mathematics/scilab/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +</pkgmetadata> diff --git a/sci-mathematics/scilab/scilab-2.7-r3.ebuild b/sci-mathematics/scilab/scilab-2.7-r3.ebuild new file mode 100644 index 000000000000..6e38e4c9e827 --- /dev/null +++ b/sci-mathematics/scilab/scilab-2.7-r3.ebuild @@ -0,0 +1,154 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/scilab-2.7-r3.ebuild,v 1.1 2004/12/28 15:14:40 ribosome Exp $ + +inherit virtualx eutils + +DESCRIPTION="Scientific software package for numerical computations, Matlab lookalike" +SRC_URI="ftp://ftp.inria.fr/INRIA/Projects/Meta2/Scilab/distributions/${P}.src.tar.gz + http://www-rocq.inria.fr/scilab/bugfix/patch_browsehelp.tar.gz" +HOMEPAGE="http://www.scilab.org/" + +LICENSE="scilab" +SLOT="0" +KEYWORDS="x86 amd64 ~ppc" +IUSE="tcltk gtk ifc" + +DEPEND="virtual/x11 + x11-libs/Xaw3d + sys-libs/ncurses + tcltk? ( dev-lang/tk ) + x86? ( ifc? ( dev-lang/ifc ) ) + gtk? ( =x11-libs/gtk+-1.2* + >=gnome-base/gnome-libs-1.4.2 + >=dev-libs/glib-2.2 + media-libs/jpeg + media-libs/libpng + sys-libs/zlib )" + +pkg_setup() { + local SCLB + SCLB=`which scilab` + if [ -e "${SCLB}" ]; then + ewarn "Previous version of scilab was detected on your system" + ewarn "Unfortunately these versions cause problems for newer ones during update" + ewarn 'Please uninstall it with "emerge unmerge scilab" before continuig' + die + fi + if ! use ifc && [ -z `which g77` ]; then + #if ifc is defined then the dep was already checked + eerror "No fortran compiler found on the system!" + eerror "Please add f77 to your USE flags and reemerge gcc!" + die + fi +} + +src_unpack() { + unpack ${A} + cd ${S} && unpack ${DISTFILES}/patch_browsehelp.tar.gz + if [ ${ARCH} = "amd64" ]; then + epatch ${FILESDIR}/${P}-configure.patch + cd ${S} + autoconf + fi +} + +src_compile() { + local myopts + + use tcltk || myopts="${myopts} --without-tk" + use gtk && myopts="${myopts} --with-gtk" || myopts="${myopts} --without-gtk" + + econf ${myopts} || die "./configure failed" + export HOME=${S} + make all || die +} + +src_install() { + PVMBINDISTFILES="\ + ${P}/pvm3/Readme \ + ${P}/pvm3/lib/pvm \ + ${P}/pvm3/lib/pvmd \ + ${P}/pvm3/lib/pvmtmparch \ + ${P}/pvm3/lib/pvmgetarch \ + ${P}/pvm3/lib/LINUX/pvmd3 \ + ${P}/pvm3/lib/LINUX/pvmgs \ + ${P}/pvm3/lib/LINUX/pvm \ + ${P}/pvm3/bin/LINUX/*" + + BINDISTFILES="\ + ${P}/.binary \ + ${P}/.pvmd.conf \ + ${P}/ACKNOWLEDGEMENTS \ + ${P}/CHANGES \ + ${P}/Makefile \ + ${P}/Makefile.OBJ \ + ${P}/Makefile.incl \ + ${P}/Makemex \ + ${P}/Path.incl \ + ${P}/README_Unix \ + ${P}/Version.incl \ + ${P}/configure \ + ${P}/libtool \ + ${P}/license.txt \ + ${P}/licence.txt \ + ${P}/scilab.quit \ + ${P}/scilab.star \ + ${P}/X11_defaults \ + ${P}/bin \ + ${P}/config \ + ${P}/contrib \ + ${P}/demos \ + ${P}/examples \ + ${P}/imp/NperiPos.ps \ + ${P}/imp/giffonts \ + ${P}/macros \ + ${P}/man/eng/*.htm \ + ${P}/man/eng/*/*.htm \ + ${P}/man/fr/*/*.htm \ + ${P}/man/fr/*.htm \ + ${P}/man/*.dtd \ + ${P}/man/*/*.xsl \ + ${P}/maple \ + ${P}/routines/*.h \ + ${P}/routines/Make.lib \ + ${P}/routines/default/FCreate \ + ${P}/routines/default/Flist \ + ${P}/routines/default/README \ + ${P}/routines/default/fundef \ + ${P}/routines/default/*.c \ + ${P}/routines/default/*.f \ + ${P}/routines/default/*.h \ + ${P}/routines/graphics/Math.h \ + ${P}/routines/graphics/Graphics.h \ + ${P}/routines/graphics/Entities.h \ + ${P}/routines/interf/*.h \ + ${P}/routines/intersci/sparse.h \ + ${P}/routines/menusX/*.h \ + ${P}/routines/scicos/scicos.h \ + ${P}/routines/sun/*.h \ + ${P}/routines/xsci/*.h \ + ${P}/scripts \ + ${P}/tcl \ + ${P}/tests \ + ${P}/util" + + touch .binary + strip bin/scilex + cd ${S}/tests && make distclean + cd ${S}/examples && make distclean + dodir /usr/lib + (cd ${S}/..; tar cf - ${BINDISTFILES} ${PVMBINDISTFILES} | (cd ${D}/usr/lib; tar xf -)) + rm .binary + + dodir /usr/bin + dosym /usr/lib/${P}/bin/scilab /usr/bin/scilab + dosym /usr/lib/${P}/bin/intersci /usr/bin/intersci + dosym /usr/lib/${P}/bin/intersci-n /usr/bin/intersci-n + + #now scilab wants to create some wrappers, and we will need to adjust the paths + cd ${D}/usr/lib/${P} + make || die "wrapper creation failed" + cd macros && make && cd .. || die macros creation failed + grep -rle "${D}" * | xargs sed -i -e "s:${D}:/:g" +} diff --git a/sci-mathematics/scilab/scilab-3.0.ebuild b/sci-mathematics/scilab/scilab-3.0.ebuild new file mode 100644 index 000000000000..9ce40e38c4ec --- /dev/null +++ b/sci-mathematics/scilab/scilab-3.0.ebuild @@ -0,0 +1,174 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/scilab-3.0.ebuild,v 1.1 2004/12/28 15:14:41 ribosome Exp $ + +DESCRIPTION="Scientific software package for numerical computations (Matlab lookalike)" +SRC_URI="ftp://ftp.inria.fr/INRIA/Scilab/distributions/${P}.src.tar.gz" +HOMEPAGE="http://www.scilab.org/" + +LICENSE="scilab" +SLOT="0" +KEYWORDS="~x86" +IUSE="ifc tcltk atlas gtk gtk2 Xaw3d" + +RDEPEND="virtual/x11 + sys-libs/ncurses + atlas? ( dev-libs/atlas ) + gtk? ( + >=gnome-base/gnome-libs-1.4.2 + >=dev-libs/glib-2.2 + media-libs/jpeg + media-libs/libpng + sys-libs/zlib + gtk2? ( >=x11-libs/gtk+-2* + >=x11-libs/libzvt-2* + =gnome-extra/libgtkhtml-2* + ) + !gtk2? ( =x11-libs/gtk+-1.2* ) + ) + tcltk? ( >=dev-lang/tk-8.4 + >=dev-lang/tcl-8.4 ) + Xaw3d? ( x11-libs/Xaw3d )" + +DEPEND="${RDEPEND} + ifc? ( dev-lang/ifc ) + app-text/sablotron + dev-libs/libxslt" + +pkg_setup() { + if ! which ${F77:-g77} &> /dev/null; then + echo + eerror "The Fortran compiler \"${F77:-g77}\" could not be found on your system." + if [ -z ${F77} ] || [ ${F77} = g77 ]; then + eerror 'Please reinstall "sys-devel/gcc" with the "f77" "USE" flag enabled.' + elif [ ${F77} = ifc ] && ! use ifc &> /dev/null; then + eerror 'Please set the "ifc" "USE" flag if you want to use the Intel Fortran' + eerror 'Compiler to build this package. This will ensure the "dev-lang/ifc"' + eerror 'package gets installed on your system.' + elif [ ${F77} = ifc ] && use ifc &> /dev/null; then + eerror 'Please ensure "ifc" is in a directory referenced in "PATH".' + else + eerror 'Please make sure the variable ${F77} is set to the name of a valid' + eerror 'Fortran compiler installed on your system. Make sure this executable' + eerror 'is in a directory referenced by "PATH", and that the corresponding' + eerror '"USE" flag is set if applicable (for example "ifc" if you use the' + eerror 'Intel Fortran Compiler).' + fi + die "Fortran compiler not found." + fi +} + +src_compile() { + local myopts + use tcltk || myopts="${myopts} --without-tk" + use Xaw3d || myopts="${myopts} --without-xaw3d" + use atlas && myopts="${myopts} --with-atlas-library=/usr/lib" + if use gtk; then + use gtk2 && myopts="${myopts} --with-gtk2" || \ + myopts="${myopts} --with-gtk" + fi + + econf ${myopts} || die + env HOME=${S} make all || die +} + +src_install() { + # These instructions come from the file ${P}/Makefile, mostly section + # install. Make sure files have not been removed or added to these list + # when you use this ebuild as a template for future versions. + PVMBINDISTFILES="\ + ${P}/pvm3/Readme \ + ${P}/pvm3/lib/pvm \ + ${P}/pvm3/lib/pvmd \ + ${P}/pvm3/lib/pvmtmparch \ + ${P}/pvm3/lib/pvmgetarch \ + ${P}/pvm3/lib/LINUX/pvmd3 \ + ${P}/pvm3/lib/LINUX/pvmgs \ + ${P}/pvm3/lib/LINUX/pvm \ + ${P}/pvm3/bin/LINUX/*" + BINDISTFILES="\ + ${P}/.binary \ + ${P}/.pvmd.conf \ + ${P}/ACKNOWLEDGEMENTS \ + ${P}/CHANGES \ + ${P}/Makefile \ + ${P}/Makefile.OBJ \ + ${P}/Makefile.incl \ + ${P}/Makemex \ + ${P}/Path.incl \ + ${P}/README_Unix \ + ${P}/Version.incl \ + ${P}/configure \ + ${P}/libtool \ + ${P}/license.txt \ + ${P}/licence.txt \ + ${P}/scilab.quit \ + ${P}/scilab.star \ + ${P}/X11_defaults \ + ${P}/bin \ + ${P}/config \ + ${P}/contrib \ + ${P}/demos \ + ${P}/examples \ + ${P}/imp/NperiPos.ps \ + ${P}/imp/giffonts \ + ${P}/macros \ + ${P}/man/eng/ \ + ${P}/man/fr/ \ + ${P}/man/*.dtd \ + ${P}/man/*/*.xsl \ + ${P}/maple \ + ${P}/routines/*.h \ + ${P}/routines/Make.lib \ + ${P}/routines/default/FCreate \ + ${P}/routines/default/Flist \ + ${P}/routines/default/README \ + ${P}/routines/default/fundef \ + ${P}/routines/default/*.c \ + ${P}/routines/default/*.f \ + ${P}/routines/default/*.h \ + ${P}/routines/graphics/Math.h \ + ${P}/routines/graphics/Graphics.h \ + ${P}/routines/graphics/Entities.h \ + ${P}/routines/interf/*.h \ + ${P}/routines/intersci/sparse.h \ + ${P}/routines/menusX/*.h \ + ${P}/routines/scicos/scicos.h \ + ${P}/routines/scicos/scicos_block.h \ + ${P}/routines/sun/*.h \ + ${P}/routines/xsci/*.h \ + ${P}/scripts \ + ${P}/tcl \ + ${P}/tests \ + ${P}/util" + + touch .binary + strip bin/scilex + cd ${S}/tests && make distclean + cd ${S}/examples && make distclean + cd ${S}/man && make man + + dodir /usr/lib + (cd ${S}/.. && tar cf - ${BINDISTFILES} ${PVMBINDISTFILES} | (cd ${D}/usr/lib; tar xf -)) + rm .binary + + dodir /usr/bin + dosym /usr/lib/${P}/bin/scilab /usr/bin/scilab + dosym /usr/lib/${P}/bin/intersci /usr/bin/intersci + dosym /usr/lib/${P}/bin/intersci-n /usr/bin/intersci-n +} + +pkg_preinst() { + # The compile and install process causes the work folder to be registered + # as the runtime folder in the launch script. This is corrected here. + BAD_LINE=SCI\=\"${WORKDIR}/${P}\" + FIXED_LINE=SCI\=\"/usr/lib/${P}\" + sed -i -e "s#${BAD_LINE}#${FIXED_LINE}#" ${D}/usr/lib/${P}/bin/scilab +} + +pkg_postinst() { + einfo "To tell Scilab about your printers, set the environment" + einfo "variable PRINTERS in the form:" + einfo + einfo "PRINTERS=\"firstPrinter:secondPrinter:anotherPrinter\"" +} |