1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Update to 2.13.3

* Do not warn when the "work" directory is not in CVS. [1]
* Improve Ruby docs and examples handling. [2]

PR:		152053 [1]
		153596 [2]
Submitted by:	Eitan Adler <lists@eitanadler.com> [1]
		tota [2]
This commit is contained in:
Joe Marcus Clarke 2011-01-10 04:43:58 +00:00
parent d3572568e4
commit d6cedf8b47
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=267566
2 changed files with 11 additions and 6 deletions

View File

@ -8,7 +8,7 @@
#
PORTNAME= portlint
PORTVERSION= 2.13.2
PORTVERSION= 2.13.3
CATEGORIES= ports-mgmt
MASTER_SITES= # none
DISTFILES= # none

View File

@ -17,7 +17,7 @@
# OpenBSD and NetBSD will be accepted.
#
# $FreeBSD$
# $MCom: portlint/portlint.pl,v 1.203 2010/11/07 22:10:25 marcus Exp $
# $MCom: portlint/portlint.pl,v 1.207 2011/01/10 04:42:45 marcus Exp $
#
use strict;
@ -52,7 +52,7 @@ $portdir = '.';
# version variables
my $major = 2;
my $minor = 13;
my $micro = 2;
my $micro = 3;
sub l { '[{(]'; }
sub r { '[)}]'; }
@ -464,7 +464,7 @@ if ($committer) {
if /^(?:\.\.?|CVS)$/;
my $filename = $dir eq '.' ? $_ : "$dir/$_";
if (-d $filename) {
if (!$entries{$_} || $entries{$_} ne 'D') {
if ((!$entries{$_} || $entries{$_} ne 'D') && $filename ne 'work') {
&perror("FATAL", "", -1, "directory $filename not in CVS.");
}
else {
@ -699,8 +699,13 @@ sub checkplist {
# E.g., %%PORTDOCS%%%%RUBY_MODDOCDIR%% will be OK because there is
# no %%PORTRUBY_MODDOC%% substitution.
my %check_xxxdir_ok = (
"DOCS" => "DOCS",
"EXAMPLES" => "EXPAMPLES",
"DATA" => "DATA",
"RUBY_DOC" => "DOCS",
"RUBY_EXAMPLES" => "EXAMPLES",
"RUBY_MODDOC" => "DOCS",
"RUBY_MODEXAMPLES" => "DOCS",
"RUBY_MODEXAMPLES" => "EXAMPLES",
);
open(IN, "< $file") || return 0;
@ -925,7 +930,7 @@ sub checkplist {
if ($_ =~ m{^%%PORT(\w+)%%(.*?)%%(\w+)DIR%%(.*)$} and $1 ne $3) {
&perror("WARN", $file, $., "Do not mix %%PORT$1%% with %%$3DIR%%. ".
"Use '%%PORT$3%%$2%%$3DIR%%$4' instead and update Makefile ".
"Use '%%PORT$check_xxxdir_ok{$3}%%$2%%$3DIR%%$4' instead and update Makefile ".
"accordingly.") unless (defined($check_xxxdir_ok{$3}) and
$check_xxxdir_ok{$3} eq $1);
}