wip/lua-dkjson: import lua52-dkjson-2.5

This is a JSON module written in Lua. It supports UTF-8.

dkjson is written in Lua without any dependencies,
but when LPeg is available dkjson uses it to speed up decoding.
This commit is contained in:
Jonathan Buschmann 2020-01-02 23:57:59 +08:00
parent 9cc61dddea
commit 68887ad7bd
4 changed files with 40 additions and 0 deletions

4
lua-dkjson/DESCR Normal file
View File

@ -0,0 +1,4 @@
This is a JSON module written in Lua. It supports UTF-8.
dkjson is written in Lua without any dependencies,
but when LPeg is available dkjson uses it to speed up decoding.

28
lua-dkjson/Makefile Normal file
View File

@ -0,0 +1,28 @@
# $NetBSD$
DISTNAME= lua-dkjson-2.5
PKGNAME= ${DISTNAME:S/lua/${LUA_PKGPREFIX}/}
CATEGORIES= devel
MASTER_SITES= -http://dkolf.de/src/dkjson-lua.fsl/raw/dkjson.lua?name=16cbc26080996d9da827df42cb0844a25518eeb3
EXTRACT_SUFX= #empty
HOMEPAGE= http://dkolf.de/src/dkjson-lua.fsl/home
COMMENT= JSON module written in Lua
LICENSE= mit
NO_BUILD= yes
NO_CONFIGURE= yes
WRKSRC= ${WRKDIR}
EXTRACT_CMD= ${CP} $$extract_file ${WRKSRC}/dkjson.lua
INSTALLATION_DIRS+= ${LUA_LDIR}
do-install:
${INSTALL_DATA} ${WRKDIR}/dkjson.lua \
${DESTDIR}${PREFIX}/${LUA_LDIR}
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.pkg.mk"

2
lua-dkjson/PLIST Normal file
View File

@ -0,0 +1,2 @@
@comment $NetBSD$
${LUA_LDIR}/dkjson.lua

6
lua-dkjson/distinfo Normal file
View File

@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.3 2015/08/10 22:13:59 jonthn Exp $
SHA1 (lua-dkjson-2.5) = 16cbc26080996d9da827df42cb0844a25518eeb3
RMD160 (lua-dkjson-2.5) = c0e0839874726d1785d946ab885b61ef55f05267
SHA512 (lua-dkjson-2.5) = 781b3ae1f3d66881a11383d86e89b517dd67ae9c1824b7ae7eb4dd2e809dae516000a460b5e077e8f8ffe2cf80c5af76a5f9712e401ddcf0d1240d00ccebf4de
Size (lua-dkjson-2.5) = 22416 bytes