aboutsummaryrefslogtreecommitdiff
path: root/devel/portlint
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2005-09-08 23:57:36 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2005-09-08 23:57:36 +0000
commit28739eaea9ff732d9f994cdc104c227be8bcd837 (patch)
tree356cde70a6cf999e861ca27627d2b34e0b60e7d2 /devel/portlint
parent7b3ac327b1e9b0ce6a5d2c62477e63211e2a5d6b (diff)
downloadports-28739eaea9ff732d9f994cdc104c227be8bcd837.tar.gz
ports-28739eaea9ff732d9f994cdc104c227be8bcd837.zip
Notes
Diffstat (limited to 'devel/portlint')
-rw-r--r--devel/portlint/Makefile3
-rw-r--r--devel/portlint/src/portlint.pl16
2 files changed, 9 insertions, 10 deletions
diff --git a/devel/portlint/Makefile b/devel/portlint/Makefile
index 13486ebdd772..f7bff086847d 100644
--- a/devel/portlint/Makefile
+++ b/devel/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/devel/portlint/src/portlint.pl b/devel/portlint/src/portlint.pl
index 6f533a254a37..662fcd16ff6a 100644
--- a/devel/portlint/src/portlint.pl
+++ b/devel/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} ".