devel: Add lua-inspect. Based on work by Jonathan Buschmann in wip.

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:
nia 2020-07-02 11:16:18 +00:00
parent fbc4ad3665
commit 1269df5857
5 changed files with 40 additions and 1 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3150 2020/07/02 10:59:24 nia Exp $
# $NetBSD: Makefile,v 1.3151 2020/07/02 11:16:18 nia Exp $
#
COMMENT= Development utilities
@ -851,6 +851,7 @@ SUBDIR+= lua-coxpcall
SUBDIR+= lua-cqueues
SUBDIR+= lua-filesystem
SUBDIR+= lua-gi
SUBDIR+= lua-inspect
SUBDIR+= lua-ljsyscall
SUBDIR+= lua-lpeg
SUBDIR+= lua-lrexlib

5
devel/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.

View file

@ -0,0 +1,25 @@
# $NetBSD: Makefile,v 1.1 2020/07/02 11:16:18 nia Exp $
DISTNAME= lua-inspect-3.1.1
PKGNAME= ${DISTNAME:S/lua/${LUA_PKGPREFIX}/}
CATEGORIES= devel lua
MASTER_SITES= ${MASTER_SITE_GITHUB:=kikito/}
GITHUB_PROJECT= inspect.lua
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= nia@NetBSD.org
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
devel/lua-inspect/PLIST Normal file
View file

@ -0,0 +1,2 @@
@comment $NetBSD: PLIST,v 1.1 2020/07/02 11:16:18 nia Exp $
${LUA_LDIR}/inspect.lua

View file

@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.1 2020/07/02 11:16:18 nia 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