summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2013-07-05 15:31:54 +0000
committerjperkin <jperkin@pkgsrc.org>2013-07-05 15:31:54 +0000
commitb9f625b4539e853a1a3f6702da304e96b9b95aa0 (patch)
tree93add88cebd39eaa11687c7cca2525219038e82a /mk
parente8ba95d3b6f602ef8b6c16e28aeb8ec3e5800f0f (diff)
downloadpkgsrc-b9f625b4539e853a1a3f6702da304e96b9b95aa0.tar.gz
Fix print-PLIST with a custom PKGGNUDIR.
Diffstat (limited to 'mk')
-rw-r--r--mk/plist/print-plist.mk5
1 files changed, 2 insertions, 3 deletions
diff --git a/mk/plist/print-plist.mk b/mk/plist/print-plist.mk
index eb1e1bbfd82..da8ed6d8f2a 100644
--- a/mk/plist/print-plist.mk
+++ b/mk/plist/print-plist.mk
@@ -1,4 +1,4 @@
-# $NetBSD: print-plist.mk,v 1.23 2013/02/20 09:19:08 wiz Exp $
+# $NetBSD: print-plist.mk,v 1.24 2013/07/05 15:31:54 jperkin Exp $
###
### Automatic PLIST generation
@@ -26,7 +26,7 @@ _PRINT_PLIST_AWK_SUBST+= \
gsub(/${PKGNAME_NOREV}/, "$${PKGNAME}"); \
gsub(/${PKGVERSION:S/./\./g:C/nb[0-9]*$$//}/, "$${PKGVERSION}");\
gsub(/^${PKGLOCALEDIR}\/locale/, "share/locale"); \
- gsub("^${PKGGNUDIR}", "gnu/"); \
+ gsub("^${PKGGNUDIR:S/\/$$//}/", "gnu/"); \
gsub("^${PKGINFODIR}/", "info/"); \
gsub("^${PKGMANDIR}/", "man/");
_PRINT_PLIST_AWK_SUBST+=}
@@ -175,7 +175,6 @@ print-PLIST:
/${DESTDIR:S|/|\\/|g:S/+/\\\\+/g}${PREFIX:S|/|\\/|g}\/\.$$/ { next; } \
/${PKG_DBDIR:S|/|\\/|g}\// { next; } \
{ sub("${DESTDIR:S/+/\\\\\\+/g}${PREFIX}/\\\\./", ""); } \
- { sub("^${PKGGNUDIR}", "gnu/"); } \
{ sub("^${PKGINFODIR}/", "info/"); } \
{ sub("^${PKGMANDIR}/", "man/"); } \
/^${PKG_DBDIR:S|^${PREFIX}/||:S|/|\\/|g}(\/|$$)/ { next; } \