From 28739eaea9ff732d9f994cdc104c227be8bcd837 Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Thu, 8 Sep 2005 23:57:36 +0000 Subject: Update to 2.7.3. * USE_PYTHON can now safely appear after bsd.port.pre.mk * Expand the .elseif search to cover ".else if" as well * Don't complain on direct use of autotools if we're using USE_AUTOTOOLS * Don't check embedded comments for direct command use --- ports-mgmt/portlint/Makefile | 3 +-- ports-mgmt/portlint/src/portlint.pl | 16 ++++++++-------- 2 files changed, 9 insertions(+), 10 deletions(-) (limited to 'ports-mgmt') diff --git a/ports-mgmt/portlint/Makefile b/ports-mgmt/portlint/Makefile index 13486ebdd772..f7bff086847d 100644 --- a/ports-mgmt/portlint/Makefile +++ b/ports-mgmt/portlint/Makefile @@ -8,8 +8,7 @@ # PORTNAME= portlint -PORTVERSION= 2.7.2 -PORTREVISION= 1 +PORTVERSION= 2.7.3 CATEGORIES= devel MASTER_SITES= # none DISTFILES= # none diff --git a/ports-mgmt/portlint/src/portlint.pl b/ports-mgmt/portlint/src/portlint.pl index 6f533a254a37..662fcd16ff6a 100644 --- a/ports-mgmt/portlint/src/portlint.pl +++ b/ports-mgmt/portlint/src/portlint.pl @@ -17,7 +17,7 @@ # OpenBSD and NetBSD will be accepted. # # $FreeBSD$ -# $MCom: portlint/portlint.pl,v 1.79 2005/07/03 04:49:07 marcus Exp $ +# $MCom: portlint/portlint.pl,v 1.82 2005/08/19 17:06:55 marcus Exp $ # use vars qw/ $opt_a $opt_A $opt_b $opt_C $opt_c $opt_h $opt_t $opt_v $opt_M $opt_N $opt_B $opt_V /; @@ -40,7 +40,7 @@ $portdir = '.'; # version variables my $major = 2; my $minor = 7; -my $micro = 2; +my $micro = 3; sub l { '[{(]'; } sub r { '[)}]'; } @@ -1025,10 +1025,10 @@ sub checkmakefile { # whole file: use of .elseif # print "OK: checking for use of .elseif.\n" if ($verbose); - if ($whole =~ /^\.\s*elseif/m) { + if ($whole =~ /^\.\s*else\s*if/m) { my $lineno = &linenumber($`); - &perror("FATAL: $file [$lineno]: use of .elseif is not supported ". - "in all versions of FreeBSD. Use .elif instead."); + &perror("FATAL: $file [$lineno]: use of .elseif (or .else if) is not + supported in all versions of FreeBSD. Use .elif instead."); } # @@ -1082,7 +1082,6 @@ sub checkmakefile { LINUX_PREFIX OPENSSL PHP - PYTHON QT2? QT_VER X_PREFIX @@ -1316,7 +1315,7 @@ pax perl printf rm rmdir ruby sed sh sort touch tr which xargs xmkmf && $curline !~ /^NO_CDROM(.)?=[^\n]+$i/m && $curline !~ /^MAINTAINER(.)?=[^\n]+$i/m && $curline !~ /^CATEGORIES(.)?=[^\n]+$i/m - && $curline !~ /^#.+$/m + && $curline !~ /^\s*#.+$/m && $curline !~ /\-\-$i/m && $curline !~ /^COMMENT(.)?=[^\n]+$i/m) { &perror("WARN: $file [$lineno]: possible direct use of ". @@ -1341,7 +1340,8 @@ pax perl printf rm rmdir ruby sed sh sort touch tr which xargs xmkmf && $lm !~ /^NO_CDROM(.)?=[^\n]+($i\d*)/m && $lm !~ /^MAINTAINER(.)?=[^\n]+($i\d*)/m && $lm !~ /^CATEGORIES(.)?=[^\n]+($i\d*)/m - && $lm !~ /^#.+$/m + && $lm !~ /^USE_AUTOTOOLS(.)?=[^\n]+($i\d*)/m + && $lm !~ /^\s*#.+$/m && $lm !~ /^COMMENT(.)?=[^\n]+($i\d*)/m) { &perror("WARN: $file [$lineno]: possible direct use of ". "command \"$sm\" found. Use $autocmdnames{$i} ". -- cgit v1.2.3