From 75f1e49027d2fdf1544467eb9f6e0f9685005b36 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Sun, 20 Apr 2014 16:14:37 -0700 Subject: [PATCH] CLT: special case detect_version pre-3.x Fixes mistydemeo/tigerbrew#186. Closes #110. Signed-off-by: Misty De Meo --- Library/Homebrew/os/mac/xcode.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb index 9657073dcc..bb3873687d 100644 --- a/Library/Homebrew/os/mac/xcode.rb +++ b/Library/Homebrew/os/mac/xcode.rb @@ -203,6 +203,10 @@ module OS end def detect_version + # CLT isn't a distinct entity pre-4.3, and pkgutil doesn't exist + # at all on Tiger, so just count it as installed if Xcode is installed + return MacOS::Xcode.version if MacOS::Xcode.installed? && MacOS::Xcode.version < "3.0" + [MAVERICKS_PKG_ID, MAVERICKS_NEW_PKG_ID, STANDALONE_PKG_ID, FROM_XCODE_PKG_ID].find do |id| if MacOS.version >= :mavericks next unless File.exist?("#{MAVERICKS_PKG_PATH}/usr/bin/clang")