Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/lua-busted lua-busted: Use REPLACE_LUA



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7b0a3525ab6b
branches:  trunk
changeset: 435609:7b0a3525ab6b
user:      nia <nia%pkgsrc.org@localhost>
date:      Fri Jul 10 10:24:31 2020 +0000

description:
lua-busted: Use REPLACE_LUA

diffstat:

 devel/lua-busted/Makefile |  11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diffs (38 lines):

diff -r 6422892f95b0 -r 7b0a3525ab6b devel/lua-busted/Makefile
--- a/devel/lua-busted/Makefile Fri Jul 10 10:24:21 2020 +0000
+++ b/devel/lua-busted/Makefile Fri Jul 10 10:24:31 2020 +0000
@@ -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 @@
 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/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 @@
        ${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