[84908] trunk/base/src
snc at macports.org
snc at macports.org
Tue Oct 4 08:00:37 PDT 2011
Revision: 84908
http://trac.macports.org/changeset/84908
Author: snc at macports.org
Date: 2011-10-04 08:00:36 -0700 (Tue, 04 Oct 2011)
Log Message:
-----------
base: check for AppStore's Xcode Installer
Modified Paths:
--------------
trunk/base/src/macports1.0/macports.tcl
trunk/base/src/port1.0/portutil.tcl
Modified: trunk/base/src/macports1.0/macports.tcl
===================================================================
--- trunk/base/src/macports1.0/macports.tcl 2011-10-04 14:47:13 UTC (rev 84907)
+++ trunk/base/src/macports1.0/macports.tcl 2011-10-04 15:00:36 UTC (rev 84908)
@@ -44,7 +44,7 @@
portdbpath libpath binpath auto_path extra_env sources_conf prefix portdbformat \
portarchivetype portautoclean \
porttrace portverbose keeplogs destroot_umask variants_conf rsync_server rsync_options \
- rsync_dir startupitem_type place_worksymlink xcodeversion xcodebuildcmd \
+ rsync_dir startupitem_type place_worksymlink xcodeversion xcodebuildcmd xcodeinstaller \
mp_remote_url mp_remote_submit_url configureccache ccache_dir ccache_size configuredistcc configurepipe buildnicevalue buildmakejobs \
applications_dir frameworks_dir developer_dir universal_archs build_arch macosx_deployment_target \
macportsuser proxy_override_env proxy_http proxy_https proxy_ftp proxy_rsync proxy_skip \
@@ -358,12 +358,14 @@
proc macports::setxcodeinfo {name1 name2 op} {
global macports::xcodeversion
global macports::xcodebuildcmd
+ global macports::xcodeinstaller
trace remove variable macports::xcodeversion read macports::setxcodeinfo
trace remove variable macports::xcodebuildcmd read macports::setxcodeinfo
if {[catch {set xcodebuild [binaryInPath "xcodebuild"]}] == 0} {
if {![info exists xcodeversion]} {
+ set macports::xcodeinstaller [file exists "/Applications/Install\ XCode.app"]
# Determine xcode version
set macports::xcodeversion "2.0orlower"
if {[catch {set xcodebuildversion [exec -- $xcodebuild -version 2> /dev/null]}] == 0} {
Modified: trunk/base/src/port1.0/portutil.tcl
===================================================================
--- trunk/base/src/port1.0/portutil.tcl 2011-10-04 14:47:13 UTC (rev 84907)
+++ trunk/base/src/port1.0/portutil.tcl 2011-10-04 15:00:36 UTC (rev 84908)
@@ -2726,7 +2726,7 @@
# check if the installed xcode version is new enough
proc _check_xcode_version {} {
- global os.subplatform macosx_version xcodeversion
+ global os.subplatform macosx_version xcodeversion xcodeinstaller
if {${os.subplatform} == "macosx"} {
switch $macosx_version {
@@ -2753,6 +2753,9 @@
}
if {$xcodeversion == "none"} {
ui_warn "Xcode does not appear to be installed; most ports will likely fail to build."
+ if {$xcodeinstaller} {
+ ui_warn "If you downloaded Xcode through the AppStore you must run \"Install Xcode\" in your /Applications folder."
+ }
} elseif {[vercmp $xcodeversion $min] < 0} {
ui_error "The installed version of Xcode (${xcodeversion}) is too old to use on the installed OS version. Version $rec or later is recommended on Mac OS X ${macosx_version}."
return 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111004/3e0f01ac/attachment.html>
More information about the macports-changes
mailing list