pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/lua-busted



Module Name:    pkgsrc
Committed By:   nia
Date:           Fri Jul 10 10:24:31 UTC 2020

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

Log Message:
lua-busted: Use REPLACE_LUA


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/lua-busted/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-busted/Makefile
diff -u pkgsrc/devel/lua-busted/Makefile:1.1 pkgsrc/devel/lua-busted/Makefile:1.2
--- pkgsrc/devel/lua-busted/Makefile:1.1        Wed Jul  8 16:23:23 2020
+++ pkgsrc/devel/lua-busted/Makefile    Fri Jul 10 10:24:31 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2020/07/08 16:23:23 nia Exp $
+# $NetBSD: Makefile,v 1.2 2020/07/10 10:24:31 nia Exp $
 
 DISTNAME=      busted-2.0.0
 PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME}
@@ -25,6 +25,8 @@ DEPENDS+=     ${LUA_PKGPREFIX}-mediator-[0-9
 NO_BUILD=      yes
 USE_LANGUAGES= # none
 
+REPLACE_LUA+=  bin/busted
+
 PLIST_SUBST+=  LUADOTVER=${_LUA_DOT_VERSION}
 
 INSTALLATION_DIRS+=    bin
@@ -34,12 +36,6 @@ INSTALLATION_DIRS+=  ${LUA_LDIR}/busted/m
 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
@@ -54,5 +50,6 @@ do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/bin/busted \
                ${DESTDIR}${PREFIX}/bin/busted${_LUA_DOT_VERSION}
 
+.include "../../lang/lua/application.mk"
 .include "../../lang/lua/module.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index