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
This commit is contained in:
Mahdi Mokhtari 2017-03-02 16:00:21 +00:00
parent 2f20429a18
commit 396fa82f41
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=435249
5 changed files with 31 additions and 3 deletions

View file

@ -1571,6 +1571,7 @@
SUBDIR += lua-posix SUBDIR += lua-posix
SUBDIR += lua-pty SUBDIR += lua-pty
SUBDIR += lua-sysctl SUBDIR += lua-sysctl
SUBDIR += lua51-cjson
SUBDIR += lua51-libevent SUBDIR += lua51-libevent
SUBDIR += luabind SUBDIR += luabind
SUBDIR += luafilesystem SUBDIR += luafilesystem

View file

@ -9,13 +9,13 @@ PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
DISTNAME= lua-cjson-${PORTVERSION} DISTNAME= lua-cjson-${PORTVERSION}
MAINTAINER= osa@FreeBSD.org 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} MAKE_ARGS= LUA_VERSION=${LUA_VER}
PLIST_FILES= %%LUA_MODLIBDIR%%/cjson.so PLIST_FILES= ${LUA_MODLIBDIR}/cjson.so
post-patch: post-patch:
@${REINPLACE_CMD} '16,18d; \ @${REINPLACE_CMD} '16,18d; \

View file

@ -0,0 +1,13 @@
# Created by: osa
# $FreeBSD$
COMMENT= Fast JSON parsing and encoding support for Lua 5.1
MASTERDIR= ${.CURDIR}/../lua-cjson
PKGMESSAGE= ${.CURDIR}/pkg-message
USES= lua:51
.include "${MASTERDIR}/Makefile"

View file

@ -0,0 +1,2 @@
SHA256 (lua-cjson-2.1.0.tar.gz) = 51bc69cd55931e0cba2ceae39e9efa2483f4292da3a88a1ed470eda829f6c778
SIZE (lua-cjson-2.1.0.tar.gz) = 86024

View file

@ -0,0 +1,12 @@
Lua CJSON provides fast JSON parsing and encoding support for Lua. It
has been tested under Linux, FreeBSD, OSX, Solaris and Windows.
Features:
- Fast, standards compliant encoding/parsing routines.
- Full support for JSON with UTF-8, including decoding surrogate pairs.
- Optional run-time support for common exceptions to the JSON specification
(NaN, Infinity,..).
- No external dependencies.
WWW: http://www.kyne.com.au/~mark/software/lua-cjson.php