development/alloy: Added (lightweight modelling language)

Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
Jockey S. Kyd 2011-09-28 07:56:36 -03:00 committed by Niels Horn
parent 63cd59235a
commit 9eea3d3eb6
4 changed files with 89 additions and 0 deletions

4
development/alloy/README Normal file
View File

@ -0,0 +1,4 @@
Alloy is a lightweight modelling language for software design. It is
amenable to a fully automatic analysis, using the Alloy Analyzer, and
provides a visualizer for making sense of solutions and counterexamples it
finds.

View File

@ -0,0 +1,56 @@
#!/bin/sh
#
# Written by Jockey S. Kyd (jockey dot kyd at gmail dot com)
# Public domain
#
PRGNAM=alloy
VERSION=4.1.10
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}
DIST=$PRGNAM${VERSION%%.*}
case "$ARCH" in
x86_64) LIBDIRSUFFIX="64" ;;
*) LIBDIRSUFFIX="" ;;
esac
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM
install -Dm 644 $CWD/$DIST.jar $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM/$DIST.jar
mkdir -p $PKG/usr/bin
( cd $PKG/usr/bin
cat > $DIST <<__END__
#!/bin/sh
java -jar /usr/lib$LIBDIRSUFFIX/$PRGNAM/$DIST.jar "\$@"
__END__
chmod 755 $DIST
ln -sf $DIST $PRGNAM
)
mkdir -p $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}

View File

@ -0,0 +1,10 @@
PRGNAM="alloy"
VERSION="4.1.10"
HOMEPAGE="http://alloy.mit.edu/"
DOWNLOAD="http://alloy.mit.edu/alloy4/alloy4.jar"
MD5SUM="5893b41934de4d339f9b15e2c254e10c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Jockey S. Kyd"
EMAIL="jockey.kyd@gmail.com"
APPROVED="Niels Horn"

View File

@ -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------------------------------------------------------|
alloy: alloy (Alloy Analyzer)
alloy:
alloy: Alloy is a lightweight modelling language for software design. It is
alloy: amenable to a fully automatic analysis, using the Alloy Analyzer, and
alloy: provides a visualizer for making sense of solutions and
alloy: counterexamples it finds.
alloy:
alloy: http://alloy.mit.edu/
alloy:
alloy:
alloy: