diff options
author | Eugene M <damagedone@gmx.com> | 2015-10-02 00:50:27 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-10-02 00:50:27 +0700 |
commit | f7a0d2cbc31f8ec375122d5f266564e6fd51568b (patch) | |
tree | 827dbd8ad628df7f63973e9fd014d06661e010d3 /development/sbcl | |
parent | 1b01033ebefc804d4db9f855a91e0e0d1f7a0e88 (diff) |
development/sbcl: Updated for version 1.2.16 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/sbcl')
-rw-r--r-- | development/sbcl/README | 12 | ||||
-rw-r--r-- | development/sbcl/sbcl.SlackBuild | 116 | ||||
-rw-r--r-- | development/sbcl/sbcl.csh | 10 | ||||
-rw-r--r-- | development/sbcl/sbcl.info | 14 | ||||
-rw-r--r-- | development/sbcl/sbcl.sh | 10 | ||||
-rw-r--r-- | development/sbcl/slack-desc | 2 |
6 files changed, 85 insertions, 79 deletions
diff --git a/development/sbcl/README b/development/sbcl/README index 364732890fc47..92b8b51afba52 100644 --- a/development/sbcl/README +++ b/development/sbcl/README @@ -1,6 +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. +Steel Bank Common Lisp (SBCL) is a high performance Common Lisp +compiler. It is open source / free software, with a permissive +license. In addition to the compiler and runtime system for ANSI +Common Lisp, it provides an interactive environment including a +debugger, a statistical profiler, a code coverage tool, and many +other extensions. diff --git a/development/sbcl/sbcl.SlackBuild b/development/sbcl/sbcl.SlackBuild index 8cc73eee690f1..fb2cfc143180d 100644 --- a/development/sbcl/sbcl.SlackBuild +++ b/development/sbcl/sbcl.SlackBuild @@ -1,21 +1,40 @@ #!/bin/sh -### sbcl.SlackBuild ### - -# Slackware build script for sbcl (Steel Bank Common Lisp) -# written by paul wisehart paul@oldcode.org +# Slackware build script for sbcl + +# Copyright 2006 - 2015 Paul Wisehart, <paul at oldcode dot org> +# 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. + +# Modified by Eugene M., <damagedone at gmx dot com> PRGNAM=sbcl -VERSION=${VERSION:-1.0.50} +VERSION=${VERSION:-1.2.16} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -#ARCH should if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i486 ;; - *) ARCH=$( uname -m ) ;; - esac + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac fi CWD=$(pwd) @@ -24,14 +43,17 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then - LIBDIRSUFFIX="" - FNAM=$PRGNAM-$VERSION-x86-linux-binary + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then - LIBDIRSUFFIX="64" - FNAM=$PRGNAM-$VERSION-x86-64-linux-binary + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" else - echo "Architecture [$ARCH] not supported." - exit 1 + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e @@ -39,51 +61,55 @@ 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") - +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION-source.tar.bz2 +cd $PRGNAM-$VERSION 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 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -mkdir ${PKG}/usr -INSTALL_ROOT=${PKG}/usr sh install.sh +sh make.sh clisp --prefix=/usr --fancy -#fixup /usr/lib -> /usr/lib64 if on x86_64: -if [ "$ARCH" = "x86_64" ]; then - cd $PKG/usr - mv lib lib${LIBDIRSUFFIX} - cd - -fi +make -C doc/manual info pdf -cd $PKG/usr/share - mv man .. - mv doc .. -cd - +INSTALL_ROOT=$PKG/usr \ +MAN_DIR=$PKG/usr/man \ +INFO_DIR=$PKG/usr/info \ +DOC_DIR=$PKG/usr/doc/$PRGNAM-$VERSION \ +sh install.sh -cd $PKG/usr/doc - mv $PRGNAM $PRGNAM-$VERSION - rm -rf $PKG/usr/share -cd - +# Fixup /usr/lib -> /usr/lib64 if on x86_64: +if [ "$ARCH" = "x86_64" ]; then + mv $PKG/usr/lib $PKG/usr/lib${LIBDIRSUFFIX} +fi -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +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 {} \; 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 - +rm -f $PKG/usr/info/dir +gzip -9 $PKG/usr/info/*.info* -# scripts in profile.d that set SBCL_HOME +rm -rf $PKG/usr/doc/$PRGNAM-$VERSION/html +cp -a HACKING INSTALL NEWS OPTIMIZATIONS PRINCIPLES README TLA TODO \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +# Set SBCL_HOME path mkdir -p $PKG/etc/profile.d -cp $CWD/sbcl.csh $CWD/sbcl.sh $PKG/etc/profile.d +cat > $PKG/etc/profile.d/sbcl.csh << EOF +#!/bin/csh +setenv SBCL_HOME /usr/lib${LIBDIRSUFFIX}/sbcl +EOF +cat > $PKG/etc/profile.d/sbcl.sh << EOF +#!/bin/sh +export SBCL_HOME=/usr/lib${LIBDIRSUFFIX}/sbcl +EOF chmod 0755 $PKG/etc/profile.d/* mkdir -p $PKG/install diff --git a/development/sbcl/sbcl.csh b/development/sbcl/sbcl.csh deleted file mode 100644 index 11dd1604ceb65..0000000000000 --- a/development/sbcl/sbcl.csh +++ /dev/null @@ -1,10 +0,0 @@ -#!/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 index 2864e707d25d3..15dbff70b14fb 100644 --- a/development/sbcl/sbcl.info +++ b/development/sbcl/sbcl.info @@ -1,10 +1,10 @@ PRGNAM="sbcl" -VERSION="1.0.50" +VERSION="1.2.16" HOMEPAGE="http://www.sbcl.org/" -DOWNLOAD="http://downloads.sourceforge.net/project/sbcl/sbcl/1.0.50/sbcl-1.0.50-x86-linux-binary.tar.bz2" -MD5SUM="f97585bbe221e4a1441e9bcfa5ba8edc" -DOWNLOAD_x86_64="http://downloads.sourceforge.net/project/sbcl/sbcl/1.0.50/sbcl-1.0.50-x86-64-linux-binary.tar.bz2" -MD5SUM_x86_64="5dceb09a03ce515e12bfe51607d0de21" +DOWNLOAD="http://downloads.sourceforge.net/sbcl/sbcl-1.2.16-source.tar.bz2" +MD5SUM="518890c40dc9e67383eb59a2fadd318b" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" REQUIRES="" -MAINTAINER="Paul Wisehart" -EMAIL="paul@oldcode.org" +MAINTAINER="Eugene M." +EMAIL="damagedone@gmx.com" diff --git a/development/sbcl/sbcl.sh b/development/sbcl/sbcl.sh deleted file mode 100644 index 5eec0d3de8f56..0000000000000 --- a/development/sbcl/sbcl.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/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 index 832b0df43de93..68f9c7622e858 100644 --- a/development/sbcl/slack-desc +++ b/development/sbcl/slack-desc @@ -14,6 +14,6 @@ sbcl: interactive environment including an integrated native compiler, sbcl: a debugger, and many extensions. sbcl: sbcl: -sbcl: +sbcl: Homepage: http://www.sbcl.org/ sbcl: sbcl: |