[103027] trunk/base/src/port1.0/portbuild.tcl

larryv at macports.org larryv at macports.org
Mon Feb 11 23:11:38 PST 2013


Revision: 103027
          https://trac.macports.org/changeset/103027
Author:   larryv at macports.org
Date:     2013-02-11 23:11:38 -0800 (Mon, 11 Feb 2013)
Log Message:
-----------
portbuild.tcl: Access options in callback with "option" proc, for consistency.

Modified Paths:
--------------
    trunk/base/src/port1.0/portbuild.tcl

Modified: trunk/base/src/port1.0/portbuild.tcl
===================================================================
--- trunk/base/src/port1.0/portbuild.tcl	2013-02-12 07:06:48 UTC (rev 103026)
+++ trunk/base/src/port1.0/portbuild.tcl	2013-02-12 07:11:38 UTC (rev 103027)
@@ -66,9 +66,9 @@
 # ${build.type} == bsd, ensures bsdmake is present by adding a bin:-style
 # dependency.
 proc portbuild::add_automatic_buildsystem_dependencies {} {
-    global build.type build.cmd os.platform
-
-    if {${build.type} == "bsd" && ${os.platform} == "darwin" && [string match "*bsdmake*" ${build.cmd}]} {
+    if {[option build.type] == "bsd" && [option os.platform] == "darwin" &&
+        [string match "*bsdmake*" [option build.cmd]]
+    } then {
         ui_debug "build.type is BSD, adding bin:bsdmake:bsdmake build dependency"
         depends_build-delete bin:bsdmake:bsdmake
         depends_build-append bin:bsdmake:bsdmake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130211/a46159f6/attachment.html>


More information about the macports-changes mailing list