pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Add EMACS_LISPPREFIX handling to PRINT_PLIST_AWK.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/28ca49d3319f
branches:  trunk
changeset: 539194:28ca49d3319f
user:      obache <obache%pkgsrc.org@localhost>
date:      Sat Mar 01 05:11:10 2008 +0000

description:
Add EMACS_LISPPREFIX handling to PRINT_PLIST_AWK.

diffstat:

 mk/emacs.mk |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 9c3a4c19232e -r 28ca49d3319f mk/emacs.mk
--- a/mk/emacs.mk       Sat Mar 01 05:04:58 2008 +0000
+++ b/mk/emacs.mk       Sat Mar 01 05:11:10 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: emacs.mk,v 1.48 2008/01/18 13:50:44 obache Exp $
+# $NetBSD: emacs.mk,v 1.49 2008/03/01 05:11:10 obache Exp $
 #
 # This Makefile fragment handles Emacs Lisp Packages (== ELPs).
 #
@@ -360,6 +360,10 @@
 PLIST_SUBST+=  EMACS_INFOPREFIX=${EMACS_INFOPREFIX:C|^${PREFIX}/||}
 PLIST_SUBST+=  EMACS_LISPPREFIX=${EMACS_LISPPREFIX:C|^${PREFIX}/||}
 
+PRINT_PLIST_AWK+=      { gsub(/${EMACS_LISPPREFIX:S|${PREFIX}/||:S|/|\\/|g}/, \
+                       "$${EMACS_LISPPREFIX}"); \
+                       print; next; }
+
 #
 # ELP dependencies
 #



Home | Main Index | Thread Index | Old Index