aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar kei-k@ca2.so-net.ne.jp <kei-k@ca2.so-net.ne.jp>2015-11-04 22:40:27 +0900
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-11-04 15:40:29 +0100
commit1072b38788b03f39bb5f302a5b71837f25af2d9f (patch)
tree6912d8cc5a1fcf4ce401f5c9a215f70d6c88422d
parent934dd60eb5c5e1802f6ba335a2fbde423a847278 (diff)
downloadbuildroot-1072b38788b03f39bb5f302a5b71837f25af2d9f.tar.gz
buildroot-1072b38788b03f39bb5f302a5b71837f25af2d9f.tar.bz2
gauche: new package
Gauche is an R7RS Scheme implementation developed to be a handy script interpreter, which allows programmers and systemadministrators to write small to large scripts for their daily chores. Quick startup, built-in system interface, native multilingual support are some of its goals. Signed-off-by: Hiroshi Kawashima <kei-k@ca2.so-net.ne.jp> Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Tested-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/Config.in1
-rw-r--r--package/gauche/0001-fix-so-suffix.patch31
-rw-r--r--package/gauche/Config.in19
-rw-r--r--package/gauche/gauche.hash2
-rw-r--r--package/gauche/gauche.mk23
5 files changed, 76 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index f0ddf0c9f1..f4affa870a 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -459,6 +459,7 @@ menu "Erlang libraries/modules"
source "package/erlang-p1-zlib/Config.in"
endmenu
endif
+ source "package/gauche/Config.in"
source "package/guile/Config.in"
source "package/haserl/Config.in"
source "package/jamvm/Config.in"
diff --git a/package/gauche/0001-fix-so-suffix.patch b/package/gauche/0001-fix-so-suffix.patch
new file mode 100644
index 0000000000..b65e269981
--- /dev/null
+++ b/package/gauche/0001-fix-so-suffix.patch
@@ -0,0 +1,31 @@
+With uclibc or musl configuration, $host does not match to '*-linux-gnu*'.
+I touch configure directly instead of configure.ac because autoreconf
+failed by version mismatch of autotools.
+
+Signed-off-by: Hiroshi Kawashima <kei-k@ca2.so-net.ne.jp>
+
+diff -ur a/configure b/configure
+--- a/configure 2014-07-20 15:15:05.000000000 +0900
++++ b/configure 2015-10-20 21:52:32.791442291 +0900
+@@ -6843,7 +6843,7 @@
+ SHLIB_MAIN_LDFLAGS=""
+ SHLIB_OK=ok
+ ;;
+- *-linux-gnu*|*-*-gnu*|*freebsd*|*dragonfly*)
++ *-linux-*|*-*-gnu*|*freebsd*|*dragonfly*)
+ SHLIB_SO_CFLAGS="-fPIC"
+ SHLIB_SO_LDFLAGS="$rpath -shared -o"
+ SHLIB_SO_SUFFIX="so"
+
+diff -ur a/configure.ac b/configure.ac
+--- a/configure.ac 2015-10-21 21:33:17.370000200 +0900
++++ b/configure.ac 2015-10-21 21:33:39.784110527 +0900
+@@ -572,7 +572,7 @@
+ SHLIB_MAIN_LDFLAGS=""
+ SHLIB_OK=ok
+ ;;
+- *-linux-gnu*|*-*-gnu*|*freebsd*|*dragonfly*)
++ *-linux-*|*-*-gnu*|*freebsd*|*dragonfly*)
+ SHLIB_SO_CFLAGS="-fPIC"
+ SHLIB_SO_LDFLAGS="$rpath -shared -o"
+ SHLIB_SO_SUFFIX="so"
diff --git a/package/gauche/Config.in b/package/gauche/Config.in
new file mode 100644
index 0000000000..072067224f
--- /dev/null
+++ b/package/gauche/Config.in
@@ -0,0 +1,19 @@
+config BR2_PACKAGE_GAUCHE
+ bool "gauche"
+ depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
+ depends on BR2_USE_MMU # fork()
+ depends on BR2_ARCH_HAS_ATOMICS
+ help
+ Gauche is an R7RS Scheme implementation developed to be a
+ handy script interpreter, which allows programmers and
+ system administrators to write small to large scripts for
+ their daily chores. Quick startup, built-in system
+ interface, native multilingual support are some of its
+ goals.
+
+ http://practical-scheme.net/gauche/
+
+comment "gauche needs a toolchain w/ NPTL"
+ depends on BR2_USE_MMU
+ depends on BR2_ARCH_HAS_ATOMICS
+ depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
diff --git a/package/gauche/gauche.hash b/package/gauche/gauche.hash
new file mode 100644
index 0000000000..9ec106a97d
--- /dev/null
+++ b/package/gauche/gauche.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 7b18bcd70beaced1e004594be46c8cff95795318f6f5830dd2a8a700410fc149 Gauche-0.9.4.tgz
diff --git a/package/gauche/gauche.mk b/package/gauche/gauche.mk
new file mode 100644
index 0000000000..c0563b2930
--- /dev/null
+++ b/package/gauche/gauche.mk
@@ -0,0 +1,23 @@
+################################################################################
+#
+# gauche
+#
+################################################################################
+
+GAUCHE_VERSION = 0.9.4
+GAUCHE_SOURCE = Gauche-$(GAUCHE_VERSION).tgz
+GAUCHE_SITE = http://downloads.sourceforge.net/project/gauche/Gauche
+GAUCHE_LICENSE = BSD-3c, Boehm-gc, SRFI (srfi-11.scm), reload (reload.scm)
+GAUCHE_LICENSE_FILES = COPYING
+GAUCHE_DEPENDENCIES = host-gauche
+
+# Detection of c99 support in configure fails without WCHAR. To enable
+# automatic detection of c99 support by configure, we need to enable
+# WCHAR in toolchain. But actually we do not need WCHAR at gauche
+# runtime. So reuesting WCHAR in toolchain just for automatic detection
+# will be overkill. To solve this, explicitly -std=gnu99 is specified
+# here.
+GAUCHE_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
+
+$(eval $(host-autotools-package))
+$(eval $(autotools-package))