summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-07-09 15:01:53 +0000
committernia <nia@pkgsrc.org>2020-07-09 15:01:53 +0000
commitbc5f2e568909dfc7ab6e22ea1c27717115bae79a (patch)
treee666343d8942d1894c465843fa6387859c4fd1ba /lang
parentb625b62977bdf2c1c7d45346967a7ed68ca884b5 (diff)
downloadpkgsrc-bc5f2e568909dfc7ab6e22ea1c27717115bae79a.tar.gz
lua: Add PLIST_AWK for LUA_DOCDIR
Diffstat (limited to 'lang')
-rw-r--r--lang/lua/module.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/lang/lua/module.mk b/lang/lua/module.mk
index 51705af236c..0b52994006a 100644
--- a/lang/lua/module.mk
+++ b/lang/lua/module.mk
@@ -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 @@ PRINT_PLIST_AWK+= /^${LUA_CDIR:S|/|\\/|g}/ \
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}