Revision
37981
Author
ryandesign@macports.org
Date
2008-07-01 15:09:20 -0700 (Tue, 01 Jul 2008)

Log Message

portlint.tcl: warn when using "configure {}" instead of "use_configure no"; closes #15806

Modified Paths

Diff

Modified: trunk/base/src/port1.0/portlint.tcl (37980 => 37981)


--- 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