mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
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:
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
|
@ -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
|
||||||
|
|
|
@ -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; \
|
||||||
|
|
13
devel/lua51-cjson/Makefile
Normal file
13
devel/lua51-cjson/Makefile
Normal 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"
|
2
devel/lua51-cjson/distinfo
Normal file
2
devel/lua51-cjson/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
SHA256 (lua-cjson-2.1.0.tar.gz) = 51bc69cd55931e0cba2ceae39e9efa2483f4292da3a88a1ed470eda829f6c778
|
||||||
|
SIZE (lua-cjson-2.1.0.tar.gz) = 86024
|
12
devel/lua51-cjson/pkg-descr
Normal file
12
devel/lua51-cjson/pkg-descr
Normal 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
|
Loading…
Add table
Reference in a new issue