aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrc-05 <rc_o5@protonmail.com>2023-09-11 14:26:47 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-09-11 14:26:47 +0700
commit2e322b58c3dd9ad6b1d41e4192223eb248a6d74c (patch)
treef375beeb5434129dd45d313a7e8f44c8b41dd01d
parent968fe95b2c7072b74221b42539112cae3dda8302 (diff)
development/tinyscheme: Fix script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--development/tinyscheme/README14
-rw-r--r--development/tinyscheme/slack-desc3
-rw-r--r--development/tinyscheme/tinyscheme.SlackBuild9
3 files changed, 13 insertions, 13 deletions
diff --git a/development/tinyscheme/README b/development/tinyscheme/README
index 2ecfab02056d..28d8c867d573 100644
--- a/development/tinyscheme/README
+++ b/development/tinyscheme/README
@@ -1,11 +1,11 @@
TinyScheme is a lightweight Scheme interpreter that implements as large
-a subset of R5RS as was possible without getting very large and complicated.
-It is meant to be used as an embedded scripting interpreter for other programs.
-As such, it does not offer IDEs or extensive toolkits although it does
-sport a small top-level loop, included conditionally.
+subset of R5RS as was possible without getting very large and complicated.
+It's meant to be used as an embedded scripting interpreter for
+other programs. As such, it does not offer IDEs or extensive toolkits
+although it does sport a small top-level loop, included conditionally.
A lot of functionality in TinyScheme is included conditionally,
to allow developers freedom in balancing features and footprint.
-The compiled binary is installed as "tinyscheme" instead of "scheme" in order
-to avoid possible conflicts with other Scheme implementations that might be
-installed in the user's system.
+The compiled binary is installed as "tinyscheme" instead of "scheme" in
+order to avoid possible conflicts with other Scheme implementations that
+might be installed in the user's system.
diff --git a/development/tinyscheme/slack-desc b/development/tinyscheme/slack-desc
index fd0dbeb71adb..2c5964129bff 100644
--- a/development/tinyscheme/slack-desc
+++ b/development/tinyscheme/slack-desc
@@ -5,7 +5,7 @@
# 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---------------------------------------------------|
+ |-----handy-ruler------------------------------------------------------|
tinyscheme: tinyscheme (Scheme R5RS implementation)
tinyscheme:
tinyscheme: TinyScheme is a lightweight Scheme interpreter that implements as
@@ -17,4 +17,3 @@ tinyscheme: Homepage: https://tinyscheme.sourceforge.net/
tinyscheme:
tinyscheme:
tinyscheme:
-
diff --git a/development/tinyscheme/tinyscheme.SlackBuild b/development/tinyscheme/tinyscheme.SlackBuild
index be5a1870057f..fac508e66c42 100644
--- a/development/tinyscheme/tinyscheme.SlackBuild
+++ b/development/tinyscheme/tinyscheme.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0); CWD=$(pwd)
PRGNAM=tinyscheme
VERSION=${VERSION:-1.42}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -43,7 +43,6 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
exit 0
fi
-CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -80,10 +79,11 @@ find -L . \
patch < $CWD/scheme.c.patch
CC=${CC:-gcc}
+SLKCFLAGS+=' -DUSE_INTERFACE=1'
make CC="${CC} ${SLKCFLAGS}"
(
-mkdir -p $PKG/usr/bin $PKG/usr/lib$LIBDIRSUFFIX $PKG/usr/share/tinyscheme
+mkdir -p $PKG/usr/bin $PKG/usr/lib$LIBDIRSUFFIX $PKG/usr/share/tinyscheme $PKG/usr/include/tinyscheme
# Rename the binary to tinyscheme to avoid conflicts with (eventual) other
# possible Scheme implemenations installed in the system.
@@ -91,6 +91,7 @@ cp scheme $PKG/usr/bin/tinyscheme
cp libtinyscheme.so $PKG/usr/lib$LIBDIRSUFFIX
cp init.scm $PKG/usr/share/tinyscheme
+cp -t $PKG/usr/include/tinyscheme scheme.h scheme-private.h opdefines.h
)
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
@@ -106,4 +107,4 @@ 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}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE