summaryrefslogtreecommitdiff
path: root/lang/perl5/packlist.mk
diff options
context:
space:
mode:
authorsno <sno>2010-01-31 12:14:24 +0000
committersno <sno>2010-01-31 12:14:24 +0000
commita96aab90d5a71fd5675baaee2af9fbcd71ade3a4 (patch)
treeb433bc47cf57f06a7be6719fd7c847a6e91fb5f9 /lang/perl5/packlist.mk
parent0a4b5e34bcd6a9722f1f5d95c0f4ac575ff6ef2e (diff)
downloadpkgsrc-a96aab90d5a71fd5675baaee2af9fbcd71ade3a4.tar.gz
Reviewed patch from pkg/42709 and apply it.
Diffstat (limited to 'lang/perl5/packlist.mk')
-rw-r--r--lang/perl5/packlist.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/lang/perl5/packlist.mk b/lang/perl5/packlist.mk
index 56af2133758..e1fb5960e59 100644
--- a/lang/perl5/packlist.mk
+++ b/lang/perl5/packlist.mk
@@ -1,4 +1,4 @@
-# $NetBSD: packlist.mk,v 1.14 2009/06/18 05:30:24 wiz Exp $
+# $NetBSD: packlist.mk,v 1.15 2010/01/31 12:14:24 sno Exp $
#
# This Makefile fragment is intended to be included by packages that
# create packlist files. This file is automatically included by
@@ -76,6 +76,7 @@ GENERATE_PLIST+= ${PERL5_GENERATE_PLIST}
.if !empty(PERL5_PACKLIST_DESTDIR:M[Yy][Ee][Ss])
_PERL5_PACKLIST_AWK_STRIP_DESTDIR= \
BEGIN { destdir = "${DESTDIR}"; \
+ gsub(/\/\//, "/", destdir); \
len_destdir = length(destdir); } \
{ if (index($$1, destdir) == 1) \
$$1 = substr($$1, len_destdir + 1) }