diff options
author | Jockey S. Kyd <jockey.kyd@gmail.com> | 2011-10-15 08:25:22 -0500 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-10-22 10:17:07 -0200 |
commit | e41ad9798edeac52126fc89b43a578920d2f48bc (patch) | |
tree | fb6691e6022b3db0dad5837b77389267218b4651 /development/mit-scheme | |
parent | 74785af734180a2fefe8d88df67543179b7b61b7 (diff) | |
download | slackbuilds-e41ad9798edeac52126fc89b43a578920d2f48bc.tar.gz |
development/mit-scheme: Added (MIT/GNU Scheme)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'development/mit-scheme')
-rw-r--r-- | development/mit-scheme/README | 6 | ||||
-rw-r--r-- | development/mit-scheme/mit-scheme.SlackBuild | 102 | ||||
-rw-r--r-- | development/mit-scheme/mit-scheme.info | 24 | ||||
-rw-r--r-- | development/mit-scheme/slack-desc | 19 |
4 files changed, 151 insertions, 0 deletions
diff --git a/development/mit-scheme/README b/development/mit-scheme/README new file mode 100644 index 0000000000..3b8ead4248 --- /dev/null +++ b/development/mit-scheme/README @@ -0,0 +1,6 @@ +MIT/GNU Scheme is an implementation of the Scheme programming language, +providing an interpreter, compiler, source-code debugger, integrated +Emacs-like editor, and a large runtime library. MIT/GNU Scheme is best suited +to programming large applications with a rapid development cycle. + +http://www.gnu.org/software/mit-scheme/ diff --git a/development/mit-scheme/mit-scheme.SlackBuild b/development/mit-scheme/mit-scheme.SlackBuild new file mode 100644 index 0000000000..b4b236650a --- /dev/null +++ b/development/mit-scheme/mit-scheme.SlackBuild @@ -0,0 +1,102 @@ +#!/bin/sh +# +# Written by Jockey S. Kyd (jockey dot kyd at gmail dot com) +# Public domain +# + +PRGNAM=mit-scheme +VERSION=9.0.1 +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="" + TARARCH="i386" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" + TARARCH="i386" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" + TARARCH="x86-64" +else + printf "$ARCH is not supported.\n" 1>&2 + exit 1 +fi + +set -e +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION-$TARARCH.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 {} \; + +cd src +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib$LIBDIRSUFFIX \ + --build=$ARCH-slackware-linux +make compile-microcode +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 + +mkdir -p $PKG/usr/man/man1 +cp -a doc/scheme.1 $PKG/usr/man/man1/mit-scheme.1 +find $PKG/usr/man -type f -exec gzip -9 {} \; + +# take prebuilt info doc rather than build them by ourselves +mkdir -p $PKG/usr/info +tar xvf $CWD/$PRGNAM-$VERSION-doc-info.tar.gz +cp -a $PRGNAM-$VERSION/doc/*.info $PKG/usr/info +find $PKG/usr/info -type f -exec gzip -9 {} \; +rm -rf $PRGNAM-$VERSION + +# ditto for html ones +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html +tar xvf $CWD/$PRGNAM-$VERSION-doc-html.tar.gz +cp -a $PRGNAM-$VERSION/doc/* $PKG/usr/doc/$PRGNAM-$VERSION/html +rm -rf $PRGNAM-$VERSION + +# ditto for pdf ones +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/pdf +tar xvf $CWD/$PRGNAM-$VERSION-doc-pdf.tar.gz +cp -a $PRGNAM-$VERSION/doc/* $PKG/usr/doc/$PRGNAM-$VERSION/pdf +rm -rf $PRGNAM-$VERSION + +cp -a changelog.txt src/COPYING src/README.txt $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/mit-scheme/mit-scheme.info b/development/mit-scheme/mit-scheme.info new file mode 100644 index 0000000000..dcf31bebfd --- /dev/null +++ b/development/mit-scheme/mit-scheme.info @@ -0,0 +1,24 @@ +PRGNAM="mit-scheme" +VERSION="9.0.1" +HOMEPAGE="http://www.gnu.org/software/mit-scheme/" +DOWNLOAD=" \ + http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.0.1/mit-scheme-9.0.1-i386.tar.gz \ + http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.0.1/mit-scheme-9.0.1-doc-html.tar.gz \ + http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.0.1/mit-scheme-9.0.1-doc-info.tar.gz \ + http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.0.1/mit-scheme-9.0.1-doc-pdf.tar.gz" +MD5SUM="51335cf31f8a698ea140547a5cd357d5 \ + a06b888ed81b6d4337e38515fc8079fb \ + 862c4c01b82046d8840e3e8ca76cca9c \ + 1354661e6821fadab24d79eb85746263" +DOWNLOAD_x86_64=" \ + http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.0.1/mit-scheme-9.0.1-x86-64.tar.gz \ + http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.0.1/mit-scheme-9.0.1-doc-html.tar.gz \ + http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.0.1/mit-scheme-9.0.1-doc-info.tar.gz \ + http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.0.1/mit-scheme-9.0.1-doc-pdf.tar.gz" +MD5SUM_x86_64="332c37f07ba222bf8a1771f497032fc9 \ + a06b888ed81b6d4337e38515fc8079fb \ + 862c4c01b82046d8840e3e8ca76cca9c \ + 1354661e6821fadab24d79eb85746263" +MAINTAINER="Jockey S. Kyd" +EMAIL="jockey.kyd@gmail.com" +APPROVED="Erik Hanson" diff --git a/development/mit-scheme/slack-desc b/development/mit-scheme/slack-desc new file mode 100644 index 0000000000..b9e50a3fc8 --- /dev/null +++ b/development/mit-scheme/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------------------------------------------------------| +mit-scheme: mit-scheme (MIT/GNU Scheme) +mit-scheme: +mit-scheme: MIT/GNU Scheme is an implementation of the Scheme programming +mit-scheme: language, providing an interpreter, compiler, source-code debugger, +mit-scheme: integrated Emacs-like editor, and a large runtime library. MIT/GNU +mit-scheme: Scheme is best suited to programming large applications with a rapid +mit-scheme: development cycle. +mit-scheme: +mit-scheme: http://www.gnu.org/software/mit-scheme/ +mit-scheme: +mit-scheme: |