Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Mar 2017 16:00:21 +0000 (UTC)
From:      Mahdi Mokhtari <mmokhi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r435249 - in head/devel: . lua-cjson lua51-cjson
Message-ID:  <201703021600.v22G0LTT060688@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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@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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703021600.v22G0LTT060688>