diff options
author | João Felipe Santos <joao.eel[at]gmail.com> | 2010-05-12 23:27:41 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 23:27:41 +0200 |
commit | 62ef8dd6f6ba4b91bf067b20aa347351eb990635 (patch) | |
tree | 6e15684bd6ed1249c03c71eb2314665f43142642 /academic | |
parent | f108121e10ebfacc046e48e52c2941dd95943bea (diff) | |
download | slackbuilds-62ef8dd6f6ba4b91bf067b20aa347351eb990635.tar.gz |
academic/scilab: Added to 12.2 repository
Diffstat (limited to 'academic')
-rw-r--r-- | academic/scilab/README | 5 | ||||
-rw-r--r-- | academic/scilab/doinst.sh | 4 | ||||
-rw-r--r-- | academic/scilab/scilab.SlackBuild | 114 | ||||
-rw-r--r-- | academic/scilab/scilab.desktop | 9 | ||||
-rw-r--r-- | academic/scilab/scilab.info | 8 | ||||
-rw-r--r-- | academic/scilab/slack-desc | 19 |
6 files changed, 159 insertions, 0 deletions
diff --git a/academic/scilab/README b/academic/scilab/README new file mode 100644 index 0000000000..bb2d8ef118 --- /dev/null +++ b/academic/scilab/README @@ -0,0 +1,5 @@ +Scilab is a scientific software package for numerical computations providing a +powerful open computing environment for engineering and scientific applications. + +All Scilab default requirements are included in Slackware. If you need OCaml or +Java support, please check the documentation included for the flags. diff --git a/academic/scilab/doinst.sh b/academic/scilab/doinst.sh new file mode 100644 index 0000000000..4e8ba7071d --- /dev/null +++ b/academic/scilab/doinst.sh @@ -0,0 +1,4 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + diff --git a/academic/scilab/scilab.SlackBuild b/academic/scilab/scilab.SlackBuild new file mode 100644 index 0000000000..c55fe309cc --- /dev/null +++ b/academic/scilab/scilab.SlackBuild @@ -0,0 +1,114 @@ +#!/bin/sh + +# Slackware build script for scilab + +# Copyright (c) 2009 João Felipe Santos +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +# THE SOFTWARE. + +# The .desktop file was retrieved from the ArchLinux User Repository, +# where it is mantained by StefanHusmann + +PRGNAM=scilab +VERSION=${VERSION:-4.1.2} +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION-src.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --with-tk \ + --with-gfortran \ + --build=$ARCH-slackware-linux + +make CC_OPTIONS+="$SLKCFLAGS" FC_OPTIONS+="$SLKCFLAGS" all +make PREFIX=$PKG/usr DESTDIR=$PKG install + +# We've got a lot of embedded $TMP and $PKG paths in the package, so... +sed -i "s%$PKG%/usr/lib%g" $PKG/usr/bin/scilab # Do this one first +for i in $(grep -R '/tmp/SBo' $PKG | cut -d: -f1) ; do + sed -i "s%$PKG%%g" $i + sed -i "s%$TMP%%g" $i +done +# Now let's fix up a couple of symlinks +( cd $PKG/usr/bin + rm -f intersci intersci-n + ln -sf ../lib/$PRGNAM-$VERSION/bin/intersci intersci + ln -sf ../lib/$PRGNAM-$VERSION/bin/intersci-n intersci-n +) + +# Add a desktop menu entry +mkdir -p $PKG/usr/share/{applications,pixmaps} +cat $CWD/scilab.desktop > $PKG/usr/share/applications/scilab.desktop +( cd $PKG/usr/share/pixmaps + ln -s ../../lib/$PRGNAM-$VERSION/X11_defaults/scilab.xpm . +) + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null +) + +mv $PKG/usr/share/doc $PKG/usr +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +( cd $PKG/usr/doc/$PRGNAM-$VERSION + for i in demos examples man ; + do ln -s ../../lib/$PRGNAM-$VERSION/$i . ; + done +) + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/academic/scilab/scilab.desktop b/academic/scilab/scilab.desktop new file mode 100644 index 0000000000..0a363808b3 --- /dev/null +++ b/academic/scilab/scilab.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Scilab +Comment=A scientific software package for numerical computations +Icon=scilab +Exec=scilab +Encoding=UTF-8 +Terminal=false +Type=Application +Categories=Application;Science;Math diff --git a/academic/scilab/scilab.info b/academic/scilab/scilab.info new file mode 100644 index 0000000000..5f87103644 --- /dev/null +++ b/academic/scilab/scilab.info @@ -0,0 +1,8 @@ +PRGNAM="scilab" +VERSION="4.1.2" +HOMEPAGE="http://www.scilab.org" +DOWNLOAD="http://www.scilab.org/download/4.1.2/scilab-4.1.2-src.tar.gz" +MD5SUM="17a7a6aa52918f33d96777a0dc423658" +MAINTAINER="João Felipe Santos" +EMAIL="joao.eel[at]gmail.com" +APPROVED="rworkman" diff --git a/academic/scilab/slack-desc b/academic/scilab/slack-desc new file mode 100644 index 0000000000..6a3e5536ef --- /dev/null +++ b/academic/scilab/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' on +# the right side marks the last column you can put a character in. You must make +# exactly 11 lines for the formatting to be correct. It's also customary to +# leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +scilab: Scilab (A scientific software package for numerical computations) +scilab: +scilab: Scilab is a scientific software package for numerical computations +scilab: providing a powerful open computing environment for engineering and +scilab: scientific applications. +scilab: +scilab: Homepage: http://www.scilab.org +scilab: +scilab: +scilab: +scilab: |