A new port of Lua 5.3 is attached. A diff to update the relevant
Makefiles and lua.port.mk is also attached. It's my first time messing
with a port.mk file so let me know if I screwed any thing up.

Tested on amd64.

-- 
James Turner

Index: Makefile
===================================================================
RCS file: /cvs/ports/lang/lua/Makefile,v
retrieving revision 1.46
diff -u -p -u -p -r1.46 Makefile
--- Makefile    10 Jul 2012 15:09:25 -0000      1.46
+++ Makefile    12 Jan 2015 19:20:52 -0000
@@ -3,6 +3,7 @@
     SUBDIR =
     SUBDIR += 5.1
     SUBDIR += 5.2
+    SUBDIR += 5.3
 
 .include <bsd.port.subdir.mk>
 
Index: lua.port.mk
===================================================================
RCS file: /cvs/ports/lang/lua/lua.port.mk,v
retrieving revision 1.28
diff -u -p -u -p -r1.28 lua.port.mk
--- lua.port.mk 2 Jun 2013 16:59:48 -0000       1.28
+++ lua.port.mk 12 Jan 2015 19:20:52 -0000
@@ -13,9 +13,9 @@ MODLUA_DEFAULT_VERSION=       5.1
 # If a port already has flavors, append our lua flavors to it, unless it 
requests a specific
 # version of lua. Otherwise set the FLAVORS list to just the lua flavors.
 .if !defined(MODLUA_VERSION) && !defined(FLAVORS)
-FLAVORS?=              lua52
+FLAVORS?=              lua52 lua53
 .else
-FLAVORS+=              lua52
+FLAVORS+=              lua52 lua53
 .endif
 
 FLAVOR?=               # empty
@@ -23,6 +23,8 @@ FLAVOR?=              # empty
 # without a flavor, assume ${MODLUA_DEFAULT_VERSION}
 .if ${FLAVOR:Mlua52}
 MODLUA_VERSION=                5.2
+.elif ${FLAVOR:Mlua53}
+MODLUA_VERSION=                5.3
 .else
 MODLUA_VERSION?=       ${MODLUA_DEFAULT_VERSION}
 .endif
@@ -33,6 +35,9 @@ MODLUA_FLAVOR=                # empty
 .elif "${MODLUA_VERSION}" == "5.2"
 _MODLUA_PKG_PREFIX=    lua52
 MODLUA_FLAVOR=         lua52
+.elif "${MODLUA_VERSION}" == "5.3"
+_MODLUA_PKG_PREFIX=    lua53
+MODLUA_FLAVOR=         lua53
 .else
 ERRORS+=               "Invalid MODLUA_VERSION set: ${MODLUA_VERSION}."
 .endif
@@ -62,6 +67,8 @@ MODLUA_LIB=           -l${MODLUA_WANTLIB}
 _MODLUA_RUN_DEPENDS=   lang/lua/5.1
 .elif "${MODLUA_VERSION}" == "5.2"
 _MODLUA_RUN_DEPENDS=   lang/lua/5.2
+.elif "${MODLUA_VERSION}" == "5.3"
+_MODLUA_RUN_DEPENDS=   lang/lua/5.3
 .endif
 
 MODLUA_LIB_DEPENDS=    ${_MODLUA_RUN_DEPENDS}

Attachment: lua-5.3.tar.gz
Description: application/tar-gz

Reply via email to