Thursday, May 30, 2019

WIP: lang/lua/5.4

Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/lua/Makefile,v
retrieving revision 1.47
diff -u -p -r1.47 Makefile
--- Makefile 14 Jan 2015 20:07:45 -0000 1.47
+++ Makefile 31 May 2019 05:18:08 -0000
@@ -4,6 +4,7 @@
SUBDIR += 5.1
SUBDIR += 5.2
SUBDIR += 5.3
+ SUBDIR += 5.4

.include <bsd.port.subdir.mk>

Index: lua.port.mk
===================================================================
RCS file: /cvs/ports/lang/lua/lua.port.mk,v
retrieving revision 1.35
diff -u -p -r1.35 lua.port.mk
--- lua.port.mk 31 Oct 2016 18:46:09 -0000 1.35
+++ lua.port.mk 31 May 2019 05:18:08 -0000
@@ -17,6 +17,8 @@ FLAVOR ?= # empty
MODLUA_VERSION = 5.2
.elif ${FLAVOR:Mlua53}
MODLUA_VERSION = 5.3
+.elif ${FLAVOR:Mlua54}
+MODLUA_VERSION = 5.4
.else
MODLUA_VERSION ?= ${MODLUA_DEFAULT_VERSION}
.endif
@@ -30,6 +32,9 @@ MODLUA_FLAVOR = lua52
.elif "${MODLUA_VERSION}" == "5.3"
_MODLUA_PKG_PREFIX = lua53
MODLUA_FLAVOR = lua53
+.elif "${MODLUA_VERSION}" == "5.4"
+_MODLUA_PKG_PREFIX = lua54
+MODLUA_FLAVOR = lua54
.else
ERRORS += "Invalid MODLUA_VERSION set: ${MODLUA_VERSION}."
.endif
Hi ports --

An alpha-rc1 version of lua-5.4 was announced yesterday:
http://lua-users.org/lists/lua-l/2019-05/msg00348.html
Enclosed is a WIP port plus scaffolding. One unfortunate caveat is that
you have to comment out MASTER_SITES from lang/lua/Makefile.inc in order
to fetch the tarball since it's being hosted in a different place at the
moment.

This port is mostly just `cp -R 5.3 5.4' with rote changes. Note that
one of the patches for 5.3 goes away in 5.4 because there is a new
random subsystem.

Obviously not for OK just yet but I figure others might want to look at
this early too.

Only run on amd64 right now but I'll find time to run it elsewhere in
the coming days.

~Brian

No comments:

Post a Comment