summaryrefslogtreecommitdiff
path: root/development/Fennel
diff options
context:
space:
mode:
authorabooksigun <abooksigun09@gmail.com>2019-12-19 22:43:03 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-12-19 22:43:03 +0700
commit2e9b146a3f9f755c1acd323db2e71d66c441c838 (patch)
tree6b9bbcb5736f3d4200daef8ba044663a9cc5c342 /development/Fennel
parentd7828e770f240ae19a8b35da38ed1f335da5eb07 (diff)
downloadslackbuilds-2e9b146a3f9f755c1acd323db2e71d66c441c838.tar.gz
development/Fennel: Updated for version 0.3.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/Fennel')
-rw-r--r--development/Fennel/Fennel.SlackBuild11
-rw-r--r--development/Fennel/Fennel.info6
-rw-r--r--development/Fennel/README4
3 files changed, 14 insertions, 7 deletions
diff --git a/development/Fennel/Fennel.SlackBuild b/development/Fennel/Fennel.SlackBuild
index 7f3f27107b..3abb4745fa 100644
--- a/development/Fennel/Fennel.SlackBuild
+++ b/development/Fennel/Fennel.SlackBuild
@@ -22,7 +22,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=Fennel
-VERSION=${VERSION:-0.3.0}
+VERSION=${VERSION:-0.3.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -83,7 +83,7 @@ if $(lua5.2 -v &> /dev/null); then
install -D -m 0644 fennelview.fnl.lua $PKG/usr/share/lua/5.2/fennelview.lua
fi
-# lua 5.3 support
+# lua 5.3 support.
if $(lua5.3 -v &> /dev/null); then
sed -i '1s|lua.*|lua5.3|' fennel
@@ -93,6 +93,13 @@ if $(lua5.3 -v &> /dev/null); then
install -D -m 0644 fennelview.fnl.lua $PKG/usr/share/lua/5.3/fennelview.lua
fi
+# luajit support.
+if $(luajit -v &> /dev/null); then
+ sed -i '1s|lua.*|luajit|' fennel
+
+ install -D -m 0755 fennel $PKG/usr/bin/fenneljit
+fi
+
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
diff --git a/development/Fennel/Fennel.info b/development/Fennel/Fennel.info
index c6bf380f54..36b04dd77c 100644
--- a/development/Fennel/Fennel.info
+++ b/development/Fennel/Fennel.info
@@ -1,8 +1,8 @@
PRGNAM="Fennel"
-VERSION="0.3.0"
+VERSION="0.3.1"
HOMEPAGE="https://fennel-lang.org/"
-DOWNLOAD="https://github.com/bakpakin/Fennel/archive/0.3.0/Fennel-0.3.0.tar.gz"
-MD5SUM="8ee993514eb355332f01b1a67d1c19b4"
+DOWNLOAD="https://github.com/bakpakin/Fennel/archive/0.3.1/Fennel-0.3.1.tar.gz"
+MD5SUM="a172545296f427df8908804087898b34"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="lua"
diff --git a/development/Fennel/README b/development/Fennel/README
index 878ff9c791..06336bb959 100644
--- a/development/Fennel/README
+++ b/development/Fennel/README
@@ -10,9 +10,9 @@ and reach of Lua with the flexibility of a lisp syntax and macro system.
Anywhere you can run Lua code, you can run Fennel code.
Optional Dependency:
-* lua52, lua53
+* lua52, lua53, luajit
Default support for all versions of Lua installed before build.
-After installation there is "fennel5.2" and "fennel5.3" executable files for the
+After installation there is "fennel5.2", "fennel5.3" and "fenneljit" executable files for the
equivalent versions of Lua installed.
* lua-readline