pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/perl58 Make sure PKGDIRMODE is defined before che...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/96218fc63d28
branches:  trunk
changeset: 473835:96218fc63d28
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Sat Apr 24 22:54:45 2004 +0000

description:
Make sure PKGDIRMODE is defined before checking its value.

diffstat:

 lang/perl58/Makefile |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (26 lines):

diff -r 5ebc77b13d21 -r 96218fc63d28 lang/perl58/Makefile
--- a/lang/perl58/Makefile      Sat Apr 24 22:53:55 2004 +0000
+++ b/lang/perl58/Makefile      Sat Apr 24 22:54:45 2004 +0000
@@ -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 @@
 # 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



Home | Main Index | Thread Index | Old Index