From 456d3e73fcfa44c2d0df266b002172af9b3c6add Mon Sep 17 00:00:00 2001 From: Clemens Gruber Date: Fri, 14 Jun 2013 16:44:30 +0200 Subject: [PATCH 1/2] better way to fix the mavericks usr/include problem, thanks to @samueljohn --- Library/Homebrew/superenv/macsystem.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/superenv/macsystem.rb b/Library/Homebrew/superenv/macsystem.rb index 7d2a7880f81f..f21a82c903a3 100644 --- a/Library/Homebrew/superenv/macsystem.rb +++ b/Library/Homebrew/superenv/macsystem.rb @@ -1,7 +1,7 @@ # new code because I don't really trust the Xcode code now having researched it more module MacSystem extend self def xcode_clt_installed? - File.executable? "/usr/bin/clang" and File.executable? "/usr/bin/lldb" and File.executable? "/usr/bin/make" + File.executable? "/usr/bin/clang" and File.executable? "/usr/bin/lldb" and File.executable? "/usr/bin/make" and File.directory?("/usr/include") end def xcode43_without_clt? From 41a2f85be6936988a5ec29bea0dbaeb3c264378f Mon Sep 17 00:00:00 2001 From: Clemens Gruber Date: Fri, 14 Jun 2013 17:10:49 +0200 Subject: [PATCH 2/2] improve code style --- Library/Homebrew/superenv/macsystem.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/superenv/macsystem.rb b/Library/Homebrew/superenv/macsystem.rb index f21a82c903a3..577e49432710 100644 --- a/Library/Homebrew/superenv/macsystem.rb +++ b/Library/Homebrew/superenv/macsystem.rb @@ -1,7 +1,8 @@ # new code because I don't really trust the Xcode code now having researched it more module MacSystem extend self def xcode_clt_installed? - File.executable? "/usr/bin/clang" and File.executable? "/usr/bin/lldb" and File.executable? "/usr/bin/make" and File.directory?("/usr/include") + File.executable? "/usr/bin/clang" and File.executable? "/usr/bin/lldb" and + File.executable? "/usr/bin/make" and File.directory? "/usr/include" end def xcode43_without_clt?