mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
Update to 2.7.4.
* Add a warning if only one MASTER_SITE is configured [1] * Check for misspellings of INSTALLS_SHLIB [2] PR: 87141 [2] Requested by: kris [1]
This commit is contained in:
parent
7e6e9e0f59
commit
10cda8a2e5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=144699
@ -8,7 +8,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= portlint
|
||||
PORTVERSION= 2.7.3
|
||||
PORTVERSION= 2.7.4
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= # none
|
||||
DISTFILES= # none
|
||||
|
@ -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 { '[)}]'; }
|
||||
@ -1021,6 +1021,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
|
||||
#
|
||||
@ -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 '')) {
|
||||
|
@ -8,7 +8,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= portlint
|
||||
PORTVERSION= 2.7.3
|
||||
PORTVERSION= 2.7.4
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= # none
|
||||
DISTFILES= # none
|
||||
|
@ -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 { '[)}]'; }
|
||||
@ -1021,6 +1021,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
|
||||
#
|
||||
@ -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 '')) {
|
||||
|
Loading…
Reference in New Issue
Block a user