sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by Ismael Luceno (c4754659044ef864cc7dc74a97ccd8c580faf1f8)
- From: Ismael Luceno <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by Ismael Luceno (c4754659044ef864cc7dc74a97ccd8c580faf1f8)
- Date: Fri, 12 Mar 2021 21:25:00 +0000
GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:
ChangeLog | 3
devel/chezscheme/BUILD | 6
devel/chezscheme/DEPENDS | 11 +
devel/chezscheme/DETAILS | 25
++
devel/chezscheme/HISTORY | 3
devel/chezscheme/PRE_BUILD | 3
devel/chezscheme/PROVIDES | 1
devel/chezscheme/patches/0001-Fix-missing-include-in-externs.h.patch | 85
++++++++++
8 files changed, 137 insertions(+)
New commits:
commit c4754659044ef864cc7dc74a97ccd8c580faf1f8
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
chezscheme: new spell, The Scheme Programming Language
diff --git a/ChangeLog b/ChangeLog
index 93ceca1..4527e0c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2021-03-12 Ismael Luceno <ismael AT sourcemage.org>
+ * devel/chezscheme: new spell, The Scheme Programming Language
+
2021-03-06 Florian Franzmann <siflfran AT hawo.stw.uni-erlangen.de>
* djm.gpg: Update for openssh 8.5p1
diff --git a/devel/chezscheme/BUILD b/devel/chezscheme/BUILD
new file mode 100755
index 0000000..7f3a342
--- /dev/null
+++ b/devel/chezscheme/BUILD
@@ -0,0 +1,6 @@
+CFLAGS="${CFLAGS//-ffast-math}" &&
+if is_depends_enabled "$SPELL" libiconv; then
+ LDFLAGS+=' -liconv'
+fi &&
+./configure --installprefix="$INSTALL_ROOT"/usr $OPTS &&
+make
diff --git a/devel/chezscheme/DEPENDS b/devel/chezscheme/DEPENDS
new file mode 100755
index 0000000..39039ae
--- /dev/null
+++ b/devel/chezscheme/DEPENDS
@@ -0,0 +1,11 @@
+case "$HOST" in
+ *-musl)
+ depends libiconv
+ ;;
+esac &&
+depends ncurses &&
+depends zlib &&
+depends util-linux && # for libuuid
+optional_depends libx11 \
+ '' --disable-x11 \
+ 'for X11 support'
diff --git a/devel/chezscheme/DETAILS b/devel/chezscheme/DETAILS
new file mode 100755
index 0000000..a45cee3
--- /dev/null
+++ b/devel/chezscheme/DETAILS
@@ -0,0 +1,25 @@
+ SPELL=chezscheme
+ VERSION=9.5.4
+ SOURCE="csv$VERSION.tar.gz"
+
SOURCE_URL[0]=https://github.com/cisco/ChezScheme/releases/download/v$VERSION/$SOURCE
+
SOURCE_HASH=sha512:bc377fc5a7355703193849a21fbcd633f35b56f1f898c747fbddedc63ac979c124d966bdd9ed32366bb466881abdf44e03085af16e9795b10975a72c0d0b6123
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/${SOURCE%.tar.gz}"
+ WEB_SITE="https://www.scheme.com/"
+ LICENSE[0]="Apache-2.0"
+ ENTERED=20200527
+ KEYWORDS=""
+ SHORT="The Scheme Programming Language"
+cat << EOF
+Chez Scheme is both a programming language and an implementation of that
+language, with supporting tools and documentation.
+
+As a superset of the language described in the Revised6 Report on the
+Algorithmic Language Scheme (R6RS), Chez Scheme supports all standard
features
+of Scheme, including first-class procedures, proper treatment of tail calls,
+continuations, user-defined records, libraries, exceptions, and hygienic
+macro expansion.
+
+Chez Scheme also includes extensive support for interfacing with C and other
+languages, support for multiple threads possibly running on multiple cores,
+non-blocking I/O, and many other features.
+EOF
diff --git a/devel/chezscheme/HISTORY b/devel/chezscheme/HISTORY
new file mode 100644
index 0000000..e76321f
--- /dev/null
+++ b/devel/chezscheme/HISTORY
@@ -0,0 +1,3 @@
+2021-03-12 Ismael Luceno <ismael AT sourcemage.org>
+ * BUILD, DEPENDS, DETAILS, PRE_BUILD, PROVIDES,
+ patches/0001-Fix-missing-include-in-externs.h.patch: spell created
diff --git a/devel/chezscheme/PRE_BUILD b/devel/chezscheme/PRE_BUILD
new file mode 100755
index 0000000..c230ad1
--- /dev/null
+++ b/devel/chezscheme/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+apply_patch_dir patches
diff --git a/devel/chezscheme/PROVIDES b/devel/chezscheme/PROVIDES
new file mode 100755
index 0000000..7468e0d
--- /dev/null
+++ b/devel/chezscheme/PROVIDES
@@ -0,0 +1 @@
+LISP
diff --git
a/devel/chezscheme/patches/0001-Fix-missing-include-in-externs.h.patch
b/devel/chezscheme/patches/0001-Fix-missing-include-in-externs.h.patch
new file mode 100644
index 0000000..2e63150
--- /dev/null
+++ b/devel/chezscheme/patches/0001-Fix-missing-include-in-externs.h.patch
@@ -0,0 +1,85 @@
+From c53dc961196b0568b5af0736d52d854daf27335d Mon Sep 17 00:00:00 2001
+From: Ismael Luceno <ismael AT iodev.co.uk>
+Date: Wed, 3 Mar 2021 20:01:33 +0100
+Subject: [PATCH] Fix missing include in externs.h
+
+The time.h header file is required to make the timespec struct available
+for the prototypes.
+
+Also remove the duplication in files including the system.h header file.
+
+Upstream-Status: Accepted
+Fixes: https://github.com/cisco/ChezScheme/issues/281
+Signed-off-by: Ismael Luceno <ismael AT iodev.co.uk>
+---
+ c/expeditor.c | 1 -
+ c/externs.h | 1 +
+ c/prim5.c | 1 -
+ c/scheme.c | 1 -
+ c/stats.c | 2 --
+ 5 files changed, 1 insertions(+), 5 deletions(-)
+
+diff --git a/c/expeditor.c b/c/expeditor.c
+index dfd0b81df23d..c148e96bf62d 100644
+--- a/c/expeditor.c
++++ b/c/expeditor.c
+@@ -547,7 +547,6 @@ static void s_ee_write_char(wchar_t c) {
+ #endif /* SOLARIS */
+ #include <termios.h>
+ #include <signal.h>
+-#include <time.h>
+ #include <fcntl.h>
+ #include <sys/ioctl.h>
+ #include <wchar.h>
+diff --git a/c/externs.h b/c/externs.h
+index c660f5306207..cab30fe00828 100644
+--- a/c/externs.h
++++ b/c/externs.h
+@@ -23,6 +23,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <errno.h>
++#include <time.h>
+
+ #ifndef WIN32
+ #include <unistd.h>
+diff --git a/c/prim5.c b/c/prim5.c
+index 3abde4638b0d..fd4a63bee202 100644
+--- a/c/prim5.c
++++ b/c/prim5.c
+@@ -21,7 +21,6 @@
+ #include <sys/stat.h>
+ #include <limits.h>
+ #include <ctype.h>
+-#include <time.h>
+
+ /* locally defined functions */
+ static INT s_errno PROTO((void));
+diff --git a/c/scheme.c b/c/scheme.c
+index d6a5afba890d..2f56352d9bfa 100644
+--- a/c/scheme.c
++++ b/c/scheme.c
+@@ -20,7 +20,6 @@
+ #include <limits.h>
+ #ifdef WIN32
+ #include <io.h>
+-#include <time.h>
+ #else
+ #include <sys/time.h>
+ #endif
+diff --git a/c/stats.c b/c/stats.c
+index e254546e73b1..7157974f3838 100644
+--- a/c/stats.c
++++ b/c/stats.c
+@@ -34,8 +34,6 @@
+ #include <sys/resource.h>
+ #endif
+
+-#include <time.h>
+-
+ static struct timespec starting_mono_tp;
+
+ static long adjust_time_zone(ptr dtvec, struct tm *tmxp, ptr given_tzoff);
+--
+2.30.1
+
- [SM-Commit] GIT changes to master grimoire by Ismael Luceno (c4754659044ef864cc7dc74a97ccd8c580faf1f8), Ismael Luceno, 03/12/2021
Archive powered by MHonArc 2.6.24.