pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/lua-basexx



Module Name:    pkgsrc
Committed By:   nia
Date:           Wed Jul  8 16:26:06 UTC 2020

Modified Files:
        pkgsrc/devel/lua-basexx: Makefile

Log Message:
lua-basexx: Support for testing


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/lua-basexx/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/lua-basexx/Makefile
diff -u pkgsrc/devel/lua-basexx/Makefile:1.1 pkgsrc/devel/lua-basexx/Makefile:1.2
--- pkgsrc/devel/lua-basexx/Makefile:1.1        Thu Jul  2 14:36:29 2020
+++ pkgsrc/devel/lua-basexx/Makefile    Wed Jul  8 16:26:06 2020
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.1 2020/07/02 14:36:29 nia Exp $
+# $NetBSD: Makefile,v 1.2 2020/07/08 16:26:06 nia Exp $
 
 DISTNAME=      lua-basexx-0.4.1
-PKGNAME=       ${DISTNAME:S/lua-/${LUA_PKGPREFIX}-/1}
+PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/lua-//1}
 CATEGORIES=    devel lua
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=aiq/}
 GITHUB_PROJECT=        basexx
@@ -12,6 +12,8 @@ HOMEPAGE=     https://github.com/aiq/basexx
 COMMENT=       BaseXX encoding and decoding library for Lua
 LICENSE=       mit
 
+TEST_DEPENDS+= ${LUA_PKGPREFIX}-busted-[0-9]*:../../devel/lua-busted
+
 WRKSRC=                ${WRKDIR}/${GITHUB_PROJECT}-${PKGVERSION_NOREV}
 USE_LANGUAGES= # none
 NO_BUILD=      yes
@@ -22,5 +24,8 @@ do-install:
        ${INSTALL_DATA} ${WRKSRC}/lib/basexx.lua \
                ${DESTDIR}${PREFIX}/${LUA_LDIR}/basexx.lua
 
+do-test:
+       cd ${WRKSRC} && ${PREFIX}/bin/busted${_LUA_DOT_VERSION}
+
 .include "../../lang/lua/module.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index