diff options
author | marcus <marcus@FreeBSD.org> | 2005-09-09 07:57:36 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2005-09-09 07:57:36 +0800 |
commit | 5e38e5118bc32fbd1935093bb0f53f93acea4769 (patch) | |
tree | f4dc329629941d02b311698cd9f8b5b1ca6055a0 /ports-mgmt/portlint | |
parent | 7a61631ab63ed0beb7c248ac2995441ddc793c0b (diff) | |
download | freebsd-ports-gnome-5e38e5118bc32fbd1935093bb0f53f93acea4769.tar.gz freebsd-ports-gnome-5e38e5118bc32fbd1935093bb0f53f93acea4769.tar.zst freebsd-ports-gnome-5e38e5118bc32fbd1935093bb0f53f93acea4769.zip |
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
Diffstat (limited to 'ports-mgmt/portlint')
-rw-r--r-- | ports-mgmt/portlint/Makefile | 3 | ||||
-rw-r--r-- | ports-mgmt/portlint/src/portlint.pl | 16 |
2 files changed, 9 insertions, 10 deletions
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} ". |