Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel devel: Add lua-busted, based on work by Jonathan...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b97d0b2c0e00
branches:  trunk
changeset: 435525:b97d0b2c0e00
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Jul 08 16:23:23 2020 +0000

description:
devel: Add lua-busted, based on work by Jonathan Buschmann in wip

busted is a Lua unit testing framework with a focus on being easy to use.

Ships with a large amount of useful asserts, plus the ability to write your
own. Output in pretty or plain terminal format, JSON, or TAP for CI integration.

diffstat:

 devel/Makefile            |   3 +-
 devel/lua-busted/DESCR    |   4 +++
 devel/lua-busted/Makefile |  58 +++++++++++++++++++++++++++++++++++++++++++++++
 devel/lua-busted/PLIST    |  46 +++++++++++++++++++++++++++++++++++++
 devel/lua-busted/distinfo |   6 ++++
 5 files changed, 116 insertions(+), 1 deletions(-)

diffs (147 lines):

diff -r ca71b2f720b5 -r b97d0b2c0e00 devel/Makefile
--- a/devel/Makefile    Wed Jul 08 16:16:19 2020 +0000
+++ b/devel/Makefile    Wed Jul 08 16:23:23 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3164 2020/07/08 15:46:36 nia Exp $
+# $NetBSD: Makefile,v 1.3165 2020/07/08 16:23:23 nia Exp $
 #
 
 COMMENT=       Development utilities
@@ -852,6 +852,7 @@
 SUBDIR+=       lua-basexx
 SUBDIR+=       lua-binaryheap
 SUBDIR+=       lua-bitlib
+SUBDIR+=       lua-busted
 SUBDIR+=       lua-cliargs
 SUBDIR+=       lua-compat53
 SUBDIR+=       lua-coxpcall
diff -r ca71b2f720b5 -r b97d0b2c0e00 devel/lua-busted/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-busted/DESCR    Wed Jul 08 16:23:23 2020 +0000
@@ -0,0 +1,4 @@
+busted is a Lua unit testing framework with a focus on being easy to use.
+
+Ships with a large amount of useful asserts, plus the ability to write your
+own. Output in pretty or plain terminal format, JSON, or TAP for CI integration.
diff -r ca71b2f720b5 -r b97d0b2c0e00 devel/lua-busted/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-busted/Makefile Wed Jul 08 16:23:23 2020 +0000
@@ -0,0 +1,58 @@
+# $NetBSD: Makefile,v 1.1 2020/07/08 16:23:23 nia Exp $
+
+DISTNAME=      busted-2.0.0
+PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME}
+CATEGORIES=    devel lua
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=Olivine-Labs/}
+GITHUB_PROJECT=        busted
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    nia%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/Olivine-Labs/busted
+COMMENT=       Elegant Lua unit testing
+LICENSE=       mit
+
+DEPENDS+=      ${LUA_PKGPREFIX}-cliargs-[0-9]*:../../devel/lua-cliargs
+DEPENDS+=      ${LUA_PKGPREFIX}-filesystem-[0-9]*:../../devel/lua-filesystem
+DEPENDS+=      ${LUA_PKGPREFIX}-system-[0-9]*:../../devel/lua-system
+DEPENDS+=      ${LUA_PKGPREFIX}-dkjson-[0-9]*:../../textproc/lua-dkjson
+DEPENDS+=      ${LUA_PKGPREFIX}-say-[0-9]*:../../devel/lua-say
+DEPENDS+=      ${LUA_PKGPREFIX}-luassert-[0-9]*:../../devel/lua-luassert
+DEPENDS+=      ${LUA_PKGPREFIX}-term-[0-9]*:../../devel/lua-term
+DEPENDS+=      ${LUA_PKGPREFIX}-penlight-[0-9]*:../../devel/lua-penlight
+DEPENDS+=      ${LUA_PKGPREFIX}-mediator-[0-9]*:../../devel/lua-mediator
+
+NO_BUILD=      yes
+USE_LANGUAGES= # none
+
+PLIST_SUBST+=  LUADOTVER=${_LUA_DOT_VERSION}
+
+INSTALLATION_DIRS+=    bin
+INSTALLATION_DIRS+=    ${LUA_LDIR}/busted
+INSTALLATION_DIRS+=    ${LUA_LDIR}/busted/modules
+INSTALLATION_DIRS+=    ${LUA_LDIR}/busted/modules/files
+INSTALLATION_DIRS+=    ${LUA_LDIR}/busted/outputHandlers
+INSTALLATION_DIRS+=    ${LUA_LDIR}/busted/languages
+
+SUBST_CLASSES+=                lua
+SUBST_MESSAGE.lua=     Fixing Lua interpreter path
+SUBST_STAGE.lua=       pre-configure
+SUBST_FILES.lua=       bin/busted
+SUBST_SED.lua=         -e 's,/usr/bin/env lua,${LUA_INTERPRETER},g'
+
+do-install:
+       ${INSTALL_DATA} ${WRKSRC}/busted/*.lua \
+               ${DESTDIR}${PREFIX}/${LUA_LDIR}/busted
+       ${INSTALL_DATA} ${WRKSRC}/busted/modules/*.lua \
+               ${DESTDIR}${PREFIX}/${LUA_LDIR}/busted/modules
+       ${INSTALL_DATA} ${WRKSRC}/busted/modules/files/*.lua \
+               ${DESTDIR}${PREFIX}/${LUA_LDIR}/busted/modules/files
+       ${INSTALL_DATA} ${WRKSRC}/busted/outputHandlers/*.lua \
+               ${DESTDIR}${PREFIX}/${LUA_LDIR}/busted/outputHandlers
+       ${INSTALL_DATA} ${WRKSRC}/busted/languages/*.lua \
+               ${DESTDIR}${PREFIX}/${LUA_LDIR}/busted/languages
+       ${INSTALL_PROGRAM} ${WRKSRC}/bin/busted \
+               ${DESTDIR}${PREFIX}/bin/busted${_LUA_DOT_VERSION}
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r ca71b2f720b5 -r b97d0b2c0e00 devel/lua-busted/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-busted/PLIST    Wed Jul 08 16:23:23 2020 +0000
@@ -0,0 +1,46 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/08 16:23:23 nia Exp $
+bin/busted${LUADOTVER}
+${LUA_LDIR}/busted/block.lua
+${LUA_LDIR}/busted/compatibility.lua
+${LUA_LDIR}/busted/context.lua
+${LUA_LDIR}/busted/core.lua
+${LUA_LDIR}/busted/done.lua
+${LUA_LDIR}/busted/environment.lua
+${LUA_LDIR}/busted/execute.lua
+${LUA_LDIR}/busted/init.lua
+${LUA_LDIR}/busted/languages/ar.lua
+${LUA_LDIR}/busted/languages/de.lua
+${LUA_LDIR}/busted/languages/en.lua
+${LUA_LDIR}/busted/languages/es.lua
+${LUA_LDIR}/busted/languages/fr.lua
+${LUA_LDIR}/busted/languages/it.lua
+${LUA_LDIR}/busted/languages/ja.lua
+${LUA_LDIR}/busted/languages/nl.lua
+${LUA_LDIR}/busted/languages/pt-BR.lua
+${LUA_LDIR}/busted/languages/ru.lua
+${LUA_LDIR}/busted/languages/th.lua
+${LUA_LDIR}/busted/languages/ua.lua
+${LUA_LDIR}/busted/languages/zh.lua
+${LUA_LDIR}/busted/modules/cli.lua
+${LUA_LDIR}/busted/modules/configuration_loader.lua
+${LUA_LDIR}/busted/modules/files/lua.lua
+${LUA_LDIR}/busted/modules/files/moonscript.lua
+${LUA_LDIR}/busted/modules/files/terra.lua
+${LUA_LDIR}/busted/modules/filter_loader.lua
+${LUA_LDIR}/busted/modules/helper_loader.lua
+${LUA_LDIR}/busted/modules/luacov.lua
+${LUA_LDIR}/busted/modules/output_handler_loader.lua
+${LUA_LDIR}/busted/modules/standalone_loader.lua
+${LUA_LDIR}/busted/modules/test_file_loader.lua
+${LUA_LDIR}/busted/options.lua
+${LUA_LDIR}/busted/outputHandlers/TAP.lua
+${LUA_LDIR}/busted/outputHandlers/base.lua
+${LUA_LDIR}/busted/outputHandlers/gtest.lua
+${LUA_LDIR}/busted/outputHandlers/json.lua
+${LUA_LDIR}/busted/outputHandlers/junit.lua
+${LUA_LDIR}/busted/outputHandlers/plainTerminal.lua
+${LUA_LDIR}/busted/outputHandlers/sound.lua
+${LUA_LDIR}/busted/outputHandlers/utfTerminal.lua
+${LUA_LDIR}/busted/runner.lua
+${LUA_LDIR}/busted/status.lua
+${LUA_LDIR}/busted/utils.lua
diff -r ca71b2f720b5 -r b97d0b2c0e00 devel/lua-busted/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/lua-busted/distinfo Wed Jul 08 16:23:23 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/07/08 16:23:23 nia Exp $
+
+SHA1 (busted-2.0.0.tar.gz) = eb9dbbb7f61df58e00b033de0722372b03f7d924
+RMD160 (busted-2.0.0.tar.gz) = 5c34e6fa4e4a6ab7f2ac32104143e8ed8f0563fa
+SHA512 (busted-2.0.0.tar.gz) = 3151694b1fba1acc52e3bcfee0231008b14934e89da5885d7e063c6f023479c42040c42a8c0aa6ff1f8303ad6b2a70f0687c8a218830de7231007ef8748457bf
+Size (busted-2.0.0.tar.gz) = 55002 bytes



Home | Main Index | Thread Index | Old Index