academic/ng-spice: Added to 12.1 repository

This commit is contained in:
Kyle Guinn 2010-05-11 22:53:05 +02:00 committed by Erik Hanson
parent eb725f41f1
commit 11c6051505
4 changed files with 92 additions and 0 deletions

4
academic/ng-spice/README Normal file
View File

@ -0,0 +1,4 @@
Ngspice is a mixed-level/mixed-signal circuit simulator. Its code is based on
three open source software packages: Spice3f5, Cider1b1 and Xspice. Ngspice
is part of gEDA project, a full GPL'd suite of Electronic Design Automation
tools.

View File

@ -0,0 +1,69 @@
#!/bin/sh
# Slackware build script for ng-spice
# Written by Kyle Guinn <elyk03@gmail.com>
PRGNAM="ng-spice"
VERSION="rework-17"
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM-$VERSION
OUTPUT=${OUTPUT:-/tmp}
PKGVER=$(echo $VERSION | sed s/-/_/)
DOCS="ANALYSES AUTHORS BUGS COPYING ChangeLog DEVICES FAQ INSTALL NEWS README doc/ngspice.pdf"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-st .
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-shared \
--disable-static \
--with-readline \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l); do \
ln -s $(readlink $i).gz $i.gz; rm $i; \
done
)
rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*.info*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $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-$PKGVER-$ARCH-$BUILD$TAG.tgz

View File

@ -0,0 +1,8 @@
PRGNAM="ng-spice"
VERSION="rework-17"
HOMEPAGE="http://ngspice.sourceforge.net/"
DOWNLOAD="http://downloads.sourceforge.net/ngspice/ng-spice-rework-17.tar.gz"
MD5SUM="abe283dea98b913a2122f085076865b1"
MAINTAINER="Kyle Guinn"
EMAIL="elyk03@gmail.com"
APPROVED="Erik Hanson"

View File

@ -0,0 +1,11 @@
ng-spice: Ngspice (circuit simulator)
ng-spice:
ng-spice: Ngspice is a mixed-level/mixed-signal circuit simulator. Its
ng-spice: code is based on three open source software packages: Spice3f5,
ng-spice: Cider1b1 and Xspice. Ngspice is part of gEDA project, a full
ng-spice: GPL'd suite of Electronic Design Automation tools.
ng-spice:
ng-spice:
ng-spice:
ng-spice:
ng-spice: