Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/lua-rocks lua-rocks: Substitute PREFIX properly



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c1afb145813f
branches:  trunk
changeset: 435213:c1afb145813f
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Jul 02 12:53:21 2020 +0000

description:
lua-rocks: Substitute PREFIX properly

diffstat:

 devel/lua-rocks/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 52d26feeeaf3 -r c1afb145813f devel/lua-rocks/Makefile
--- a/devel/lua-rocks/Makefile  Thu Jul 02 12:13:36 2020 +0000
+++ b/devel/lua-rocks/Makefile  Thu Jul 02 12:53:21 2020 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.12 2020/07/02 12:13:36 nia Exp $
+# $NetBSD: Makefile,v 1.13 2020/07/02 12:53:21 nia Exp $
 
 DISTNAME=      luarocks-3.3.1
 PKGNAME=       ${DISTNAME:S/luarocks/${LUA_PKGPREFIX}-rocks/}
+PKGREVISION=   1
 CATEGORIES=    devel lua
 MASTER_SITES=  https://luarocks.org/releases/
 
@@ -42,6 +43,11 @@
 PLIST_SUBST+=          LUADOTVER=${_LUA_DOT_VERSION}
 FILES_SUBST+=          LUADOTVER=${_LUA_DOT_VERSION}
 
+SUBST_CLASSES+=                prefix
+SUBST_STAGE.prefix=    pre-configure
+SUBST_FILES.prefix=    src/luarocks/core/cfg.lua
+SUBST_VARS.prefix=     PREFIX
+
 .include "../../lang/lua/application.mk"
 .include "../../lang/lua/module.mk"
 .include "../../mk/alternatives.mk"



Home | Main Index | Thread Index | Old Index