diff options
author | nia <nia@pkgsrc.org> | 2021-01-27 11:52:21 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2021-01-27 11:52:21 +0000 |
commit | 267651d36f6fe6df6cc8c568d7bf4efa3d1cf166 (patch) | |
tree | 58a071831987b47be09f8bfeaca556a07b0dd5c4 /devel | |
parent | 19d7de04fc51b5ac7325e718c760e1c2b086a320 (diff) | |
download | pkgsrc-267651d36f6fe6df6cc8c568d7bf4efa3d1cf166.tar.gz |
add devel/lua-safer
Safer - Paranoid Lua programming
Taking defensive programming to the next level. Use this module to avoid
unexpected globals creeping up in your code, and stopping sub-modules from
fiddling with fields of tables as you pass them around.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 3 | ||||
-rw-r--r-- | devel/lua-safer/DESCR | 5 | ||||
-rw-r--r-- | devel/lua-safer/Makefile | 28 | ||||
-rw-r--r-- | devel/lua-safer/PLIST | 4 | ||||
-rw-r--r-- | devel/lua-safer/distinfo | 6 |
5 files changed, 45 insertions, 1 deletions
diff --git a/devel/Makefile b/devel/Makefile index 2f9a68d54c8..257b16909af 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3323 2021/01/26 11:20:42 jperkin Exp $ +# $NetBSD: Makefile,v 1.3324 2021/01/27 11:52:21 nia Exp $ # COMMENT= Development utilities @@ -919,6 +919,7 @@ SUBDIR+= lua-posix SUBDIR+= lua-repl SUBDIR+= lua-rings SUBDIR+= lua-rocks +SUBDIR+= lua-safer SUBDIR+= lua-say SUBDIR+= lua-sdl2 SUBDIR+= lua-std-_debug diff --git a/devel/lua-safer/DESCR b/devel/lua-safer/DESCR new file mode 100644 index 00000000000..102ba4e7404 --- /dev/null +++ b/devel/lua-safer/DESCR @@ -0,0 +1,5 @@ +Safer - Paranoid Lua programming + +Taking defensive programming to the next level. Use this module to avoid +unexpected globals creeping up in your code, and stopping sub-modules from +fiddling with fields of tables as you pass them around. diff --git a/devel/lua-safer/Makefile b/devel/lua-safer/Makefile new file mode 100644 index 00000000000..06a4f1c217a --- /dev/null +++ b/devel/lua-safer/Makefile @@ -0,0 +1,28 @@ +# $NetBSD: Makefile,v 1.1 2021/01/27 11:52:21 nia Exp $ + +DISTNAME= safer-0.2 +PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME} +CATEGORIES= devel lua +MASTER_SITES= ${MASTER_SITE_GITHUB:=hishamhm/} +GITHUB_PROJECT= safer +GITHUB_TAG= v${PKGVERSION_NOREV} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/hishamhm/safer +COMMENT= Paranoid Lua programming +LICENSE= mit + +USE_LANGUAGES= # none +NO_BUILD= yes + +INSTALLATION_DIRS+= ${LUA_LDIR} +INSTALLATION_DIRS+= share/doc/${PKGBASE} + +do-install: + ${INSTALL_DATA} ${WRKSRC}/safer.lua \ + ${DESTDIR}${PREFIX}/${LUA_LDIR}/safer.lua + ${INSTALL_DATA} ${WRKSRC}/README.md ${WRKSRC}/LICENSE \ + ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} + +.include "../../lang/lua/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/lua-safer/PLIST b/devel/lua-safer/PLIST new file mode 100644 index 00000000000..9be13edcad1 --- /dev/null +++ b/devel/lua-safer/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1 2021/01/27 11:52:21 nia Exp $ +${LUA_DOCDIR}/LICENSE +${LUA_DOCDIR}/README.md +${LUA_LDIR}/safer.lua diff --git a/devel/lua-safer/distinfo b/devel/lua-safer/distinfo new file mode 100644 index 00000000000..02777a8ad81 --- /dev/null +++ b/devel/lua-safer/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2021/01/27 11:52:21 nia Exp $ + +SHA1 (safer-0.2.tar.gz) = 5c5c5ac7a5f563db9c9b49fe32b5a72e923b4b9f +RMD160 (safer-0.2.tar.gz) = 32e88223c318fbd9aae18aad710b6a073e709cde +SHA512 (safer-0.2.tar.gz) = 23258f3b0d2cf40ec1753db45436c6b8f2e242a1deb501d75cf5fc515f2bd1a35adb9e43eea27de758289194a55d2ecb175f67a4936f78e2491bc4836f17d306 +Size (safer-0.2.tar.gz) = 2573 bytes |