portlint.tcl: warn when using "configure {}" instead of "use_configure no"; closes #15806
--- trunk/base/src/port1.0/portlint.tcl 2008-07-01 22:09:05 UTC (rev 37980)
+++ trunk/base/src/port1.0/portlint.tcl 2008-07-01 22:09:20 UTC (rev 37981)
@@ -271,6 +271,11 @@
}
}
+ if {[regexp {(^|\s)configure\s+\{\s*\}} $line]} {
+ ui_warn "Line $lineno should say \"use_configure no\" instead of declaring an empty configure phase"
+ incr warnings
+ }
+
### TODO: more checks to Portfile syntax
incr lineno