pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Import Fennel language 1.1.0 as wip/fennel



Module Name:	pkgsrc-wip
Committed By:	Charlotte Koch <dressupgeekout%gmail.com@localhost>
Pushed By:	cfkoch
Date:		Thu May 5 22:16:40 2022 -0700
Changeset:	6765ea3114adf40d02e6d6e9cb6bdfa7aca2040c

Modified Files:
	Makefile
Added Files:
	fennel/DESCR
	fennel/Makefile
	fennel/PLIST
	fennel/distinfo
	fennel/patches/patch-Makefile

Log Message:
Import Fennel language 1.1.0 as wip/fennel

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6765ea3114adf40d02e6d6e9cb6bdfa7aca2040c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                      |  1 +
 fennel/DESCR                  |  2 ++
 fennel/Makefile               | 34 ++++++++++++++++++++++++++++++++++
 fennel/PLIST                  |  4 ++++
 fennel/distinfo               |  7 +++++++
 fennel/patches/patch-Makefile | 14 ++++++++++++++
 6 files changed, 62 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index c17fb8f81e..00ae3fe8f7 100644
--- a/Makefile
+++ b/Makefile
@@ -855,6 +855,7 @@ SUBDIR+=	fceux
 SUBDIR+=	fdm_materials
 SUBDIR+=	feathercoin
 SUBDIR+=	felt
+SUBDIR+=	fennel
 SUBDIR+=	festvox-awb
 SUBDIR+=	festvox-bdl
 SUBDIR+=	festvox-clb
diff --git a/fennel/DESCR b/fennel/DESCR
new file mode 100644
index 0000000000..50e839c346
--- /dev/null
+++ b/fennel/DESCR
@@ -0,0 +1,2 @@
+Fennel is a lisp that compiles to Lua. It aims to be easy to use,
+expressive, and has almost zero overhead compared to writing Lua directly.
diff --git a/fennel/Makefile b/fennel/Makefile
new file mode 100644
index 0000000000..f0efdee773
--- /dev/null
+++ b/fennel/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD$
+
+DISTNAME=	1.1.0
+PKGNAME=	fennel-1.1.0
+CATEGORIES=	lang
+MASTER_SITES=	https://git.sr.ht/~technomancy/fennel/archive/
+
+MAINTAINER=	dressupgeekout%gmail.com@localhost
+HOMEPAGE=	https://git.sr.ht/~technomancy/fennel/
+COMMENT=	The Fennel programming language
+LICENSE=	mit
+
+USE_LANGUAGES=	c
+USE_TOOLS+=	gmake
+NO_CONFIGURE=	yes
+
+WRKSRC=		${WRKDIR}/${PKGNAME}
+
+BUILD_TARGET=	build
+
+# We can't use lang/lua/application.mk's 'REPLACE_LUA' facility because that
+# is evaluated at configure-time -- which won't work because the shebang
+# statement we're trying to fix is written to our script afterwards, at
+# *build* time.
+#
+# Therefore, use this modification we've made to the Makefile, where we pass
+# in the LUA_INTERPRETER directly.
+MAKE_FLAGS+=	LUA_INTERPRETER=${LUA_INTERPRETER}
+
+INSTALL_MAKE_FLAGS+=	PREFIX=${PREFIX}
+INSTALL_MAKE_FLAGS+=	MAN_DIR=${PREFIX}/${PKGMANDIR}/man1
+
+.include "../../lang/lua/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/fennel/PLIST b/fennel/PLIST
new file mode 100644
index 0000000000..3b6083ae89
--- /dev/null
+++ b/fennel/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+bin/fennel
+man/man1/fennel.1
+share/lua/5.3/fennel.lua
diff --git a/fennel/distinfo b/fennel/distinfo
new file mode 100644
index 0000000000..5ceb4aa7db
--- /dev/null
+++ b/fennel/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (1.1.0.tar.gz) = 94862aec85938116ee2962642a4703ac8e63d003
+RMD160 (1.1.0.tar.gz) = 561b041344fc1619f7fdbdb4895cde85bae03972
+SHA512 (1.1.0.tar.gz) = 86e92e399118a3aff8d49098b1a914bca6fdcd898aabcdfda38803a2e69a1d179bd972edece500ce2d912a895d15b8aaf1b05c8840e0062cf6d4043b862457b3
+Size (1.1.0.tar.gz) = 261279 bytes
+SHA1 (patch-Makefile) = 518e8f243430879627caf93fa4372820ebbdd62e
diff --git a/fennel/patches/patch-Makefile b/fennel/patches/patch-Makefile
new file mode 100644
index 0000000000..55c9532c3c
--- /dev/null
+++ b/fennel/patches/patch-Makefile
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Let pkgsrc add the shebang to the fennel launcher script
+--- Makefile.orig	2022-05-05 21:57:31.282820992 -0700
++++ Makefile	2022-05-05 21:57:36.826751085 -0700
+@@ -41,7 +41,7 @@
+ 
+ # All-in-one pure-lua script:
+ fennel: src/launcher.fnl $(SRC)
+-	echo "#!/usr/bin/env $(LUA)" > $@
++	echo "#!$(LUA_INTERPRETER)" > $@
+ 	$(LAUNCHER) --no-metadata --require-as-include --compile $< >> $@
+ 	chmod 755 $@
+ 


Home | Main Index | Thread Index | Old Index