summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Fisette <ribosome@gentoo.org>2005-11-13 05:38:39 +0000
committerOlivier Fisette <ribosome@gentoo.org>2005-11-13 05:38:39 +0000
commitc569296f1b4be1aceaacce771b3aca5fc0eb933b (patch)
treedd75bdd14067f1239e5af0b1eea52eccab332b42 /sci-mathematics/scilab
parent>=app-arch/lzop-1.02_rc1-r1 for lzo upgrade (diff)
downloadgentoo-2-c569296f1b4be1aceaacce771b3aca5fc0eb933b.tar.gz
gentoo-2-c569296f1b4be1aceaacce771b3aca5fc0eb933b.tar.bz2
gentoo-2-c569296f1b4be1aceaacce771b3aca5fc0eb933b.zip
Migrated to fortran.eclass (bug #65950)
(Portage version: 2.0.51.22-r3)
Diffstat (limited to 'sci-mathematics/scilab')
-rw-r--r--sci-mathematics/scilab/ChangeLog8
-rw-r--r--sci-mathematics/scilab/Manifest2
-rw-r--r--sci-mathematics/scilab/files/digest-scilab-3.1.1-r31
-rw-r--r--sci-mathematics/scilab/scilab-3.1.1-r3.ebuild186
4 files changed, 196 insertions, 1 deletions
diff --git a/sci-mathematics/scilab/ChangeLog b/sci-mathematics/scilab/ChangeLog
index e58925997d4b..f1ae7fe69216 100644
--- a/sci-mathematics/scilab/ChangeLog
+++ b/sci-mathematics/scilab/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-mathematics/scilab
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/ChangeLog,v 1.13 2005/10/01 18:53:19 ribosome Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/ChangeLog,v 1.14 2005/11/13 05:36:47 ribosome Exp $
+
+*scilab-3.1.1-r3 (13 Nov 2005)
+
+ 13 Nov 2005; Olivier Fisette <ribosome@gentoo.org>
+ +scilab-3.1.1-r3.ebuild:
+ Migrated to fortran.eclass (bug #65950).
*scilab-3.1.1-r2 (01 Oct 2005)
diff --git a/sci-mathematics/scilab/Manifest b/sci-mathematics/scilab/Manifest
index e245f761fd5c..3de1974bb482 100644
--- a/sci-mathematics/scilab/Manifest
+++ b/sci-mathematics/scilab/Manifest
@@ -4,8 +4,10 @@ MD5 40f7671ad69b1687f87850e710843f0d scilab-3.1.1-r2.ebuild 5808
MD5 98a93c775c31d389443fdbb685449d81 scilab-3.1.1-r1.ebuild 5942
MD5 703e496aef9cf567eb1fd7c43443846d ChangeLog 5766
MD5 8c623e53daafa025137077c6b65815bd metadata.xml 156
+MD5 e185265565e1f9652509a0247dbc5842 scilab-3.1.1-r3.ebuild 4796
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 814dd511c89a14982a5d6c60b09c1709 files/scilab-2.7-configure.patch 1702
MD5 f8e77491ef5140fe63fbe21ca1964377 files/digest-scilab-2.7-r3 135
MD5 bbe608fb3f1804163b4b8af882c8dcbb files/digest-scilab-3.1.1 70
diff --git a/sci-mathematics/scilab/files/digest-scilab-3.1.1-r3 b/sci-mathematics/scilab/files/digest-scilab-3.1.1-r3
new file mode 100644
index 000000000000..4cebd839d0d2
--- /dev/null
+++ b/sci-mathematics/scilab/files/digest-scilab-3.1.1-r3
@@ -0,0 +1 @@
+MD5 8bd6e750681fc6b2f524b46876dc0887 scilab-3.1.1-src.tar.gz 14261772
diff --git a/sci-mathematics/scilab/scilab-3.1.1-r3.ebuild b/sci-mathematics/scilab/scilab-3.1.1-r3.ebuild
new file mode 100644
index 000000000000..b05dafeea9e7
--- /dev/null
+++ b/sci-mathematics/scilab/scilab-3.1.1-r3.ebuild
@@ -0,0 +1,186 @@
+# Copyright 1999-2005 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-r3.ebuild,v 1.1 2005/11/13 05:36:47 ribosome Exp $
+
+inherit eutils fortran
+
+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="ifc ocaml tcltk gtk Xaw3d"
+KEYWORDS="~x86 ~ppc"
+
+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/libgtkhtml-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() {
+ need_fortran g77
+ 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\""
+}