aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sci-mathematics/scilab/ChangeLog13
-rw-r--r--sci-mathematics/scilab/Manifest4
-rw-r--r--sci-mathematics/scilab/metadata.xml19
-rw-r--r--sci-mathematics/scilab/scilab-5.2.0.ebuild113
4 files changed, 149 insertions, 0 deletions
diff --git a/sci-mathematics/scilab/ChangeLog b/sci-mathematics/scilab/ChangeLog
new file mode 100644
index 000000000..89839c9e7
--- /dev/null
+++ b/sci-mathematics/scilab/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for sci-mathematics/scilab
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 22 Jan 2010; Sébastien Fabbro <bicatali@gentoo.org> +scilab-5.2.0.ebuild,
+ +metadata.xml:
+ Import of new scilab-5.2. Thanks Guillaume Horel for his work, bug #237572
+
+*scilab-5.2.0 (22 Jan 2010)
+
+ 22 Jan 2010; Sébastien Fabbro <bicatali@gentoo.org> +scilab-5.2.0.ebuild:
+ Import of new scilab-5.2. Thanks Guillaume Horel for his work, bug #237572
+
diff --git a/sci-mathematics/scilab/Manifest b/sci-mathematics/scilab/Manifest
new file mode 100644
index 000000000..a9341b374
--- /dev/null
+++ b/sci-mathematics/scilab/Manifest
@@ -0,0 +1,4 @@
+DIST scilab-5.2.0-src.tar.gz 54656677 RMD160 8a14582779d5b413c3c20cc13824e0773f7f4327 SHA1 ba919f9af86ac97b22e8be915302e1de104fbc01 SHA256 3412d4343cd3ca6ba0b03b28fec66a00f643d4d73f13dc28c0f6596ccb9f386a
+EBUILD scilab-5.2.0.ebuild 2963 RMD160 6bd3395a888fcb361027bb49d432c42014f91b8f SHA1 23f28dd125856eb83f2fc2c6482dfc247507f3f3 SHA256 7932c2a75ec56ceadd229260615a6fc4feed04da0ea3ed98705f5010712aaf96
+MISC ChangeLog 479 RMD160 85406fe8237d62064e14c4e6ee76223da177e25e SHA1 7d13cc979425498bb8ac5963076b03911a0789cb SHA256 310de9c10c5f66842e4861b19c9cf8ff0b0df0aabb5d3b3fc2a037d3ab421f45
+MISC metadata.xml 856 RMD160 a72e4dc9351faf4a7c9d4cb5b8547477389be701 SHA1 6eb020ce9bdae52a285bfe9aa179f79a70d2b918 SHA256 7966c4663ba898e8e26bb2b748041ac0043ba613bb0f9468139b1dd0b0694b1e
diff --git a/sci-mathematics/scilab/metadata.xml b/sci-mathematics/scilab/metadata.xml
new file mode 100644
index 000000000..30c40c66e
--- /dev/null
+++ b/sci-mathematics/scilab/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci-mathematics</herd>
+<longdescription lang="en">
+ Scilab is a matrix-based scientific software package. Scilab contains
+ hundreds of built-in mathematical functions, rich data structures
+ (including polynomials, rationals,linear systems, lists, etc...) and
+ comes with a number of specific toolboxes for control, signal
+ processing, ...
+</longdescription>
+<use>
+ <flag name='gui'>Build the Java base graphical interface</flag>
+ <flag name="umfpack">Adds support for sparse solving
+ with <pkg>sci-libs/umfpack</pkg></flag>
+ <flag name='matio'>Enable support for MATLAB file through <pkg>sci-libs/matio</pkg></flag>
+ <flag name='scicos'>Enable building of block diagram simulator Scicos</flag>
+</use>
+</pkgmetadata>
diff --git a/sci-mathematics/scilab/scilab-5.2.0.ebuild b/sci-mathematics/scilab/scilab-5.2.0.ebuild
new file mode 100644
index 000000000..980321ec9
--- /dev/null
+++ b/sci-mathematics/scilab/scilab-5.2.0.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/scilab/scilab-4.1.2-r1.ebuild,v 1.3 2008/11/15 18:41:11 dertobi123 Exp $
+
+EAPI=2
+inherit eutils autotools java-pkg-2
+
+DESCRIPTION="Scientific software package for numerical computations (Matlab lookalike)"
+LICENSE="CeCILL-2"
+SRC_URI="http://www.scilab.org/download/${PV}/${P}-src.tar.gz"
+HOMEPAGE="http://www.scilab.org/"
+
+SLOT="0"
+IUSE="tk scicos +umfpack +gui fftw +gui doc +matio hdf5"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="virtual/lapack
+ tk? ( dev-lang/tk )
+ scicos? ( dev-lang/ocaml )
+ umfpack? ( sci-libs/umfpack )
+ gui? ( >=virtual/jre-1.5
+ dev-java/commons-logging
+ dev-java/flexdock
+ dev-java/gluegen
+ dev-java/jeuclid-core
+ dev-java/jlatexmath
+ dev-java/jgraphx
+ dev-java/jogl
+ dev-java/jgoodies-looks
+ dev-java/skinlf
+ dev-java/jrosetta
+ dev-java/javahelp )
+ fftw? ( sci-libs/fftw:3.0 )
+ matio? ( sci-libs/matio )
+ hdf5? ( dev-java/hdf-java )"
+
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ doc? (
+ ~dev-java/batik-1.7
+ dev-java/fop
+ ~dev-java/saxon-6.5.5
+ app-text/docbook-xsl-stylesheets )"
+
+src_prepare() {
+ #add the correct java directories to the config file
+ sed \
+ -i "/^.DEFAULT_JAR_DIR/{s|=.*|=\"$(echo $(ls -d /usr/share/*/lib))\"|}" \
+ m4/java.m4 || die
+
+ sed -i "s|-L\$SCI_SRCDIR/bin/|-L\$SCI_SRCDIR/bin/ \
+ -L$(java-config -i gluegen) \
+ -L$(java-config -i hdf-java) \
+ -L$(java-config -i jogl)|" configure.ac || die
+ eautoreconf
+ sed -i \
+ -e "/<\/librarypaths>/i\<path value=\"$(java-config -i gluegen)\"\/>" \
+ -e "/<\/librarypaths>/i\<path value=\"$(java-config -i jogl)\"\/>" \
+ -e "/<\/librarypaths>/i\<path value=\"$(java-config -i hdf-java)\"\/>" \
+ etc/librarypath.xml || die
+ java-pkg-2_src_prepare
+}
+
+src_configure() {
+ local myopts
+ use doc && myopts="--with-docbook=/usr/share/sgml/docbook/xsl-stylesheets"
+
+ export JAVA_HOME=$(java-config -O)
+ export BLAS_LIBS="$(pkg-config --libs blas)"
+ export LAPACK_LIBS="$(pkg-config --libs lapack)"
+
+ econf \
+ --disable-rpath \
+ --without-pvm \
+ $(use_with scicos) \
+ $(use_with tk) \
+ $(use_with fftw) \
+ $(use_with gui)\
+ $(use_with gui javasci)\
+ $(use_with matio) \
+ $(use_with scicos) \
+ $(use_with umfpack) \
+ $(use_enable doc build-help) \
+ $(use_with hdf5) \
+ ${myopts}
+}
+
+src_compile() {
+ emake || die "emake failed"
+ if use doc; then
+ emake doc || die "emake failed"
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ # install docs
+ dodoc ACKNOWLEDGEMENTS CHANGES README_Unix RELEASE_NOTES \
+ Readme_Visual.txt || die "failed to install docs"
+
+ #install icon
+ newicon icons/scilab.xpm scilab.xpm
+
+ make_desktop_entry ${PN} "Scilab" ${PN} "Education;Math"
+}
+
+pkg_postinst() {
+ einfo "To tell Scilab about your printers, set the environment"
+ einfo "variable PRINTERS in the form:"
+ einfo
+ einfo "PRINTERS=\"firstPrinter:secondPrinter:anotherPrinter\""
+}