summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fisette <ribosome@gentoo.org>2006-03-15 03:46:59 +0000
committerOlivier Fisette <ribosome@gentoo.org>2006-03-15 03:46:59 +0000
commit530dc032d12123d00bb08a0e7cc7139e60c5ac3f (patch)
tree75aba7e19dd711b382ce04497b376e61fdc27756 /sci-mathematics
parentnew version for gnome-2.14. cooll new features such as directory browsing. (diff)
downloadhistorical-530dc032d12123d00bb08a0e7cc7139e60c5ac3f.tar.gz
historical-530dc032d12123d00bb08a0e7cc7139e60c5ac3f.tar.bz2
historical-530dc032d12123d00bb08a0e7cc7139e60c5ac3f.zip
Removed obsolete versions
Package-Manager: portage-2.0.54
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/scilab/ChangeLog6
-rw-r--r--sci-mathematics/scilab/Manifest8
-rw-r--r--sci-mathematics/scilab/files/digest-scilab-3.1.11
-rw-r--r--sci-mathematics/scilab/files/digest-scilab-3.1.1-r11
-rw-r--r--sci-mathematics/scilab/files/digest-scilab-3.1.1-r21
-rw-r--r--sci-mathematics/scilab/scilab-3.1.1-r1.ebuild209
-rw-r--r--sci-mathematics/scilab/scilab-3.1.1-r2.ebuild205
-rw-r--r--sci-mathematics/scilab/scilab-3.1.1.ebuild203
8 files changed, 6 insertions, 628 deletions
diff --git a/sci-mathematics/scilab/ChangeLog b/sci-mathematics/scilab/ChangeLog
index 54a6142f6c2c..5a4941edaf22 100644
--- a/sci-mathematics/scilab/ChangeLog
+++ b/sci-mathematics/scilab/ChangeLog
@@ -1,6 +1,10 @@
# 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.16 2006/01/19 20:23:51 spyderous Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/ChangeLog,v 1.17 2006/03/15 03:46:59 ribosome Exp $
+
+ 15 Mar 2006; Olivier Fisette <ribosome@gentoo.org> -scilab-3.1.1.ebuild,
+ -scilab-3.1.1-r1.ebuild, -scilab-3.1.1-r2.ebuild:
+ Removed obsolete versions.
19 Jan 2006; Donnie Berkholz <spyderous@gentoo.org>;
+files/gzvt2-add-gtk2-flags.patch, scilab-3.1.1-r3.ebuild:
diff --git a/sci-mathematics/scilab/Manifest b/sci-mathematics/scilab/Manifest
index 7c56ec41cbdd..adfce9a75c7b 100644
--- a/sci-mathematics/scilab/Manifest
+++ b/sci-mathematics/scilab/Manifest
@@ -1,14 +1,8 @@
-MD5 7215ffd87ead186d11c9c49e09dd342c ChangeLog 6293
+MD5 602a86443e755d94abae089ed6be0028 ChangeLog 6449
MD5 f8e77491ef5140fe63fbe21ca1964377 files/digest-scilab-2.7-r3 135
-MD5 bbe608fb3f1804163b4b8af882c8dcbb files/digest-scilab-3.1.1 70
-MD5 bbe608fb3f1804163b4b8af882c8dcbb files/digest-scilab-3.1.1-r1 70
-MD5 bbe608fb3f1804163b4b8af882c8dcbb files/digest-scilab-3.1.1-r2 70
MD5 bbe608fb3f1804163b4b8af882c8dcbb files/digest-scilab-3.1.1-r3 70
MD5 c67f39d8d53d4f04bbfd44cf6ab4f840 files/gzvt2-add-gtk2-flags.patch 702
MD5 814dd511c89a14982a5d6c60b09c1709 files/scilab-2.7-configure.patch 1702
MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
MD5 693bb0bca5adf98abe428a3ca435d095 scilab-2.7-r3.ebuild 4028
-MD5 69d2d602cb23effe22c6b34d5d4cb1a5 scilab-3.1.1-r1.ebuild 5940
-MD5 0ac2ce7945c0c3330c64e94c8ed6c9d4 scilab-3.1.1-r2.ebuild 5805
MD5 88fe35577e6d544b620686c4cca653e9 scilab-3.1.1-r3.ebuild 4876
-MD5 a8524872ac3dd6988d8221389244089a scilab-3.1.1.ebuild 5786
diff --git a/sci-mathematics/scilab/files/digest-scilab-3.1.1 b/sci-mathematics/scilab/files/digest-scilab-3.1.1
deleted file mode 100644
index 4cebd839d0d2..000000000000
--- a/sci-mathematics/scilab/files/digest-scilab-3.1.1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 8bd6e750681fc6b2f524b46876dc0887 scilab-3.1.1-src.tar.gz 14261772
diff --git a/sci-mathematics/scilab/files/digest-scilab-3.1.1-r1 b/sci-mathematics/scilab/files/digest-scilab-3.1.1-r1
deleted file mode 100644
index 4cebd839d0d2..000000000000
--- a/sci-mathematics/scilab/files/digest-scilab-3.1.1-r1
+++ /dev/null
@@ -1 +0,0 @@
-MD5 8bd6e750681fc6b2f524b46876dc0887 scilab-3.1.1-src.tar.gz 14261772
diff --git a/sci-mathematics/scilab/files/digest-scilab-3.1.1-r2 b/sci-mathematics/scilab/files/digest-scilab-3.1.1-r2
deleted file mode 100644
index 4cebd839d0d2..000000000000
--- a/sci-mathematics/scilab/files/digest-scilab-3.1.1-r2
+++ /dev/null
@@ -1 +0,0 @@
-MD5 8bd6e750681fc6b2f524b46876dc0887 scilab-3.1.1-src.tar.gz 14261772
diff --git a/sci-mathematics/scilab/scilab-3.1.1-r1.ebuild b/sci-mathematics/scilab/scilab-3.1.1-r1.ebuild
deleted file mode 100644
index fb5c66e97c84..000000000000
--- a/sci-mathematics/scilab/scilab-3.1.1-r1.ebuild
+++ /dev/null
@@ -1,209 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/scilab-3.1.1-r1.ebuild,v 1.4 2006/01/12 23:21:04 compnerd Exp $
-
-inherit eutils
-
-DESCRIPTION="Scientific software package for numerical computations (Matlab lookalike)"
-SRC_URI="http://scilabsoft.inria.fr/download/stable/${P}-src.tar.gz"
-HOMEPAGE="http://www.scilab.org/"
-
-LICENSE="scilab"
-SLOT="0"
-KEYWORDS="~x86 ~ppc"
-IUSE="ifc ocaml tcltk gtk gtk2 Xaw3d"
-
-RDEPEND="virtual/x11
- virtual/blas
- virtual/lapack
- sys-libs/ncurses
- gtk? (
- media-libs/jpeg
- media-libs/libpng
- sys-libs/zlib
- gtk2? ( >=x11-libs/gtk+-2
- >=x11-libs/libzvt-2
- =gnome-extra/gtkhtml-2*
- )
- !gtk2? ( =x11-libs/gtk+-1.2*
- >=gnome-base/gnome-libs-1.4.2 )
- )
- tcltk? ( >=dev-lang/tk-8.4
- >=dev-lang/tcl-8.4 )
- Xaw3d? ( x11-libs/Xaw3d )
- ocaml? ( dev-lang/ocaml )"
-
-DEPEND="${RDEPEND}
- ifc? ( dev-lang/ifc )
- app-text/sablotron"
-
-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 "fortran" "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
-
- if ! use gtk && ! use tcltk; then
- echo
- eerror 'scilab must be built with either USE="gtk" or USE="tcltk"'
- die
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd ${S}
-
- sed -i \
- -e '/^ATLAS_LAPACKBLAS\>/s,=.*,= $(ATLASDIR)/liblapack.so $(ATLASDIR)/libblas.so $(ATLASDIR)/libcblas.so,' \
- -e 's,$(SCIDIR)/libs/lapack.a,,' \
- Makefile.OBJ.in
-
- # fix scilab script causing problems (#67905)
- # epatch ${FILESDIR}/${P}-initialization.patch
-}
-
-src_compile() {
- local myopts
- use tcltk || myopts="${myopts} --without-tk"
- use Xaw3d || myopts="${myopts} --without-xaw3d"
- myopts="${myopts} --with-atlas-library=/usr/lib"
- if use gtk; then
- use gtk2 && myopts="${myopts} --with-gtk2" || \
- myopts="${myopts} --with-gtk"
- fi
- if ! use ocaml; then
- myopts="${myopts} --without-ocaml"
- 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
-
- # 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/lib/${P}"
- 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/lib/${P}/bin/${i} || die
- done
- MAN_TO_FIX="eng fr"
- for i in ${MAN_TO_FIX}; do
- for j in ${D}/usr/lib/${P}/man/${i}/*.h*; do
- sed -e "s%${BAD_REF}%${FIXED_REF}%" -i ${j} || die
- done
- done
- MISC_TO_FIX="util/Blatdoc util/Blatdocs"
- for i in ${MISC_TO_FIX}; do
- sed -e "s%${BAD_REF}%${FIXED_REF}%" -i ${D}/usr/lib/${P}/${i} || die
- 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\""
-}
diff --git a/sci-mathematics/scilab/scilab-3.1.1-r2.ebuild b/sci-mathematics/scilab/scilab-3.1.1-r2.ebuild
deleted file mode 100644
index d07aaf8f835b..000000000000
--- a/sci-mathematics/scilab/scilab-3.1.1-r2.ebuild
+++ /dev/null
@@ -1,205 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/scilab-3.1.1-r2.ebuild,v 1.2 2006/01/12 23:21:04 compnerd Exp $
-
-inherit eutils
-
-DESCRIPTION="Scientific software package for numerical computations (Matlab lookalike)"
-SRC_URI="http://scilabsoft.inria.fr/download/stable/${P}-src.tar.gz"
-HOMEPAGE="http://www.scilab.org/"
-
-LICENSE="scilab"
-SLOT="0"
-KEYWORDS="~x86 ~ppc"
-IUSE="ifc ocaml tcltk gtk Xaw3d"
-
-RDEPEND="virtual/x11
- 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
- =gnome-extra/gtkhtml-2*
- )
- tcltk? ( >=dev-lang/tk-8.4
- >=dev-lang/tcl-8.4 )
- Xaw3d? ( x11-libs/Xaw3d )
- ocaml? ( dev-lang/ocaml )"
-
-DEPEND="${RDEPEND}
- ifc? ( dev-lang/ifc )
- app-text/sablotron"
-
-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 "fortran" "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
-
- if ! use gtk && ! use tcltk; then
- echo
- eerror 'scilab must be built with either USE="gtk" or USE="tcltk"'
- die
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd ${S}
-
- sed -i \
- -e '/^ATLAS_LAPACKBLAS\>/s,=.*,= $(ATLASDIR)/liblapack.so $(ATLASDIR)/libblas.so $(ATLASDIR)/libcblas.so,' \
- -e 's,$(SCIDIR)/libs/lapack.a,,' \
- Makefile.OBJ.in
-
- # fix scilab script causing problems (#67905)
- # epatch ${FILESDIR}/${P}-initialization.patch
-}
-
-src_compile() {
- local myopts
- use tcltk || myopts="${myopts} --without-tk"
- use Xaw3d || myopts="${myopts} --without-xaw3d"
- myopts="${myopts} --with-atlas-library=/usr/lib"
- if use gtk; then
- myopts="${myopts} --with-gtk2"
- fi
- if ! use ocaml; then
- myopts="${myopts} --without-ocaml"
- 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
-
- # 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/lib/${P}"
- 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/lib/${P}/bin/${i} || die
- done
- MAN_TO_FIX="eng fr"
- for i in ${MAN_TO_FIX}; do
- for j in ${D}/usr/lib/${P}/man/${i}/*.h*; do
- sed -e "s%${BAD_REF}%${FIXED_REF}%" -i ${j} || die
- done
- done
- MISC_TO_FIX="util/Blatdoc util/Blatdocs"
- for i in ${MISC_TO_FIX}; do
- sed -e "s%${BAD_REF}%${FIXED_REF}%" -i ${D}/usr/lib/${P}/${i} || die
- 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\""
-}
diff --git a/sci-mathematics/scilab/scilab-3.1.1.ebuild b/sci-mathematics/scilab/scilab-3.1.1.ebuild
deleted file mode 100644
index 9f5f6b2a026c..000000000000
--- a/sci-mathematics/scilab/scilab-3.1.1.ebuild
+++ /dev/null
@@ -1,203 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/scilab-3.1.1.ebuild,v 1.5 2006/01/12 23:21:04 compnerd Exp $
-
-inherit eutils
-
-DESCRIPTION="Scientific software package for numerical computations (Matlab lookalike)"
-SRC_URI="http://scilabsoft.inria.fr/download/stable/${P}-src.tar.gz"
-HOMEPAGE="http://www.scilab.org/"
-
-LICENSE="scilab"
-SLOT="0"
-KEYWORDS="~x86 ~ppc"
-IUSE="ifc ocaml tcltk atlas gtk gtk2 Xaw3d"
-
-RDEPEND="virtual/x11
- sys-libs/ncurses
- !ppc? ( atlas? ( sci-libs/atlas ) )
- gtk? (
- media-libs/jpeg
- media-libs/libpng
- sys-libs/zlib
- gtk2? ( >=x11-libs/gtk+-2
- >=x11-libs/libzvt-2
- =gnome-extra/gtkhtml-2*
- )
- !gtk2? ( =x11-libs/gtk+-1.2*
- >=gnome-base/gnome-libs-1.4.2 )
- )
- tcltk? ( >=dev-lang/tk-8.4
- >=dev-lang/tcl-8.4 )
- Xaw3d? ( x11-libs/Xaw3d )
- ocaml? ( dev-lang/ocaml )"
-
-DEPEND="${RDEPEND}
- ifc? ( dev-lang/ifc )
- app-text/sablotron"
-
-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 "fortran" "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
-
- if ! use gtk && ! use tcltk; then
- echo
- eerror 'scilab must be built with either USE="gtk" or USE="tcltk"'
- die
- fi
-}
-
-src_unpack() {
- unpack ${A}
- cd ${S}
-
- # fix scilab script causing problems (#67905)
- # epatch ${FILESDIR}/${P}-initialization.patch
-}
-
-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
- if ! use ocaml; then
- myopts="${myopts} --without-ocaml"
- 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
-
- # 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/lib/${P}"
- 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/lib/${P}/bin/${i} || die
- done
- MAN_TO_FIX="eng fr"
- for i in ${MAN_TO_FIX}; do
- for j in ${D}/usr/lib/${P}/man/${i}/*.h*; do
- sed -e "s%${BAD_REF}%${FIXED_REF}%" -i ${j} || die
- done
- done
- MISC_TO_FIX="util/Blatdoc util/Blatdocs"
- for i in ${MISC_TO_FIX}; do
- sed -e "s%${BAD_REF}%${FIXED_REF}%" -i ${D}/usr/lib/${P}/${i} || die
- 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\""
-}