wip/lua-luassert: import lua52-luassert-1.7.11

luassert extends Lua's built-in assertions to provide additional tests
and the ability to create your own.
You can modify chains of assertions with not.
This commit is contained in:
Jonathan Buschmann 2020-01-04 00:01:06 +08:00
parent 1072a2888f
commit feae6cbc3b
4 changed files with 70 additions and 0 deletions

3
lua-luassert/DESCR Normal file
View File

@ -0,0 +1,3 @@
luassert extends Lua's built-in assertions to provide additional tests
and the ability to create your own.
You can modify chains of assertions with not.

33
lua-luassert/Makefile Normal file
View File

@ -0,0 +1,33 @@
# $NetBSD$
DISTNAME= lua-luassert-1.7.11
PKGNAME= ${DISTNAME:S/lua/${LUA_PKGPREFIX}/}
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=Olivine-Labs/}
GITHUB_PROJECT= luassert
GITHUB_TAG= v${PKGVERSION_NOREV}
HOMEPAGE= https://github.com/Olivine-Labs/luassert
COMMENT= Lua Assertions Extension library
LICENSE= mit
NO_BUILD= yes
INSTALLATION_DIRS+= ${LUA_LDIR}
INSTALLATION_DIRS+= ${LUA_LDIR}/luassert
INSTALLATION_DIRS+= ${LUA_LDIR}/luassert/matchers
INSTALLATION_DIRS+= ${LUA_LDIR}/luassert/formatters
INSTALLATION_DIRS+= ${LUA_LDIR}/luassert/languages
do-install:
${INSTALL_DATA} ${WRKSRC}/src/*.lua \
${DESTDIR}${PREFIX}/${LUA_LDIR}/luassert/
${INSTALL_DATA} ${WRKSRC}/src/matchers/*.lua \
${DESTDIR}${PREFIX}/${LUA_LDIR}/luassert/matchers/
${INSTALL_DATA} ${WRKSRC}/src/formatters/*.lua \
${DESTDIR}${PREFIX}/${LUA_LDIR}/luassert/formatters/
${INSTALL_DATA} ${WRKSRC}/src/languages/*.lua \
${DESTDIR}${PREFIX}/${LUA_LDIR}/luassert/languages/
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.pkg.mk"

28
lua-luassert/PLIST Normal file
View File

@ -0,0 +1,28 @@
@comment $NetBSD$
${LUA_LDIR}/luassert/array.lua
${LUA_LDIR}/luassert/assert.lua
${LUA_LDIR}/luassert/assertions.lua
${LUA_LDIR}/luassert/compatibility.lua
${LUA_LDIR}/luassert/formatters/binarystring.lua
${LUA_LDIR}/luassert/formatters/init.lua
${LUA_LDIR}/luassert/init.lua
${LUA_LDIR}/luassert/languages/ar.lua
${LUA_LDIR}/luassert/languages/de.lua
${LUA_LDIR}/luassert/languages/en.lua
${LUA_LDIR}/luassert/languages/fr.lua
${LUA_LDIR}/luassert/languages/ja.lua
${LUA_LDIR}/luassert/languages/nl.lua
${LUA_LDIR}/luassert/languages/ru.lua
${LUA_LDIR}/luassert/languages/ua.lua
${LUA_LDIR}/luassert/languages/zh.lua
${LUA_LDIR}/luassert/match.lua
${LUA_LDIR}/luassert/matchers/composite.lua
${LUA_LDIR}/luassert/matchers/core.lua
${LUA_LDIR}/luassert/matchers/init.lua
${LUA_LDIR}/luassert/mock.lua
${LUA_LDIR}/luassert/modifiers.lua
${LUA_LDIR}/luassert/namespaces.lua
${LUA_LDIR}/luassert/spy.lua
${LUA_LDIR}/luassert/state.lua
${LUA_LDIR}/luassert/stub.lua
${LUA_LDIR}/luassert/util.lua

6
lua-luassert/distinfo Normal file
View File

@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.3 2015/08/10 22:13:59 jonthn Exp $
SHA1 (lua-luassert-1.7.11.tar.gz) = b053d570286e01e1ddce8229c92f226c0d44f5cf
RMD160 (lua-luassert-1.7.11.tar.gz) = 7e621578eb7584f141297efb54872c325b1e1d38
SHA512 (lua-luassert-1.7.11.tar.gz) = 8c8e6a23f875e47babafcc3c70f256fc524f2bdc31d2f7fd73187ebb9a10c6ae445fc56c2cfd44f75145ac1344b6f6593667a50e1fa62385c691de5875805140
Size (lua-luassert-1.7.11.tar.gz) = 38556 bytes