aboutsummaryrefslogtreecommitdiff
path: root/academic
diff options
context:
space:
mode:
authorR. S. Ananda Murthy <rsamurti@gmail.com>2014-06-25 00:09:05 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-06-25 00:09:05 +0700
commitfc3c3c1d8d71547bc4b7fe2cdb00de48d62ef123 (patch)
tree71c8fd15c38bce132456d02273b40864ad66dd60 /academic
parent92ce1474751c068538eb9bba1a1c1b5e1d50ec47 (diff)
academic/spiceopus: Added (circuit simulator).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r--academic/spiceopus/README6
-rw-r--r--academic/spiceopus/doinst.sh9
-rw-r--r--academic/spiceopus/slack-desc19
-rw-r--r--academic/spiceopus/spiceopus-config.custom76
-rw-r--r--academic/spiceopus/spiceopus.SlackBuild123
-rw-r--r--academic/spiceopus/spiceopus.info10
-rw-r--r--academic/spiceopus/spiceopus.pngbin0 -> 6882 bytes
7 files changed, 243 insertions, 0 deletions
diff --git a/academic/spiceopus/README b/academic/spiceopus/README
new file mode 100644
index 000000000000..3e6a23754339
--- /dev/null
+++ b/academic/spiceopus/README
@@ -0,0 +1,6 @@
+SPICE OPUS is a circuit simulation program with optimisation
+utilities. It is a recompilation of the original Berkeley's
+source code for Windows 95/98/NT and Linux operating systems with
+Georgia Tech Research Institute's XSpice mixed-mode simulator.
+The simulator includes an interpreted programming language
+called Nutmeg, which allows interactive Spice sessions.
diff --git a/academic/spiceopus/doinst.sh b/academic/spiceopus/doinst.sh
new file mode 100644
index 000000000000..3e5691a052b5
--- /dev/null
+++ b/academic/spiceopus/doinst.sh
@@ -0,0 +1,9 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/academic/spiceopus/slack-desc b/academic/spiceopus/slack-desc
new file mode 100644
index 000000000000..8b335ed74336
--- /dev/null
+++ b/academic/spiceopus/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 ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+spiceopus: spiceopus (A circuit simulator with optimization utilities)
+spiceopus:
+spiceopus: SPICE OPUS is a circuit simulation program with optimisation
+spiceopus: utilities. It is a recompilation of the original Berkeley's
+spiceopus: source code for Windows 95/98/NT and Linux operating systems with
+spiceopus: Georgia Tech Research Institute's XSpice mixed-mode simulator.
+spiceopus: The simulator includes an interpreted programming language
+spiceopus: called Nutmeg, which allows interactive Spice sessions.
+spiceopus:
+spiceopus:
+spiceopus:
diff --git a/academic/spiceopus/spiceopus-config.custom b/academic/spiceopus/spiceopus-config.custom
new file mode 100644
index 000000000000..596d63defb13
--- /dev/null
+++ b/academic/spiceopus/spiceopus-config.custom
@@ -0,0 +1,76 @@
+#! /bin/sh -
+#
+# This shell script calls spice binaries indirectly after setting
+# some spice3-specific environment variables. This way, you can
+# change the organization of the directories containing spice3
+# without re-compiling.
+#
+# In short: edit this file to set spice bin and lib path, editor, etc.
+
+# Spice installation prefix
+# SPICE_INSTALL_PREFIX=/usr/local
+
+SPICE_INSTALL_PREFIX=/usr
+
+# OPUSHOME variable default value
+if test -z "$OPUSHOME";
+then
+ OPUSHOME=$SPICE_INSTALL_PREFIX
+ export OPUSHOME
+fi
+
+# Where the spice3 executable resides
+if test -z "$SPICE_EXEC_DIR";
+then
+ SPICE_EXEC_DIR=$SPICE_INSTALL_PREFIX/bin
+ export SPICE_EXEC_DIR
+fi
+
+# Where spice3 support files reside
+if test -z "$SPICE_LIB_DIR";
+then
+ SPICE_LIB_DIR=$SPICE_INSTALL_PREFIX/lib/spiceopus
+ export SPICE_LIB_DIR
+fi
+
+# For "rspice", the server name
+# SPICE_HOST=localhost
+# export SPICE_HOST
+
+# For mailing bugs
+# SPICE_BUGADDR=cad@localhost
+# export SPICE_BUGADDR
+
+# Editor used by the "edit" command
+SPICE_EDITOR=/usr/bin/X11/xedit
+export SPICE_EDITOR
+
+# Set to 1 if you want raw data files to be in ascii (to move across
+# different types of systems.
+SPICE_ASCIIRAWFILE=0
+export SPICE_ASCIIRAWFILE
+
+
+# The following will be set automatically to the values shown; if you want
+# to override these values, uncomment the relevant line.
+#
+# SPICE_NEWS=$SPICE_LIB_DIR/news
+# export SPICE_NEWS
+# SPICE_MFBCAP=$SPICE_LIB_DIR/mfbcap
+# export SPICE_MFBCAP
+# SPICE_HELP=$SPICE_LIB_DIR/helpdir
+# export SPICE_HELP
+# SPICE_SCRIPTS=$SPICE_LIB_DIR/scripts
+# export SPICE_SCRIPTS
+# SPICE_PATH=$SPICE_EXEC_DIR/spice3
+# export SPICE_PATH
+#
+
+# Find .cm files in the working directory
+LD_LIBRARY_PATH="$LD_LIBRARY_PATH;."
+export LD_LIBRARY_PATH
+
+
+# Don't edit this line.
+exec $0.bin $@
+
diff --git a/academic/spiceopus/spiceopus.SlackBuild b/academic/spiceopus/spiceopus.SlackBuild
new file mode 100644
index 000000000000..ea63f086d04e
--- /dev/null
+++ b/academic/spiceopus/spiceopus.SlackBuild
@@ -0,0 +1,123 @@
+#!/bin/sh
+
+# Slackware build script for SpiceOpus
+
+# Copyright 2014 R. S. Ananda Murthy, Mysore, India
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+PRGNAM=spiceopus
+VERSION=${VERSION:-2.3}
+SRCDIR=spice_opus23_linux_18.Jan.2010_08.57
+PROGNAME=spice_opus23_linux
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $SRCDIR
+tar xvf $CWD/$PROGNAME.tar.gz
+cd $SRCDIR
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+mkdir -p $PKG/usr/bin
+mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}
+mkdir -p $PKG/usr/doc
+mkdir -p $PKG/usr/share/applications
+
+./install $PKG/usr
+
+if [ "$ARCH" = "x86_64" ]; then
+ mv $PKG/usr/lib/* $PKG/usr/lib${LIBDIRSUFFIX}/
+ rm -rf $PKG/usr/lib/
+fi
+
+rm $PKG/usr/bin/spiceopus-config
+cp $CWD/spiceopus-config.custom $PKG/usr/bin/spiceopus-config
+chmod +x $PKG/usr/bin/spiceopus-config
+
+mv $PKG/usr/lib${LIBDIRSUFFIX}/spiceopus/documentation $PKG/usr/doc/$PRGNAM-$VERSION
+( cd $PKG/usr/bin ; ln -sf spiceopus-config cmpp )
+( cd $PKG/usr/bin ; ln -sf spiceopus-config spiceopus )
+
+mkdir -p $PKG/usr/share/icons/hicolor/48x48/apps
+cp $CWD/$PRGNAM.png $PKG/usr/share/icons/hicolor/48x48/apps/$PRGNAM.png
+chmod -x $PKG/usr/share/icons/hicolor/48x48/apps/$PRGNAM.png
+
+cat <<EOF > $PKG/usr/share/applications/$PRGNAM.desktop
+[Desktop Entry]
+Encoding=UTF-8
+Name=SPICE OPUS
+Comment=A Circuit Simulation Program
+Exec=spiceopus
+Terminal=false
+Type=Application
+Categories=Science
+Icon=spiceopus
+StartupNotify=false
+EOF
+
+rm -rf $PKG/usr/src/$pkgname
+chown -R root:root $PKG
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a install README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/academic/spiceopus/spiceopus.info b/academic/spiceopus/spiceopus.info
new file mode 100644
index 000000000000..f47eb1c511b3
--- /dev/null
+++ b/academic/spiceopus/spiceopus.info
@@ -0,0 +1,10 @@
+PRGNAM="spiceopus"
+VERSION="2.3"
+HOMEPAGE="http://www.spiceopus.si/"
+DOWNLOAD="http://www.spiceopus.si/download/spice_opus23_linux.tar.gz"
+MD5SUM="b4445e0bc5b812203796ee8abdac2894"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="R. S. Ananda Murthy"
+EMAIL="rsamurti@gmail.com"
diff --git a/academic/spiceopus/spiceopus.png b/academic/spiceopus/spiceopus.png
new file mode 100644
index 000000000000..83b645255917
--- /dev/null
+++ b/academic/spiceopus/spiceopus.png
Binary files differ