aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorWill sinatra <wpsinatra@gmail.com>2020-04-16 21:57:32 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2020-04-20 18:50:04 +0000
commitbf9260a90b85a26ff91cf914c35e64d2a1a19773 (patch)
tree366ecc6efeb959b0eba78e8a096c83cb262d927f /testing
parent4843a9f2a56f5d675dafe08c1f9c1823679e7bd4 (diff)
downloadaports-bf9260a90b85a26ff91cf914c35e64d2a1a19773.tar.bz2
aports-bf9260a90b85a26ff91cf914c35e64d2a1a19773.tar.xz
testing/chez-scheme: new aport
New aport for Cisco's Chez Scheme/Petite Chez Scheme
Diffstat (limited to 'testing')
-rw-r--r--testing/chez-scheme/APKBUILD46
-rw-r--r--testing/chez-scheme/remove-xlocale.patch11
2 files changed, 57 insertions, 0 deletions
diff --git a/testing/chez-scheme/APKBUILD b/testing/chez-scheme/APKBUILD
new file mode 100644
index 0000000000..e353f30ed0
--- /dev/null
+++ b/testing/chez-scheme/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Will Sinatra <wpsinatra@gmail.com>
+# Maintainer: Will Sinatra <wpsinatra@gmail.com>
+pkgname=chez-scheme
+pkgver=9.5.2
+pkgrel=0
+pkgdesc="Cisco R6RS Scheme Compiler"
+url="https://github.com/cisco/ChezScheme"
+arch="x86 x86_64" #armv7/aarch64 ports WIP
+license="Apache-2.0"
+makedepends="util-linux-dev ncurses-dev libx11-dev"
+subpackages="$pkgname-doc"
+source="https://github.com/cisco/ChezScheme/releases/download/v$pkgver/csv$pkgver.tar.gz
+ remove-xlocale.patch"
+builddir="$srcdir"/csv$pkgver
+options="!check" #No defined checks
+
+build() {
+ case "$CARCH" in
+ x86) _host=ti3le ;;
+ x86_64) _host=ta6le ;;
+ armv7) _host=i3nt ;; #void uses arm32le, which is flagged as nonvalid
+ aarch64) _host=ta6le ;; #compiler error
+ esac
+
+ case "$CARCH" in
+ x86) conf="--threads" ;;
+ x86_64) conf="--threads" ;;
+ armv7) ;;
+ aarch64) conf="--threads" ;;
+ esac
+
+ ./configure \
+ --installprefix=/usr \
+ --temproot=$pkgdir \
+ --installschemename="chez" \
+ --installscriptname="chez-script" \
+ --machine=$_host \
+ $conf
+}
+
+package() {
+ make install DESTDIR="$pkgdir"
+}
+
+sha512sums="a2dacb8689b49365a33518522df6e8a964f15ec22945c2949c2593612139bf56a755ad269b6c955ac8fed6d6221c6b861f1b0d41a255e2715817b0024c8b9cef csv9.5.2.tar.gz
+29386e6990a4adefcb1bbe7289a27b94dd8d225f2dbcbb1c704ca973263025083a70737a38fa2c815d12036980481b6614d3a332eb05caab2063259896e5b4af remove-xlocale.patch"
diff --git a/testing/chez-scheme/remove-xlocale.patch b/testing/chez-scheme/remove-xlocale.patch
new file mode 100644
index 0000000000..c04542b350
--- /dev/null
+++ b/testing/chez-scheme/remove-xlocale.patch
@@ -0,0 +1,11 @@
+--- src/c/expeditor.c
++++ src/c/expeditor.c
+@@ -546,8 +546,5 @@
+ #include <sys/ioctl.h>
+ #include <wchar.h>
+ #include <locale.h>
+-#ifndef __GLIBC__
+-#include <xlocale.h>
+-#endif
+
+ #if defined(TIOCGWINSZ) && defined(SIGWINCH) && defined(EINTR)