diff options
author | Jockey S. Kyd <jockey.kyd@gmail.com> | 2011-10-21 17:28:40 -0200 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-10-21 17:28:40 -0200 |
commit | 3515f10a978d6b66c285dc0ed306c592eff3315a (patch) | |
tree | c4d9d7c24d398ee12c08cbbbdd072b6586e9495e | |
parent | 299cf88d270e872853ffd224e8c62335ec71e874 (diff) |
development/mcrl2: Added (micro Common Representation Language 2)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
-rw-r--r-- | development/mcrl2/README | 5 | ||||
-rw-r--r-- | development/mcrl2/mcrl2.SlackBuild | 90 | ||||
-rw-r--r-- | development/mcrl2/mcrl2.info | 10 | ||||
-rw-r--r-- | development/mcrl2/slack-desc | 19 |
4 files changed, 124 insertions, 0 deletions
diff --git a/development/mcrl2/README b/development/mcrl2/README new file mode 100644 index 000000000000..57354a8109ad --- /dev/null +++ b/development/mcrl2/README @@ -0,0 +1,5 @@ +mCRL2 stands for micro Common Representation Language 2. It is a +specification language that can be used to specify and analyse the +behaviour of distributed systems and protocols and is the successor to +μCRL. Using its accompanying toolset systems can be analysed and verified +automatically. diff --git a/development/mcrl2/mcrl2.SlackBuild b/development/mcrl2/mcrl2.SlackBuild new file mode 100644 index 000000000000..5fe477d8ca93 --- /dev/null +++ b/development/mcrl2/mcrl2.SlackBuild @@ -0,0 +1,90 @@ +#!/bin/sh +# +# Written by Jockey S. Kyd (jockey dot kyd at gmail dot com) +# Public domain +# + +PRGNAM=mcrl2 +VERSION=201107 +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 + +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 + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +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 {} \; + +# not customisable settings of cmake, so work around a bit +sed -i "s|share/man|man|g" `grep -rl share/man *` +sed -i "s|share/doc/mcrl2|doc/$PRGNAM-$VERSION|g" `grep -rl share/doc/mcrl2 *` +sed -i "s|lib/mcrl2|lib$LIBDIRSUFFIX/$PRGNAM|g" `grep -rl lib/mcrl2 *` + +mkdir -p mcrl2_build +cd mcrl2_build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + .. + make VERBOSE=1 + make install DESTDIR=$PKG +cd .. + +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 {} \; + +# copy supporting files for vim +mkdir -p $PKG/usr/share/$PRGNAM +cp -a .vim $PKG/usr/share/$PRGNAM/vim + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CHANGES COPYING INSTALL LICENSE_1_0.txt README \ + $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/development/mcrl2/mcrl2.info b/development/mcrl2/mcrl2.info new file mode 100644 index 000000000000..792a49c8150d --- /dev/null +++ b/development/mcrl2/mcrl2.info @@ -0,0 +1,10 @@ +PRGNAM="mcrl2" +VERSION="201107" +HOMEPAGE="http://www.mcrl2.org" +DOWNLOAD="http://www.win.tue.nl/mcrl2/download/release/mcrl2-201107-src.tar.gz" +MD5SUM="f2b6dac7786815cc9f01635add8507d4" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Jockey S. Kyd" +EMAIL="jockey.kyd@gmail.com" +APPROVED="Niels Horn" diff --git a/development/mcrl2/slack-desc b/development/mcrl2/slack-desc new file mode 100644 index 000000000000..e541a49b2c41 --- /dev/null +++ b/development/mcrl2/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------------------------------------------------------| +mcrl2: mcrl2 (micro Common Representation Language 2) +mcrl2: +mcrl2: mCRL2 stands for micro Common Representation Language 2. It is a +mcrl2: specification language that can be used to specify and analyse the +mcrl2: behaviour of distributed systems and protocols and is the successor +mcrl2: to μCRL. Using its accompanying toolset systems can be analysed and +mcrl2: verified automatically. +mcrl2: +mcrl2: http://www.mcrl2.org/ +mcrl2: +mcrl2: |