diff options
Diffstat (limited to 'development/ChezScheme')
-rw-r--r-- | development/ChezScheme/ChezScheme.SlackBuild | 117 | ||||
-rw-r--r-- | development/ChezScheme/ChezScheme.info | 16 | ||||
-rw-r--r-- | development/ChezScheme/README | 13 | ||||
-rw-r--r-- | development/ChezScheme/slack-desc | 19 |
4 files changed, 165 insertions, 0 deletions
diff --git a/development/ChezScheme/ChezScheme.SlackBuild b/development/ChezScheme/ChezScheme.SlackBuild new file mode 100644 index 000000000000..4bb60ae03f30 --- /dev/null +++ b/development/ChezScheme/ChezScheme.SlackBuild @@ -0,0 +1,117 @@ +#!/bin/sh + +# SlackBuild for ChezScheme, 19 February 2017 +# Arthur W. Green <awg@posteo.us> +# 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. + +## ChezScheme itself remains a copyrighted work under the terms of the +## Apache 2.0 license. Please see the file LICENSE in the ChezScheme +## source distribution for more on this. + +PRGNAM=ChezScheme +VERSION=${VERSION:-9.4.1_e09139a} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + WSIZE="--32" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + WSIZE="--32" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + WSIZE="--64" + LIBDIRSUFFIX="64" +else + LIBDIRSUFFIX="" +fi + +if [ "${THREADED:-no}" = "yes" ]; then + THREADS="--threads" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +for SRCNAM in \ + ChezScheme-e09139adddf9e25a5944215efb28677e60423970 \ + nanopass-framework-scheme-1f7e80bcff16766ef419183169bbc343db07db0c \ + zlib-cacf7f1d4e3d44d871b605da3b647f07d718623f \ + stex-3bd2b86cc5ae1797d05fc5cc6f11cc43383f741d \ +; do + PNAM=$(echo $SRCNAM | sed -e 's/-.*//') + rm -rf $SRCNAM $PNAM + tar xvf $CWD/$SRCNAM.tar.gz + mv $SRCNAM $PNAM +done + +cd $PRGNAM +mv \ + $TMP/nanopass \ + $TMP/zlib \ + $TMP/stex \ + . +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 {} \; + +./configure \ + $WSIZE \ + $THREADS \ + --installprefix=/usr \ + --installlib=/usr/lib${LIBDIRSUFFIX} \ + --installman=/usr/man \ + --gzip-man-pages \ + --temproot=$PKG + +make build +make install +if [ "${TEST:-no}" = "yes" ]; then + make test +fi + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LOG LICENSE NOTICE LOG CHARTER.md CONTRIBUTING.md BUILDING $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/ChezScheme/ChezScheme.info b/development/ChezScheme/ChezScheme.info new file mode 100644 index 000000000000..79edded971cc --- /dev/null +++ b/development/ChezScheme/ChezScheme.info @@ -0,0 +1,16 @@ +PRGNAM="ChezScheme" +VERSION="9.4.1_e09139a" +HOMEPAGE="http://scheme.com/" +DOWNLOAD="https://github.com/cisco/ChezScheme/archive/e09139a/ChezScheme-e09139adddf9e25a5944215efb28677e60423970.tar.gz \ + https://github.com/nanopass/nanopass-framework-scheme/archive/1f7e80b/nanopass-framework-scheme-1f7e80bcff16766ef419183169bbc343db07db0c.tar.gz \ + https://github.com/madler/zlib/archive/cacf7f1/zlib-cacf7f1d4e3d44d871b605da3b647f07d718623f.tar.gz \ + https://github.com/dybvig/stex/archive/3bd2b86/stex-3bd2b86cc5ae1797d05fc5cc6f11cc43383f741d.tar.gz" +MD5SUM="7f7406ecd3eaceb829f1b9d9c69557a7 \ + 6b1fd3a73f273641981341efa0e4b64e \ + 4df8ccfbd8f637d556f56da8ad348c19 \ + 0222208d7134a53d84a297c3a5a65b87" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Arthur W. Green" +EMAIL="awg@posteo.us" diff --git a/development/ChezScheme/README b/development/ChezScheme/README new file mode 100644 index 000000000000..b9f210212718 --- /dev/null +++ b/development/ChezScheme/README @@ -0,0 +1,13 @@ +Chez Scheme is a complete implementation of the language of the +Revised^6 Report on Scheme (R6RS), with numerous extensions. +It sports a fast compiler that generates native code for x86, +x86_64,and 32-bit PowerPC architectures. +Formerly a commercial product, it was open-sourced by Cisco Systems +in April 2016. + +The unthreaded version is built by default, but enabling support for +multithreading is easy: + THREADED=yes sh ./ChezScheme.SlackBuild + +The full testing battery can also be run after the build completes: + TEST=yes sh ./ChezScheme.SlackBuild diff --git a/development/ChezScheme/slack-desc b/development/ChezScheme/slack-desc new file mode 100644 index 000000000000..5137b62a3ade --- /dev/null +++ b/development/ChezScheme/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------------------------------------------------------| +ChezScheme: ChezScheme (A scheme implementation) +ChezScheme: +ChezScheme: Chez Scheme is a complete implementation of the language of the +ChezScheme: Revised^6 Report on Scheme (R6RS), with numerous extensions. It +ChezScheme: sports a fast compiler that generates native code for x86, x86_64, +ChezScheme: and 32-bit PowerPC architectures. Formerly a commercial product, +ChezScheme: it was open-sourced by Cisco Systems in April 2016. +ChezScheme: +ChezScheme: http://scheme.com/ +ChezScheme: +ChezScheme: |