aboutsummaryrefslogtreecommitdiff
path: root/development/chibi-scheme
diff options
context:
space:
mode:
authorErik Falor <ewfalor@gmail.com>2014-03-31 00:05:20 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-03-31 09:01:56 +0700
commit447278bc0c5d1f917b66f93fac36ca8aea02d43c (patch)
tree77f73ba9f6ebb49f364209f05ed41867f65970a8 /development/chibi-scheme
parent653c0f67b2dba651705e0a129725d9ad81f9d343 (diff)
development/chibi-scheme: Added (scheme implementation).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/chibi-scheme')
-rw-r--r--development/chibi-scheme/README16
-rw-r--r--development/chibi-scheme/chibi-scheme.SlackBuild89
-rw-r--r--development/chibi-scheme/chibi-scheme.info10
-rw-r--r--development/chibi-scheme/slack-desc19
4 files changed, 134 insertions, 0 deletions
diff --git a/development/chibi-scheme/README b/development/chibi-scheme/README
new file mode 100644
index 0000000000000..ecb75e43506bf
--- /dev/null
+++ b/development/chibi-scheme/README
@@ -0,0 +1,16 @@
+Chibi-Scheme is a very small library intended for use as an extension and
+scripting language in C programs. In addition to support for lightweight
+VM-based threads, each VM itself runs in an isolated heap allowing multiple VMs
+to run simultaneously in different OS threads.
+
+The default language is an extended subset of the current draft R7RS Scheme,
+with support for all libraries.
+
+The system is designed in optional layers, beginning with a VM based on a small
+set of opcodes, a set of primitives implemented in C, a default language, a
+module system implementation, and a set of standard modules. You can choose
+whichever layer suits your needs best and customize the rest. Adding your own
+primitives or wrappers around existing C libraries is easy with the C FFI.
+
+Chibi is known to build and run on 32 and 64-bit Linux, FreeBSD, DragonFly, OS
+X, iOS, Windows (under Cygwin) and Plan9.
diff --git a/development/chibi-scheme/chibi-scheme.SlackBuild b/development/chibi-scheme/chibi-scheme.SlackBuild
new file mode 100644
index 0000000000000..26d1ad463408b
--- /dev/null
+++ b/development/chibi-scheme/chibi-scheme.SlackBuild
@@ -0,0 +1,89 @@
+#!/bin/sh
+
+# Slackware build script for chibi-scheme
+
+# Copyright 2014 Erik Falor, Utah, USA
+# 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='chibi-scheme'
+VERSION=${VERSION:-0.6.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=""
+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
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tgz
+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 {} \;
+
+make CFLAGS="$SLKCFLAGS" PREFIX="/usr" LIBDIR="/usr/lib${LIBDIRSUFFIX}" SOLIBDIR="/usr/lib${LIBDIRSUFFIX}" BINMODDIR="/usr/lib${LIBDIRSUFFIX}" MODDIR="/usr/lib${LIBDIRSUFFIX}"
+make install DESTDIR=$PKG PREFIX="/usr" MANDIR="/usr/man/man1" LIBDIR="/usr/lib${LIBDIRSUFFIX}" SOLIBDIR="/usr/lib${LIBDIRSUFFIX}" BINMODDIR="/usr/lib${LIBDIRSUFFIX}" MODDIR="/usr/lib${LIBDIRSUFFIX}"
+
+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
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS VERSION COPYING README README.libs RELEASE TODO $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/chibi-scheme/chibi-scheme.info b/development/chibi-scheme/chibi-scheme.info
new file mode 100644
index 0000000000000..a5093861d3ca5
--- /dev/null
+++ b/development/chibi-scheme/chibi-scheme.info
@@ -0,0 +1,10 @@
+PRGNAM="chibi-scheme"
+VERSION="0.6.1"
+HOMEPAGE="http://synthcode.com/scheme/"
+DOWNLOAD="https://chibi-scheme.googlecode.com/files/chibi-scheme-0.6.1.tgz"
+MD5SUM="02247ed0932fe3824e7c8c69c63e37c3"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Erik Falor"
+EMAIL="ewfalor@gmail.com"
diff --git a/development/chibi-scheme/slack-desc b/development/chibi-scheme/slack-desc
new file mode 100644
index 0000000000000..97f9281705404
--- /dev/null
+++ b/development/chibi-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 ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+chibi-scheme: chibi-scheme (Minimal Scheme Implementation / Extension Language)
+chibi-scheme:
+chibi-scheme: Chibi-Scheme is a very small library intended for use as an extension
+chibi-scheme: and scripting language in C programs. In addition to support for
+chibi-scheme: lightweight VM-based threads, each VM itself runs in an isolated heap
+chibi-scheme: allowing multiple VMs to run simultaneously in different OS threads.
+chibi-scheme:
+chibi-scheme: The default language is an extended subset of the current draft R7RS
+chibi-scheme: Scheme, with support for all libraries.
+chibi-scheme:
+chibi-scheme: