diff options
author | Michael Haro <mharo@FreeBSD.org> | 2002-09-14 18:57:41 +0000 |
---|---|---|
committer | Michael Haro <mharo@FreeBSD.org> | 2002-09-14 18:57:41 +0000 |
commit | 2235407efffa163f36a840e79a1340602ac48214 (patch) | |
tree | 2daad2f470e8be5071d6011e9cbb548f262c1801 /devel/portlint | |
parent | d7b5fabe67de2dd6dbb2e69814cef3774b535bce (diff) | |
download | ports-2235407efffa163f36a840e79a1340602ac48214.tar.gz ports-2235407efffa163f36a840e79a1340602ac48214.zip |
Teach portlint to recognize RUN_DEPENDS=${BUILD_DEPENDS} and the like
PR: 27182
Submitted by: Anton Berezin <tobez@tobez.org>
Notes
Notes:
svn path=/head/; revision=66306
Diffstat (limited to 'devel/portlint')
-rw-r--r-- | devel/portlint/Makefile | 2 | ||||
-rw-r--r-- | devel/portlint/src/portlint.pl | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/devel/portlint/Makefile b/devel/portlint/Makefile index 92bc56f6b553..4248b7d4f7d2 100644 --- a/devel/portlint/Makefile +++ b/devel/portlint/Makefile @@ -8,7 +8,7 @@ # PORTNAME= portlint -PORTVERSION= 2.3.2 +PORTVERSION= 2.3.3 CATEGORIES= devel MASTER_SITES= # none DISTFILES= # none diff --git a/devel/portlint/src/portlint.pl b/devel/portlint/src/portlint.pl index d40afa00f7b1..2db5d109a6da 100644 --- a/devel/portlint/src/portlint.pl +++ b/devel/portlint/src/portlint.pl @@ -1222,12 +1222,24 @@ LIB_DEPENDS BUILD_DEPENDS RUN_DEPENDS FETCH_DEPENDS DEPENDS DEPENDS_TARGET if ($tmp =~ /(LIB_|BUILD_|RUN_|FETCH_)?DEPENDS/) { &checkearlier($file, $tmp, @varnames); + my %seen_depends; + if (!defined $ENV{'PORTSDIR'}) { $ENV{'PORTSDIR'} = $portsdir; } foreach my $i (grep(/^[A-Z_]*DEPENDS[?+]?=/, split(/\n/, $tmp))) { $i =~ s/^([A-Z_]*DEPENDS)[?+]?=[ \t]*//; $j = $1; + $seen_depends{$j}++; + if ($j ne 'DEPENDS' && + $i =~ /^\${([A-Z_]+DEPENDS)}\s*$/ && + $seen_depends{$1} && + $j ne $1) + { + print "OK: $j refers to $1, skipping checks.\n" + if ($verbose); + next; + } print "OK: checking ports listed in $j.\n" if ($verbose); foreach my $k (split(/\s+/, $i)) { |