diff options
Diffstat (limited to 'development/smlnj')
-rw-r--r-- | development/smlnj/README | 3 | ||||
-rw-r--r-- | development/smlnj/doinst.sh | 11 | ||||
-rw-r--r-- | development/smlnj/slack-desc | 19 | ||||
-rw-r--r-- | development/smlnj/smlnj.SlackBuild | 95 | ||||
-rw-r--r-- | development/smlnj/smlnj.info | 50 | ||||
-rw-r--r-- | development/smlnj/smlnj.sh | 2 |
6 files changed, 180 insertions, 0 deletions
diff --git a/development/smlnj/README b/development/smlnj/README new file mode 100644 index 0000000000..547d51e510 --- /dev/null +++ b/development/smlnj/README @@ -0,0 +1,3 @@ +Standard ML of New Jersey (abbreviated SML/NJ) is a compiler +for the Standard ML '97 programming language with associated libraries, +tools, and documentation. SML/NJ is free, open source software. diff --git a/development/smlnj/doinst.sh b/development/smlnj/doinst.sh new file mode 100644 index 0000000000..b17e614b54 --- /dev/null +++ b/development/smlnj/doinst.sh @@ -0,0 +1,11 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi + +chmod +x /etc/profile.d/smlnj.sh diff --git a/development/smlnj/slack-desc b/development/smlnj/slack-desc new file mode 100644 index 0000000000..3a211db75a --- /dev/null +++ b/development/smlnj/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------------------------------------------------------| +smlnj: smlnj (Standard ML of New Jersey) +smlnj: +smlnj: Standard ML of New Jersey (abbreviated SML/NJ) is a compiler +smlnj: for the Standard ML '97 programming language with associated +smlnj: libraries, tools, and documentation. SML/NJ is free, open +smlnj: source software. +smlnj: +smlnj: +smlnj: +smlnj: +smlnj: diff --git a/development/smlnj/smlnj.SlackBuild b/development/smlnj/smlnj.SlackBuild new file mode 100644 index 0000000000..222aa42ae6 --- /dev/null +++ b/development/smlnj/smlnj.SlackBuild @@ -0,0 +1,95 @@ +#!/bin/sh + +# Slackware build script for smlnj + +# Copyright 2014 R. S. Ananda Murthy, Mysore, India +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# 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=smlnj +VERSION=${VERSION:-110.77} +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} + +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 + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT $TMP/$PRGNAM +cd $TMP/$PRGNAM +cp $CWD/*.tgz . +rm -rf config +tar xvf $CWD/config.tgz + +# Confuses install.sh +unset SMLNJ_HOME + +config/install.sh + +mkdir -p "$PKG/usr/lib/smlnj" +cp -R "$TMP/$PRGNAM/"{bin,lib} "$PKG/usr/lib/smlnj" + +mkdir -p "$PKG/etc/profile.d" +cp "$CWD/smlnj.sh" "$PKG/etc/profile.d/smlnj.sh" + +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 {} \; + +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 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/doinst.sh > $PKG/install/doinst.sh +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/smlnj/smlnj.info b/development/smlnj/smlnj.info new file mode 100644 index 0000000000..da44256026 --- /dev/null +++ b/development/smlnj/smlnj.info @@ -0,0 +1,50 @@ +PRGNAM="smlnj" +VERSION="110.77" +HOMEPAGE="http://www.smlnj.org/" +DOWNLOAD="http://smlnj.cs.uchicago.edu/dist/working/110.77/boot.x86-unix.tgz \ + http://smlnj.cs.uchicago.edu/dist/working/110.77/config.tgz \ + http://smlnj.cs.uchicago.edu/dist/working/110.77/cm.tgz \ + http://smlnj.cs.uchicago.edu/dist/working/110.77/compiler.tgz \ + http://smlnj.cs.uchicago.edu/dist/working/110.77/runtime.tgz \ + http://smlnj.cs.uchicago.edu/dist/working/110.77/system.tgz \ + http://smlnj.cs.uchicago.edu/dist/working/110.77/MLRISC.tgz \ + http://smlnj.cs.uchicago.edu/dist/working/110.77/smlnj-lib.tgz \ + http://smlnj.cs.uchicago.edu/dist/working/110.77/ckit.tgz \ + http://smlnj.cs.uchicago.edu/dist/working/110.77/nlffi.tgz \ + http://smlnj.cs.uchicago.edu/dist/working/110.77/cml.tgz \ + http://smlnj.cs.uchicago.edu/dist/working/110.77/eXene.tgz \ + http://smlnj.cs.uchicago.edu/dist/working/110.77/ml-lpt.tgz \ + http://smlnj.cs.uchicago.edu/dist/working/110.77/ml-lex.tgz \ + http://smlnj.cs.uchicago.edu/dist/working/110.77/ml-yacc.tgz \ + http://smlnj.cs.uchicago.edu/dist/working/110.77/ml-burg.tgz \ + http://smlnj.cs.uchicago.edu/dist/working/110.77/pgraph.tgz \ + http://smlnj.cs.uchicago.edu/dist/working/110.77/trace-debug-profile.tgz \ + http://smlnj.cs.uchicago.edu/dist/working/110.77/heap2asm.tgz \ + http://smlnj.cs.uchicago.edu/dist/working/110.77/smlnj-c.tgz \ + http://smlnj.cs.uchicago.edu/dist/working/110.77/doc.tgz" +MD5SUM="1ba33a8f0c325585d6b5b645549e2b71 \ + 2827780d600faee8677dd18eb7fa4df8 \ + 0abd75a7a27fa8f885fe0e6f65f6cb70 \ + 4a03318490ca6b1b2af81c6d248d1690 \ + 68548e897b7163b05126ec109e872b01 \ + 8f9ca6ec62691784afd7181d233eedc6 \ + 591f956ef3a3f8a5991852046b274d37 \ + 35e23f061d4ca145f36e6b4023888926 \ + 99513c522754fdf94731d1830c373b28 \ + 6687c6e79d82dca5808cc7dce4256ea7 \ + c716232bf2900e67323973c7d54c8acf \ + 5a516f16d82015c5c2b6df30b853790c \ + 70fefdd8cd69ab4fbd3f0857f38713eb \ + 3e174753c3e8cb153db2d17836d337b4 \ + a5027dfe76c50276a2dea486668972c4 \ + c2a019683f86f0407d2d9132e9b467a3 \ + 8eae6c9a74c128f352273a02f2be5b08 \ + 7066aaa06671f5f80b7bab72f7873971 \ + 8de0959768e802f02b161a32a290f417 \ + 6199bba0cd71e018b2455e0a7ebe6e46 \ + 1e90be1391bdad33547df7e04abcd3bf" +DOWNLOAD_x86_64="UNSUPPORTED" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="R. S. Ananda Murthy" +EMAIL="rsamurti@gmail.com" diff --git a/development/smlnj/smlnj.sh b/development/smlnj/smlnj.sh new file mode 100644 index 0000000000..ded41207be --- /dev/null +++ b/development/smlnj/smlnj.sh @@ -0,0 +1,2 @@ +export SMLNJ_HOME=/usr/lib/smlnj +export PATH="$PATH:/usr/lib/smlnj/bin" |