diff options
author | taca <taca@pkgsrc.org> | 2008-08-27 15:38:11 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2008-08-27 15:38:11 +0000 |
commit | eec355d5efca1525fc2064d9fee9a3c6849015cd (patch) | |
tree | 985e40c0343c1004f270c4ae6291ac4d0a0f364a | |
parent | c047eb0907a983c1cbc45808cf557adb241644a8 (diff) | |
download | pkgsrc-eec355d5efca1525fc2064d9fee9a3c6849015cd.tar.gz |
Add PRINT_PLIST_AWK for PLONE_BASE substitution.
-rw-r--r-- | www/plone/ploneversion.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/www/plone/ploneversion.mk b/www/plone/ploneversion.mk index fb3203defda..2d64f07b979 100644 --- a/www/plone/ploneversion.mk +++ b/www/plone/ploneversion.mk @@ -1,4 +1,4 @@ -# $NetBSD: ploneversion.mk,v 1.7 2008/08/03 15:32:33 taca Exp $ +# $NetBSD: ploneversion.mk,v 1.8 2008/08/27 15:38:11 taca Exp $ # .if !defined(_PLONEVERSION_MK) @@ -146,4 +146,11 @@ PLIST_SUBST+= PLONE_VERSION=${PLONE_VERSION} \ .include "../../www/zope/product.mk" +# +# PLONE_BASE needs to be replaced preceding to ZOPE_BASE +# +PRINT_PLIST_AWK+= /^(@dirrm )?${PLONE_BASE:S|/|\\/|g}/ \ + { gsub(/${PLONE_BASE:S|/|\\/|g}/, "$${PLONE_BASE}"); \ + print; next; } + .endif |