development/Fennel: Updated for version 0.3.1.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
abooksigun 2019-12-19 22:43:03 +07:00 committed by Willy Sudiarto Raharjo
parent d7828e770f
commit 2e9b146a3f
No known key found for this signature in database
GPG key ID: 887B8374D7333381
3 changed files with 14 additions and 7 deletions

View file

@ -22,7 +22,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=Fennel PRGNAM=Fennel
VERSION=${VERSION:-0.3.0} VERSION=${VERSION:-0.3.1}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} 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 install -D -m 0644 fennelview.fnl.lua $PKG/usr/share/lua/5.2/fennelview.lua
fi fi
# lua 5.3 support # lua 5.3 support.
if $(lua5.3 -v &> /dev/null); then if $(lua5.3 -v &> /dev/null); then
sed -i '1s|lua.*|lua5.3|' fennel 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 install -D -m 0644 fennelview.fnl.lua $PKG/usr/share/lua/5.3/fennelview.lua
fi 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 \ 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 | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

View file

@ -1,8 +1,8 @@
PRGNAM="Fennel" PRGNAM="Fennel"
VERSION="0.3.0" VERSION="0.3.1"
HOMEPAGE="https://fennel-lang.org/" HOMEPAGE="https://fennel-lang.org/"
DOWNLOAD="https://github.com/bakpakin/Fennel/archive/0.3.0/Fennel-0.3.0.tar.gz" DOWNLOAD="https://github.com/bakpakin/Fennel/archive/0.3.1/Fennel-0.3.1.tar.gz"
MD5SUM="8ee993514eb355332f01b1a67d1c19b4" MD5SUM="a172545296f427df8908804087898b34"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="lua" REQUIRES="lua"

View file

@ -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. Anywhere you can run Lua code, you can run Fennel code.
Optional Dependency: Optional Dependency:
* lua52, lua53 * lua52, lua53, luajit
Default support for all versions of Lua installed before build. 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. equivalent versions of Lua installed.
* lua-readline * lua-readline