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]
This commit is contained in:
parent
0343b63483
commit
4da8cefd2f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=178032
4 changed files with 46 additions and 12 deletions
|
@ -8,8 +8,7 @@
|
|||
#
|
||||
|
||||
PORTNAME= portlint
|
||||
PORTVERSION= 2.9.1
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 2.9.2
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= # none
|
||||
DISTFILES= # none
|
||||
|
|
|
@ -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 { '[)}]'; }
|
||||
|
@ -1337,6 +1338,23 @@ sub checkmakefile {
|
|||
"You can safely use REINPLACE_CMD without it.");
|
||||
}
|
||||
|
||||
#
|
||||
# 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
|
||||
#
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,8 +8,7 @@
|
|||
#
|
||||
|
||||
PORTNAME= portlint
|
||||
PORTVERSION= 2.9.1
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 2.9.2
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= # none
|
||||
DISTFILES= # none
|
||||
|
|
|
@ -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 { '[)}]'; }
|
||||
|
@ -1337,6 +1338,23 @@ sub checkmakefile {
|
|||
"You can safely use REINPLACE_CMD without it.");
|
||||
}
|
||||
|
||||
#
|
||||
# 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
|
||||
#
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue