diff options
author | Mauricio Martinez <eigenfilter@gmail.com> | 2016-09-03 06:41:15 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-09-03 07:17:24 +0700 |
commit | b7eef73772c318f106e47b3e1165314e5e67ac6c (patch) | |
tree | 20a8a07f7d653fbed88d0d785567dbb6bb836d8c | |
parent | c4affe9a60250ec06edfd38b7c3dba9d97acf2d0 (diff) |
academic/irsim: Added (A digital circuit simulator).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | academic/irsim/README | 6 | ||||
-rw-r--r-- | academic/irsim/irsim.SlackBuild | 92 | ||||
-rw-r--r-- | academic/irsim/irsim.info | 10 | ||||
-rw-r--r-- | academic/irsim/slack-desc | 19 |
4 files changed, 127 insertions, 0 deletions
diff --git a/academic/irsim/README b/academic/irsim/README new file mode 100644 index 0000000000000..035ee6541cd7a --- /dev/null +++ b/academic/irsim/README @@ -0,0 +1,6 @@ +IRSIM (A digital circuit simulator) + +IRSIM is a tool developed at Stanford, for simulating digital circuits. +It is a "switch-level" simulator; that is, it treats transistors as +ideal switches. IRSIM shares a history with magic, although it is an +independent program. diff --git a/academic/irsim/irsim.SlackBuild b/academic/irsim/irsim.SlackBuild new file mode 100644 index 0000000000000..898c8c00dc95c --- /dev/null +++ b/academic/irsim/irsim.SlackBuild @@ -0,0 +1,92 @@ +#!/bin/sh + +# Slackware build script for IRSIM +# Written by Mauricio Martinez <eigenfilter {at} gmail [dot] com> + +# 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=irsim +VERSION=${VERSION:-9.7.94} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -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 $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tgz +cd $PRGNAM-$VERSION +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 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a doc/* $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +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/irsim/irsim.info b/academic/irsim/irsim.info new file mode 100644 index 0000000000000..de0ef39109ea3 --- /dev/null +++ b/academic/irsim/irsim.info @@ -0,0 +1,10 @@ +PRGNAM="irsim" +VERSION="9.7.94" +HOMEPAGE="http://opencircuitdesign.com/irsim/" +DOWNLOAD="http://opencircuitdesign.com/irsim/archive/irsim-9.7.94.tgz" +MD5SUM="012a0dcb6d53a65fb8cf2ac179c6942e" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Mauricio Martinez" +EMAIL="eigenfilter@gmail.com" diff --git a/academic/irsim/slack-desc b/academic/irsim/slack-desc new file mode 100644 index 0000000000000..703a938115838 --- /dev/null +++ b/academic/irsim/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------------------------------------------------------| +irsim: irsim (A digital circuit simulator) +irsim: +irsim: IRSIM is a tool developed at Stanford, for simulating digital circuit. +irsim: It is a "switch-level" simulator; that is, it treats transistors as +irsim: ideal switches. IRSIM shares a history with magic, although it is an +irsim: independent program. +irsim: +irsim: +irsim: +irsim: +irsim: |