Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160763313
D19525.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D19525.id.diff
View Options
Index: head/ports-mgmt/portlint/Makefile
===================================================================
--- head/ports-mgmt/portlint/Makefile
+++ head/ports-mgmt/portlint/Makefile
@@ -3,7 +3,7 @@
PORTNAME= portlint
PORTVERSION= 2.18.8
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= ports-mgmt
MASTER_SITES= # none
DISTFILES= # none
Index: head/ports-mgmt/portlint/src/portlint.pl
===================================================================
--- head/ports-mgmt/portlint/src/portlint.pl
+++ head/ports-mgmt/portlint/src/portlint.pl
@@ -1790,7 +1790,7 @@
}
#
- # while file: check that CMAKE_BOOL just has words
+ # whole file: check that CMAKE_BOOL just has words
#
print "OK: checking that *_CMAKE_BOOL only contains words.\n" if ($verbose);
if ($whole =~ /\n([\w\d]+)_CMAKE_BOOL[?+:]?=([^\n]+)\n/) {
@@ -1802,6 +1802,17 @@
}
}
+ print "OK: checking that *CMAKE* co-occurs with *USES+=cmake.\n" if ($verbose);
+ while ($whole =~ /\n([\w\d]+_)?CMAKE_(ARGS|BOOL|BOOL_ON|BOOL_OFF|OFF|ON)\b/g) {
+ my $lineno = &linenumber($`);
+ my $o = $1;
+ my $found_cmake = 0;
+ unless ($makevar{USES} =~ /\b(cmake\b|cmake:)/) {
+ $o = "" unless ($o);
+ &perror("FATAL", $file, $lineno, "${o}CMAKE_$2 is set without USES+=cmake");
+ }
+ }
+
#
# whole file: NO_CHECKSUM
#
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jun 28, 2:23 PM (2 m, 1 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34436022
Default Alt Text
D19525.id.diff (1 KB)
Attached To
Mode
D19525: Check sanity of CMAKE helpers relative to USES
Attached
Detach File
Event Timeline
Log In to Comment