aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2005-10-10 02:52:58 +0800
committermarcus <marcus@FreeBSD.org>2005-10-10 02:52:58 +0800
commit9117da2261fa66c3a5bb4266c8c7fdce5788f172 (patch)
tree30f175434e323ca5c7418c095f2d8cf8d25f84da /devel
parentab3b349481ac0687f449034fb30f78de419b0b98 (diff)
downloadfreebsd-ports-gnome-9117da2261fa66c3a5bb4266c8c7fdce5788f172.tar.gz
freebsd-ports-gnome-9117da2261fa66c3a5bb4266c8c7fdce5788f172.tar.zst
freebsd-ports-gnome-9117da2261fa66c3a5bb4266c8c7fdce5788f172.zip
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]
Diffstat (limited to 'devel')
-rw-r--r--devel/portlint/Makefile2
-rw-r--r--devel/portlint/src/portlint.pl24
2 files changed, 23 insertions, 3 deletions
diff --git a/devel/portlint/Makefile b/devel/portlint/Makefile
index f7bff086847d..2abdf192b85b 100644
--- a/devel/portlint/Makefile
+++ b/devel/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/devel/portlint/src/portlint.pl b/devel/portlint/src/portlint.pl
index 662fcd16ff6a..9d305eb2e794 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.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 '')) {