From 0447e5f0efd8003c443a3f400ceafcf15468845a Mon Sep 17 00:00:00 2001 From: marcus Date: Tue, 12 Oct 2004 19:40:05 +0000 Subject: Support .ifndef and !defined when doing OPTIONS checking. --- devel/portlint/Makefile | 1 + devel/portlint/src/portlint.pl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'devel') diff --git a/devel/portlint/Makefile b/devel/portlint/Makefile index b02339f4fa6f..8e68e6905be5 100644 --- a/devel/portlint/Makefile +++ b/devel/portlint/Makefile @@ -9,6 +9,7 @@ PORTNAME= portlint PORTVERSION= 2.6.8 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= # none DISTFILES= # none diff --git a/devel/portlint/src/portlint.pl b/devel/portlint/src/portlint.pl index 1e8a1206b937..25bfa1a2973d 100644 --- a/devel/portlint/src/portlint.pl +++ b/devel/portlint/src/portlint.pl @@ -2331,7 +2331,7 @@ FETCH_DEPENDS DEPENDS DEPENDS_TARGET # check OPTIONS print "OK: checking OPTIONS.\n" if ($verbose); @oopt = ($makevar{OPTIONS} =~ /(\w+)\s+\".*?\"\s+\w+/sg); - @mopt = ($tmp =~ /^\s*\.\s*(?:ifdef\s+|if\s+defined\s*)\(?\s*WITH(?:OUT)?_(\w+)\s*\)?/mg); + @mopt = ($tmp =~ /^\s*\.\s*(?:ifn?def\s+|if\s+\!?\s*defined\s*)\(?\s*WITH(?:OUT)?_(\w+)\s*\)?/mg); foreach my $i (@oopt) { if (!grep(/^$i$/, @mopt)) { &perror("WARN: $file: $i is listed in OPTIONS, ". -- cgit