From d6cedf8b477417859c061f8813ee9d1bd1d7360a Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Mon, 10 Jan 2011 04:43:58 +0000 Subject: [PATCH] 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 [1] tota [2] --- ports-mgmt/portlint/Makefile | 2 +- ports-mgmt/portlint/src/portlint.pl | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/ports-mgmt/portlint/Makefile b/ports-mgmt/portlint/Makefile index 520a43d284d4..9a7009c05faf 100644 --- a/ports-mgmt/portlint/Makefile +++ b/ports-mgmt/portlint/Makefile @@ -8,7 +8,7 @@ # PORTNAME= portlint -PORTVERSION= 2.13.2 +PORTVERSION= 2.13.3 CATEGORIES= ports-mgmt MASTER_SITES= # none DISTFILES= # none diff --git a/ports-mgmt/portlint/src/portlint.pl b/ports-mgmt/portlint/src/portlint.pl index db57916ab69c..6cc821277aa0 100644 --- a/ports-mgmt/portlint/src/portlint.pl +++ b/ports-mgmt/portlint/src/portlint.pl @@ -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); }