aboutsummaryrefslogtreecommitdiff
path: root/development/sbcl
diff options
context:
space:
mode:
Diffstat (limited to 'development/sbcl')
-rw-r--r--development/sbcl/README6
-rw-r--r--development/sbcl/sbcl.SlackBuild88
-rw-r--r--development/sbcl/sbcl.csh10
-rw-r--r--development/sbcl/sbcl.info10
-rw-r--r--development/sbcl/sbcl.sh10
-rw-r--r--development/sbcl/slack-desc19
6 files changed, 143 insertions, 0 deletions
diff --git a/development/sbcl/README b/development/sbcl/README
new file mode 100644
index 0000000000000..364732890fc47
--- /dev/null
+++ b/development/sbcl/README
@@ -0,0 +1,6 @@
+Steel Bank Common Lisp (SBCL) is an open source (free software)
+compiler and runtime system for ANSI Common Lisp. It provides an
+interactive environment including an integrated native compiler,
+a debugger, and many extensions.
+
+This is from the pre-compiled linux binary supplied by SBCL.
diff --git a/development/sbcl/sbcl.SlackBuild b/development/sbcl/sbcl.SlackBuild
new file mode 100644
index 0000000000000..7b35e259b8124
--- /dev/null
+++ b/development/sbcl/sbcl.SlackBuild
@@ -0,0 +1,88 @@
+#!/bin/sh
+
+### sbcl.SlackBuild ###
+
+# Slackware build script for sbcl 1.0.45
+# written by paul wisehart paul@oldcode.org
+
+PRGNAM=sbcl
+VERSION=${VERSION:-1.0.45}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+#ARCH should
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ LIBDIRSUFFIX=""
+ FNAM=$PRGNAM-$VERSION-x86-linux-binary
+elif [ "$ARCH" = "x86_64" ]; then
+ LIBDIRSUFFIX="64"
+ FNAM=$PRGNAM-$VERSION-x86-64-linux-binary
+else
+ echo "Architecture [$ARCH] not supported."
+ exit 1
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+
+rm -rf $(basename $FNAM "-binary") #the resulting directory doesnt have the "-binary"
+tar xvf $CWD/$FNAM.tar.bz2
+cd $(basename $FNAM "-binary")
+
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+mkdir ${PKG}/usr
+INSTALL_ROOT=${PKG}/usr sh install.sh
+
+#fixup /usr/lib -> /usr/lib64 if on x86_64:
+if [ "$ARCH" = "x86_64" ]; then
+ cd $PKG/usr
+ mv lib lib${LIBDIRSUFFIX}
+ cd -
+fi
+
+cd $PKG/usr/share
+ mv man ..
+ mv doc ..
+cd -
+
+cd $PKG/usr/doc
+ mv $PRGNAM $PRGNAM-$VERSION
+ rm -rf $PKG/usr/share
+cd -
+
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+#get rid of unneeded zero-length files.
+cd $PKG
+ find . -name "test-passed" -type f -exec rm -f {} \;
+cd -
+
+# scripts in profile.d that set SBCL_HOME
+mkdir -p $PKG/etc/profile.d
+cp $CWD/sbcl.csh $CWD/sbcl.sh $PKG/etc/profile.d
+
+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/sbcl/sbcl.csh b/development/sbcl/sbcl.csh
new file mode 100644
index 0000000000000..11dd1604ceb65
--- /dev/null
+++ b/development/sbcl/sbcl.csh
@@ -0,0 +1,10 @@
+#!/bin/csh
+
+if (`uname -m` == "x86_64") then
+ set LIBDIRSUFFIX="64"
+else
+ set LIBDIRSUFFIX=""
+endif
+
+setenv SBCL_HOME /usr/lib${LIBDIRSUFFIX}/sbcl
+
diff --git a/development/sbcl/sbcl.info b/development/sbcl/sbcl.info
new file mode 100644
index 0000000000000..13688ac23452e
--- /dev/null
+++ b/development/sbcl/sbcl.info
@@ -0,0 +1,10 @@
+PRGNAM="sbcl"
+VERSION="1.0.45"
+HOMEPAGE="http://www.sbcl.org/"
+DOWNLOAD="http://downloads.sourceforge.net/project/sbcl/sbcl/1.0.45/sbcl-1.0.45-x86-linux-binary.tar.bz2"
+MD5SUM="35c09ca2375dfbaa6b02d74e9763d9f2"
+DOWNLOAD_x86_64="http://downloads.sourceforge.net/project/sbcl/sbcl/1.0.45/sbcl-1.0.45-x86-64-linux-binary.tar.bz2"
+MD5SUM_x86_64="e7c83b324834b262edecfed34d8db5dc"
+MAINTAINER="paul wisehart"
+EMAIL="paul@oldcode.org"
+APPROVED="Niels Horn"
diff --git a/development/sbcl/sbcl.sh b/development/sbcl/sbcl.sh
new file mode 100644
index 0000000000000..5eec0d3de8f56
--- /dev/null
+++ b/development/sbcl/sbcl.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+if [ $(uname -m) = "x86_64" ]; then
+ LIBDIRSUFFIX="64"
+else
+ LIBDIRSUFFIX=""
+fi
+
+export SBCL_HOME=/usr/lib${LIBDIRSUFFIX}/sbcl
+
diff --git a/development/sbcl/slack-desc b/development/sbcl/slack-desc
new file mode 100644
index 0000000000000..47e9bc50607ec
--- /dev/null
+++ b/development/sbcl/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------------------------------------------------------|
+sbcl: sbcl (Steel Bank Common Lisp)
+sbcl:
+sbcl: Steel Bank Common Lisp (SBCL) is an open source (free software)
+sbcl: compiler and runtime system for ANSI Common Lisp. It provides an
+sbcl: interactive environment including an integrated native compiler,
+sbcl: a debugger, and many extensions.
+sbcl:
+sbcl:
+sbcl:
+sbcl:
+sbcl: