wip/lua-inspect: import lua52-inspect-3.1.1

This library transforms any Lua value into a human-readable representation.
It is especially useful for debugging errors in tables.

The objective here is human understanding (i.e. for debugging),
not serialization or compactness.
This commit is contained in:
Jonathan Buschmann 2020-01-03 00:01:27 +08:00
parent 4e93c1c40b
commit 1e5ab9d21c
4 changed files with 38 additions and 0 deletions

5
lua-inspect/DESCR Normal file
View File

@ -0,0 +1,5 @@
This library transforms any Lua value into a human-readable representation.
It is especially useful for debugging errors in tables.
The objective here is human understanding (i.e. for debugging),
not serialization or compactness.

25
lua-inspect/Makefile Normal file
View File

@ -0,0 +1,25 @@
# $NetBSD$
DISTNAME= lua-inspect-3.1.1
PKGNAME= ${DISTNAME:S/lua/${LUA_PKGPREFIX}/}
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=kikito/}
GITHUB_PROJECT= inspect.lua
GITHUB_TAG= v${PKGVERSION_NOREV}
HOMEPAGE= https://github.com/kikito/inspect.lua
COMMENT= Human-readable representation of Lua tables
LICENSE= mit
NO_BUILD= yes
NO_CONFIGURE= yes
INSTALLATION_DIRS+= ${LUA_LDIR}
do-install:
${INSTALL_DATA} ${WRKSRC}/inspect.lua \
${DESTDIR}${PREFIX}/${LUA_LDIR}
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.pkg.mk"

2
lua-inspect/PLIST Normal file
View File

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

6
lua-inspect/distinfo Normal file
View File

@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.3 2015/08/10 22:13:59 jonthn Exp $
SHA1 (lua-inspect-3.1.1.tar.gz) = bf78eca8dea4f0fd0dfb68b63e3c01b82618e00a
RMD160 (lua-inspect-3.1.1.tar.gz) = 9c623b38a0b83f8b6baf771625f5a17d708c7cea
SHA512 (lua-inspect-3.1.1.tar.gz) = d9e6f605033b43ac07f6ab731b1c10f59ebd0a64bb3d6449cef39b2fc43d9ad0eb062a000f76bc9b25222a52a3b344ab3a8af7b6bfe3d92a52447faf5dfbcbbd
Size (lua-inspect-3.1.1.tar.gz) = 11221 bytes