import fennel-1.2.1

Fennel is a programming language that brings together the speed,
simplicity, and reach of Lua with the flexibility of a lisp syntax and
macro system.

ok and tweak abieber@ (but retaining PKG_ARCH)
This commit is contained in:
op 2022-12-24 08:57:07 +00:00
parent dd560fcbcf
commit fe3b314bd4
4 changed files with 62 additions and 0 deletions

41
lang/fennel/Makefile Normal file
View File

@ -0,0 +1,41 @@
COMMENT = Lisp dialect that runs on Lua ${MODLUA_VERSION}
V = 1.2.1
PKGNAME = fennel-$V
FULLPKGNAME = fennel-${FLAVOR}-${V}
CATEGORIES = lang
HOMEPAGE = https://fennel-lang.org/
MAINTAINER = Omar Polo <op@openbsd.org>
# MIT
PERMIT_PACKAGE = Yes
MASTER_SITES = https://git.sr.ht/~technomancy/fennel/archive/
DISTFILES = fennel-{}$V${EXTRACT_SUFX}
MODULES = lang/lua
FLAVORS = lua51 lua52 lua53
FLAVOR ?= lua51
PKG_ARCH = *
USE_GMAKE = Yes
ALL_TARGET = build
MAKE_FLAGS += LUA=${MODLUA_BIN} \
LUA_VERSION=${MODLUA_VERSION} \
LUA_LIB_DIR=${MODLUA_LIBDIR}
FAKE_FLAGS += PREFIX=${TRUEPREFIX}
WRKDIST = ${WRKDIR}/${PKGNAME}
post-install:
chmod +x ${PREFIX}/bin/fennel
cd ${PREFIX}/bin && mv fennel fennel-${MODLUA_VERSION}
cd ${PREFIX}/man/man1 && mv fennel.1 fennel-${MODLUA_VERSION}.1
.include <bsd.port.mk>

2
lang/fennel/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (fennel-1.2.1.tar.gz) = ZlSq23ZZu/iNOHkZA5JXPhrjkIfqr1CE6V9F246CrVE=
SIZE (fennel-1.2.1.tar.gz) = 271590

16
lang/fennel/pkg/DESCR Normal file
View File

@ -0,0 +1,16 @@
Fennel is a programming language that brings together the speed,
simplicity, and reach of Lua with the flexibility of a lisp syntax and
macro system.
- Full Lua compatibility: Easily call any Lua function or library from
Fennel and vice-versa.
- Zero overhead: Compiled code should be just as efficient as
hand-written Lua.
- Compile-time macros: Ship compiled code with no runtime dependency on
Fennel.
- Embeddable: Fennel is a one-file library as well as an executable.
Embed it in other programs to support runtime extensibility and
interactive development.

3
lang/fennel/pkg/PLIST Normal file
View File

@ -0,0 +1,3 @@
bin/fennel-${MODLUA_VERSION}
lib/lua/${MODLUA_VERSION}/fennel.lua
@man man/man1/fennel-${MODLUA_VERSION}.1