aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-08-06 19:24:19 -0500
committerJack Nagel2013-08-06 19:24:19 -0500
commit8a14b91d0180749c6cb1961e289b705b6cf863b8 (patch)
treef1a28b6cbcccd7a6125cd19f52b9ec7ce57ce4df /Library
parent397ccc99687444dcc870738d832fa36f4ebf27cc (diff)
downloadbrew-8a14b91d0180749c6cb1961e289b705b6cf863b8.tar.bz2
MacSystem now just wraps MacOS
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/superenv/macsystem.rb13
1 files changed, 5 insertions, 8 deletions
diff --git a/Library/Homebrew/superenv/macsystem.rb b/Library/Homebrew/superenv/macsystem.rb
index bf0956462..7dbb4794a 100644
--- a/Library/Homebrew/superenv/macsystem.rb
+++ b/Library/Homebrew/superenv/macsystem.rb
@@ -1,10 +1,8 @@
-# new code because I don't really trust the Xcode code now having researched it more
-module MacSystem extend self
+module MacSystem
+ extend self
+
def xcode_clt_installed?
- # TODO: handle 10.9 CLT which has headers under:
- # /Library/Developer/CommandLineTools/usr/include
- File.executable? "/usr/bin/clang" and File.executable? "/usr/bin/lldb" and
- File.executable? "/usr/bin/make" and File.directory? "/usr/include"
+ MacOS::CLT.installed?
end
def xcode43_without_clt?
@@ -12,7 +10,6 @@ module MacSystem extend self
end
def x11_prefix
- @x11_prefix ||= %W[/opt/X11 /usr/X11
- #{MacOS.sdk_path}/usr/X11].find{|path| File.directory? "#{path}/include" }
+ MacOS::X11.prefix
end
end