aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2006-11-26 04:02:50 +0800
committermarcus <marcus@FreeBSD.org>2006-11-26 04:02:50 +0800
commit77d8617371e6a0cda370f67f2dc600ffa1a12382 (patch)
tree4230ba14650ff3a93baa78501ae10d36e2af93a0 /ports-mgmt
parent404c8b056ff0e5befe56c95f0766372a4af9d491 (diff)
downloadfreebsd-ports-gnome-77d8617371e6a0cda370f67f2dc600ffa1a12382.tar.gz
freebsd-ports-gnome-77d8617371e6a0cda370f67f2dc600ffa1a12382.tar.zst
freebsd-ports-gnome-77d8617371e6a0cda370f67f2dc600ffa1a12382.zip
Update to 2.9.2.
* Replace a dead autotools link with a FreeBSD-based link instead [1] * Replace USE_*_VER with USE_AUTOTOOLS instead [2] * Check for a valid EXPIRATION_DATE [3] PR: 104042 [3] Requested by: piotr.smyrak@heron.pl [1] Reported by: ahze [2] Submitted by: vd [3]
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/portlint/Makefile3
-rw-r--r--ports-mgmt/portlint/src/portlint.pl26
2 files changed, 23 insertions, 6 deletions
diff --git a/ports-mgmt/portlint/Makefile b/ports-mgmt/portlint/Makefile
index e6923a60bb9d..4f76bdce8de5 100644
--- a/ports-mgmt/portlint/Makefile
+++ b/ports-mgmt/portlint/Makefile
@@ -8,8 +8,7 @@
#
PORTNAME= portlint
-PORTVERSION= 2.9.1
-PORTREVISION= 1
+PORTVERSION= 2.9.2
CATEGORIES= devel
MASTER_SITES= # none
DISTFILES= # none
diff --git a/ports-mgmt/portlint/src/portlint.pl b/ports-mgmt/portlint/src/portlint.pl
index bbb03e8ce828..1d70537eb977 100644
--- a/ports-mgmt/portlint/src/portlint.pl
+++ b/ports-mgmt/portlint/src/portlint.pl
@@ -17,13 +17,14 @@
# OpenBSD and NetBSD will be accepted.
#
# $FreeBSD$
-# $MCom: portlint/portlint.pl,v 1.123 2006/08/06 22:36:21 marcus Exp $
+# $MCom: portlint/portlint.pl,v 1.126 2006/11/25 20:00:02 marcus Exp $
#
use vars qw/ $opt_a $opt_A $opt_b $opt_C $opt_c $opt_g $opt_h $opt_t $opt_v $opt_M $opt_N $opt_B $opt_V /;
use Getopt::Std;
use File::Find;
use IPC::Open2;
+use POSIX qw(strftime);
use strict;
sub perror($$$$);
@@ -45,7 +46,7 @@ $portdir = '.';
# version variables
my $major = 2;
my $minor = 9;
-my $micro = 1;
+my $micro = 2;
sub l { '[{(]'; }
sub r { '[)}]'; }
@@ -1338,6 +1339,23 @@ sub checkmakefile {
}
#
+ # whole file: EXPIRATION_DATE
+ #
+ print "OK: checking for valid EXPIRATION_DATE.\n" if ($verbose);
+ my $edate;
+ if (($edate) = ($whole =~ m/\nEXPIRATION_DATE\??=[ \t]*([^\n]*)\n/)) {
+ my $lineno = &linenumber($`);
+ if ($edate ne strftime("%Y-%m-%d", 0, 0, 0,
+ substr($edate, 8, 2),
+ substr($edate, 5, 2) - 1,
+ substr($edate, 0, 4) - 1900)) {
+ &perror("FATAL", $file, $lineno, "EXPIRATION_DATE ($edate) is ".
+ "either not in YYYY-MM-DD format or it is not a valid ".
+ "date.");
+ }
+ }
+
+ #
# whole file: IS_INTERACTIVE/NOPORTDOCS
#
print "OK: checking IS_INTERACTIVE.\n" if ($verbose);
@@ -1392,7 +1410,7 @@ sub checkmakefile {
USE_AUTOHEADER_VER => 'USE_AUTOTOOLS',
USE_AUTOCONF_VER => 'USE_AUTOTOOLS',
WANT_AUTOCONF_VER => 'USE_AUTOTOOLS',
- __HELP__ => 'http://people.freebsd.org/~ade/autotools.txt',
+ __HELP__ => 'http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/using-autotools.html',
);
%deprecated = (
@@ -1503,7 +1521,7 @@ ruby sed sh sort sysctl touch tr which xargs xmkmf
&& $lm !~ /^COMMENT(.)?=[^\n]+($i\d*)/m) {
&perror("WARN", $file, $lineno, "possible direct use of ".
"command \"$sm\" found. Use $autocmdnames{$i} ".
- "instead and set according USE_*_VER= flag");
+ "instead and set according USE_AUTOTOOLS=<tool> macro");
}
}
}