svn commit: r435249 - in head/devel: . lua-cjson lua51-cjson
Mahdi Mokhtari
mmokhi at FreeBSD.org
Thu Mar 2 16:00:23 UTC 2017
Author: mmokhi
Date: Thu Mar 2 16:00:21 2017
New Revision: 435249
URL: https://svnweb.freebsd.org/changeset/ports/435249
Log:
devel/lua-cjson: set USES to default lua version (5.2).
Also clone a slave port as lua51-cjson.
Reviewed by: feld, mat
Approved by: feld, mat (mentors)
Differential Revision: https://reviews.freebsd.org/D9810
Added:
head/devel/lua51-cjson/
- copied from r434907, head/devel/lua-cjson/
Modified:
head/devel/Makefile
head/devel/lua-cjson/Makefile
head/devel/lua51-cjson/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Thu Mar 2 16:00:12 2017 (r435248)
+++ head/devel/Makefile Thu Mar 2 16:00:21 2017 (r435249)
@@ -1571,6 +1571,7 @@
SUBDIR += lua-posix
SUBDIR += lua-pty
SUBDIR += lua-sysctl
+ SUBDIR += lua51-cjson
SUBDIR += lua51-libevent
SUBDIR += luabind
SUBDIR += luafilesystem
Modified: head/devel/lua-cjson/Makefile
==============================================================================
--- head/devel/lua-cjson/Makefile Thu Mar 2 16:00:12 2017 (r435248)
+++ head/devel/lua-cjson/Makefile Thu Mar 2 16:00:21 2017 (r435249)
@@ -9,13 +9,13 @@ PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
DISTNAME= lua-cjson-${PORTVERSION}
MAINTAINER= osa at FreeBSD.org
-COMMENT= Fast JSON parsing and encoding support for Lua
+COMMENT?= Fast JSON parsing and encoding support for Lua
-USES= lua:51
+USES?= lua
MAKE_ARGS= LUA_VERSION=${LUA_VER}
-PLIST_FILES= %%LUA_MODLIBDIR%%/cjson.so
+PLIST_FILES= ${LUA_MODLIBDIR}/cjson.so
post-patch:
@${REINPLACE_CMD} '16,18d; \
Modified: head/devel/lua51-cjson/Makefile
==============================================================================
--- head/devel/lua-cjson/Makefile Sun Feb 26 18:30:25 2017 (r434907)
+++ head/devel/lua51-cjson/Makefile Thu Mar 2 16:00:21 2017 (r435249)
@@ -1,25 +1,13 @@
# Created by: osa
# $FreeBSD$
-PORTNAME= cjson
-PORTVERSION= 2.1.0
-CATEGORIES= devel
-MASTER_SITES= http://www.kyne.com.au/~mark/software/download/
-PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
-DISTNAME= lua-cjson-${PORTVERSION}
-MAINTAINER= osa at FreeBSD.org
-COMMENT= Fast JSON parsing and encoding support for Lua
-USES= lua:51
-
-MAKE_ARGS= LUA_VERSION=${LUA_VER}
+COMMENT= Fast JSON parsing and encoding support for Lua 5.1
-PLIST_FILES= %%LUA_MODLIBDIR%%/cjson.so
+MASTERDIR= ${.CURDIR}/../lua-cjson
+PKGMESSAGE= ${.CURDIR}/pkg-message
-post-patch:
- @${REINPLACE_CMD} '16,18d; \
- 21s|^\(LUA_INCLUDE.*\)\(PREFIX\)\(.*\)|\1LOCALBASE\3/lua${LUA_VER_STR}|' \
- ${WRKSRC}/Makefile
+USES= lua:51
-.include <bsd.port.mk>
+.include "${MASTERDIR}/Makefile"
More information about the svn-ports-all
mailing list