Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/lua lua: Add PLIST_AWK for LUA_DOCDIR



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b506b583149c
branches:  trunk
changeset: 435576:b506b583149c
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Jul 09 15:01:53 2020 +0000

description:
lua: Add PLIST_AWK for LUA_DOCDIR

diffstat:

 lang/lua/module.mk |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 004ecf32f6d7 -r b506b583149c lang/lua/module.mk
--- a/lang/lua/module.mk        Thu Jul 09 14:39:08 2020 +0000
+++ b/lang/lua/module.mk        Thu Jul 09 15:01:53 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.7 2015/03/05 14:15:45 ryoon Exp $
+# $NetBSD: module.mk,v 1.8 2020/07/09 15:01:53 nia Exp $
 #
 # This Makefile fragment is intended to be included by packages that
 # install Lua modules.
@@ -50,6 +50,9 @@
 LUA_DOCDIR=    share/doc/${PKGBASE}
 PLIST_SUBST+=  LUA_DOCDIR=${LUA_DOCDIR}
 
+PRINT_PLIST_AWK+=      /^${LUA_DOCDIR:S|/|\\/|g}/ \
+                       { gsub(/${LUA_DOCDIR:S|/|\\/|g}/, "$${LUA_DOCDIR}") }
+
 LUA_EXAMPLESDIR=       share/examples/${PKGBASE}
 PLIST_SUBST+=          LUA_EXAMPLESDIR=${LUA_EXAMPLESDIR}
 



Home | Main Index | Thread Index | Old Index