summaryrefslogtreecommitdiff
path: root/lang/perl58
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-04-24 22:54:45 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-04-24 22:54:45 +0000
commitf401030d89005de5540fd3cc558544f2d7435fca (patch)
tree556987f070867e9644de200b3acc53d1f960b483 /lang/perl58
parentb54443f75353ec0ffd2d67953bc2120cdd831c88 (diff)
downloadpkgsrc-f401030d89005de5540fd3cc558544f2d7435fca.tar.gz
Make sure PKGDIRMODE is defined before checking its value.
Diffstat (limited to 'lang/perl58')
-rw-r--r--lang/perl58/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/lang/perl58/Makefile b/lang/perl58/Makefile
index b7b1031d46a..8993ad85422 100644
--- a/lang/perl58/Makefile
+++ b/lang/perl58/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.41 2004/04/24 21:04:43 tv Exp $
+# $NetBSD: Makefile,v 1.42 2004/04/24 22:54:45 xtraeme Exp $
# The following two variables should have empty values unless we're
# building a perl snapshot or release candidate.
@@ -216,13 +216,13 @@ MESSAGE_SUBST+= PERL5_SITELIB=${PERL5_SITELIB}
# unfortunately, hardcoded in quite a few places in Perl. So let's substitute
# what pkgsrc said instead.
post-patch:
-.if ${PKGDIRMODE} != "755"
-.for f in installhtml installman installperl lib/ExtUtils/Install.pm
+.if defined(PKGDIRMODE) && empty(PKGDIRMODE:M755)
+. for f in installhtml installman installperl lib/ExtUtils/Install.pm
cd ${WRKSRC} && \
${MV} -f $f $f.dirmode && \
${SED} -e 's/755/${PKGDIRMODE}/g;/umask(/d' \
$f.dirmode >$f
-.endfor
+. endfor
.endif
# It's tough to guess which hints file will be used, so add our modifications