Ignore:
Timestamp:
Aug 22, 2013, 10:22:43 PM (6 years ago)
Author:
raimue@…
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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/xcodeversion-1.0.tcl

    r96776 r109954  
    4747platform macosx {
    4848    pre-extract {
    49         if {![info exists xcodeversion] || $xcodeversion == "none"} {
    50             ui_error "Couldn't determine your Xcode version (from '/usr/bin/xcodebuild -version')."
    51             ui_error ""
    52             ui_error "If you have not installed Xcode, install it now; see:"
    53             ui_error "http://guide.macports.org/chunked/installing.xcode.html"
    54             ui_error ""
    55             return -code error "unable to find Xcode"
    56         }
    5749        foreach {darwin_major minimum_xcodeversion} [join ${minimum_xcodeversions}] {
    5850            if {${darwin_major} == ${os.major}} {
     51                if {![info exists xcodeversion] || $xcodeversion == "none"} {
     52                    ui_error "Couldn't determine your Xcode version (from '/usr/bin/xcodebuild -version')."
     53                    ui_error ""
     54                    ui_error "If you have not installed Xcode, install it now; see:"
     55                    ui_error "http://guide.macports.org/chunked/installing.xcode.html"
     56                    ui_error ""
     57                    return -code error "unable to find Xcode"
     58                }
    5959                if {[vercmp ${xcodeversion} ${minimum_xcodeversion}] < 0} {
    6060                    ui_error "On Mac OS X ${macosx_version}, ${name} ${version} requires Xcode ${minimum_xcodeversion} or later but you have Xcode ${xcodeversion}."
Note: See TracChangeset for help on using the changeset viewer.