diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2005-10-09 18:52:58 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2005-10-09 18:52:58 +0000 |
commit | 10cda8a2e502c1dd987d1ac29efa84e655c3d196 (patch) | |
tree | 5fafafd58be14bbe0969633de445f5c951e72d82 /ports-mgmt | |
parent | 7e6e9e0f596fbcc08df512b53716e6d4d74269aa (diff) |
Notes
Diffstat (limited to 'ports-mgmt')
-rw-r--r-- | ports-mgmt/portlint/Makefile | 2 | ||||
-rw-r--r-- | ports-mgmt/portlint/src/portlint.pl | 24 |
2 files changed, 23 insertions, 3 deletions
diff --git a/ports-mgmt/portlint/Makefile b/ports-mgmt/portlint/Makefile index f7bff086847d..2abdf192b85b 100644 --- a/ports-mgmt/portlint/Makefile +++ b/ports-mgmt/portlint/Makefile @@ -8,7 +8,7 @@ # PORTNAME= portlint -PORTVERSION= 2.7.3 +PORTVERSION= 2.7.4 CATEGORIES= devel MASTER_SITES= # none DISTFILES= # none diff --git a/ports-mgmt/portlint/src/portlint.pl b/ports-mgmt/portlint/src/portlint.pl index 662fcd16ff6a..9d305eb2e794 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.82 2005/08/19 17:06:55 marcus Exp $ +# $MCom: portlint/portlint.pl,v 1.86 2005/10/09 18:51:51 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 = 3; +my $micro = 4; sub l { '[{(]'; } sub r { '[)}]'; } @@ -1022,6 +1022,17 @@ sub checkmakefile { } # + # whole file: check for common typos + # + print "OK: checking for common typos.\n" if ($verbose); + if ($whole =~ /^(INSTALL_SHLIBS?).?=/m || + $whole =~ /^(INSTALLS_SHLIBS).?=/m) { + my $lineno = &linenumber($`); + &perror("FATAL: $file [$lineno]: $1 should be spelled ". + "INSTALLS_SHLIB."); + } + + # # whole file: use of .elseif # print "OK: checking for use of .elseif.\n" if ($verbose); @@ -1733,6 +1744,15 @@ DIST_SUBDIR EXTRACT_ONLY } } + # check number of MASTER_SITES + if ($makevar{MASTER_SITES} ne '') { + my @sites = split(/\s+/, $makevar{MASTER_SITES}); + if (scalar(@sites) == 1) { + &perror("WARN: $file: only one MASTER_SITE configured. ". + "Consider adding additional mirrors."); + } + } + # check the URL if (($tmp =~ /\nMASTER_SITES[+?]?=[ \t]*([^\n]*)\n/ && $1 !~ /^[ \t]*$/) || ($makevar{MASTER_SITES} ne '')) { |