summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Suter <easuter@gmail.com>2010-04-16 21:40:09 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-15 10:38:05 +0200
commit7b3baab6105e8d25c75deb1ee0560eea4d56bccf (patch)
treea55f636aad855fd8c17db3738f01c592062b28d1
parent8c10802daa79eb8fb9c7bfcbc2bc2422e2a1b561 (diff)
downloadslackbuilds-7b3baab6105e8d25c75deb1ee0560eea4d56bccf.tar.gz
development/polyml: Added (full implementation of Standard ML)
-rw-r--r--development/polyml/README6
-rw-r--r--development/polyml/polyml.SlackBuild84
-rw-r--r--development/polyml/polyml.info10
-rw-r--r--development/polyml/slack-desc19
4 files changed, 119 insertions, 0 deletions
diff --git a/development/polyml/README b/development/polyml/README
new file mode 100644
index 0000000000..c94f447260
--- /dev/null
+++ b/development/polyml/README
@@ -0,0 +1,6 @@
+Poly/ML is a full implementation of Standard ML available as
+open-source.
+
+By default, the SlackBuild will create a package with support
+for X11.
+
diff --git a/development/polyml/polyml.SlackBuild b/development/polyml/polyml.SlackBuild
new file mode 100644
index 0000000000..1d97c0ef87
--- /dev/null
+++ b/development/polyml/polyml.SlackBuild
@@ -0,0 +1,84 @@
+#!/bin/sh
+
+# Slackware build script for polyml
+# Written by Eugene Suter <easuter at gmail.com>
+
+PRGNAM="polyml"
+VERSION=${VERSION:-5.3}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+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"
+fi
+
+set -e # Exit on most errors
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM.$VERSION.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 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --mandir=/usr/man \
+ --with-x \
+ --build=$ARCH-slackware-linux
+
+# Compile the application and install it into the $PKG directory
+make
+make install DESTDIR=$PKG
+
+# Strip binaries and libraries
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+)
+
+# Compress man pages
+( 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
+)
+
+# Documentation
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ COPYING TODO.txt \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+# Copy the slack-desc
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+# Make the package
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+
diff --git a/development/polyml/polyml.info b/development/polyml/polyml.info
new file mode 100644
index 0000000000..499a28bb13
--- /dev/null
+++ b/development/polyml/polyml.info
@@ -0,0 +1,10 @@
+PRGNAM="polyml"
+VERSION="5.3"
+HOMEPAGE="http://www.polyml.org/"
+DOWNLOAD="http://downloads.sourceforge.net/project/polyml/polyml/5.3/polyml.5.3.tar.gz"
+MD5SUM="c4e3a33307c4465c4f068ae4fa225ced"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Eugene Suter"
+EMAIL="easuter@gmail.com"
+APPROVED="dsomero"
diff --git a/development/polyml/slack-desc b/development/polyml/slack-desc
new file mode 100644
index 0000000000..982bc57790
--- /dev/null
+++ b/development/polyml/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------------------------------------------------------|
+polyml: polyml (full implementation of Standard ML)
+polyml:
+polyml: Poly/ML is a full implementation of Standard ML available as
+polyml: open-source.
+polyml:
+polyml: Website: http://www.polyml.org/
+polyml:
+polyml:
+polyml:
+polyml:
+polyml: