pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/lua Add to PRINT_PLIST_AWK for LUA_LDIR and LUA_C...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/71313a38dde1
branches:  trunk
changeset: 553537:71313a38dde1
user:      obache <obache%pkgsrc.org@localhost>
date:      Sat Jan 24 02:56:19 2009 +0000

description:
Add to PRINT_PLIST_AWK for LUA_LDIR and LUA_CDIR.

diffstat:

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

diffs (33 lines):

diff -r 9f00246976a6 -r 71313a38dde1 lang/lua/module.mk
--- a/lang/lua/module.mk        Sat Jan 24 02:20:28 2009 +0000
+++ b/lang/lua/module.mk        Sat Jan 24 02:56:19 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: module.mk,v 1.1 2009/01/11 23:15:55 minskim Exp $
+# $NetBSD: module.mk,v 1.2 2009/01/24 02:56:19 obache Exp $
 #
 # This Makefile fragment is intended to be included by packages that
 # install Lua packages.
@@ -14,6 +14,11 @@
 LUA_LDIR=      share/lua/${_LUA_VERSION}
 PLIST_SUBST+=  LUA_LDIR=${LUA_LDIR}
 
+PRINT_PLIST_AWK+=      /^@dirrm share\/lua$$/ { next; }
+PRINT_PLIST_AWK+=      /^@dirrm ${LUA_LDIR:S|/|\\/|g}$$/ { next; }
+PRINT_PLIST_AWK+=      /^(@dirrm )?${LUA_LDIR:S|/|\\/|g}/ \
+                       { gsub(/${LUA_LDIR:S|/|\\/|g}/, "$${LUA_LDIR}"); print; next; }
+
 .if defined(NO_BUILD) && empty(NO_BUILD:M[Nn][Oo])
 DEPENDS+=      lua-${_LUA_VERSION}.*:../../lang/lua
 .else
@@ -22,6 +27,11 @@
 
 BUILDLINK_API_DEPENDS.lua+=    lua-${_LUA_VERSION}.*
 
+PRINT_PLIST_AWK+=      /^@dirrm lib\/lua$$/ { next; }
+PRINT_PLIST_AWK+=      /^@dirrm ${LUA_CDIR:S|/|\\/|g}$$/ { next; }
+PRINT_PLIST_AWK+=      /^(@dirrm )?${LUA_CDIR:S|/|\\/|g}/ \
+                       { gsub(/${LUA_CDIR:S|/|\\/|g}/, "$${LUA_CDIR}"); print; next; }
+
 .include "../../lang/lua/buildlink3.mk"
 .endif
 



Home | Main Index | Thread Index | Old Index