[109954] trunk/dports/_resources/port1.0/group/xcodeversion-1.0.tcl

raimue at macports.org raimue at macports.org
Thu Aug 22 15:22:43 PDT 2013


Revision: 109954
          https://trac.macports.org/changeset/109954
Author:   raimue at macports.org
Date:     2013-08-22 15:22:43 -0700 (Thu, 22 Aug 2013)
Log Message:
-----------
group/xcodeversion-1.0:
Only complain about missing xcodeversion variable if it is actually required.
This allows building ports using this port group even when Xcode is not
installed.

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/xcodeversion-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/xcodeversion-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/xcodeversion-1.0.tcl	2013-08-22 20:56:04 UTC (rev 109953)
+++ trunk/dports/_resources/port1.0/group/xcodeversion-1.0.tcl	2013-08-22 22:22:43 UTC (rev 109954)
@@ -46,16 +46,16 @@
 
 platform macosx {
     pre-extract {
-        if {![info exists xcodeversion] || $xcodeversion == "none"} {
-            ui_error "Couldn't determine your Xcode version (from '/usr/bin/xcodebuild -version')."
-            ui_error ""
-            ui_error "If you have not installed Xcode, install it now; see:"
-            ui_error "http://guide.macports.org/chunked/installing.xcode.html"
-            ui_error ""
-            return -code error "unable to find Xcode"
-        }
         foreach {darwin_major minimum_xcodeversion} [join ${minimum_xcodeversions}] {
             if {${darwin_major} == ${os.major}} {
+                if {![info exists xcodeversion] || $xcodeversion == "none"} {
+                    ui_error "Couldn't determine your Xcode version (from '/usr/bin/xcodebuild -version')."
+                    ui_error ""
+                    ui_error "If you have not installed Xcode, install it now; see:"
+                    ui_error "http://guide.macports.org/chunked/installing.xcode.html"
+                    ui_error ""
+                    return -code error "unable to find Xcode"
+                }
                 if {[vercmp ${xcodeversion} ${minimum_xcodeversion}] < 0} {
                     ui_error "On Mac OS X ${macosx_version}, ${name} ${version} requires Xcode ${minimum_xcodeversion} or later but you have Xcode ${xcodeversion}."
                     ui_error "See http://guide.macports.org/chunked/installing.xcode.html for download links."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130822/d8e4b6ec/attachment-0001.html>


More information about the macports-changes mailing list