aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/compat.rb1
-rw-r--r--Library/Homebrew/compat/xcode.rb11
-rw-r--r--Library/Homebrew/os/mac/xcode.rb4
3 files changed, 12 insertions, 4 deletions
diff --git a/Library/Homebrew/compat.rb b/Library/Homebrew/compat.rb
index 4bfe7174b..4893ff5ec 100644
--- a/Library/Homebrew/compat.rb
+++ b/Library/Homebrew/compat.rb
@@ -13,3 +13,4 @@ require "compat/keg"
require "compat/pathname"
require "compat/dependency_collector"
require "compat/language/haskell"
+require "compat/xcode"
diff --git a/Library/Homebrew/compat/xcode.rb b/Library/Homebrew/compat/xcode.rb
new file mode 100644
index 000000000..3dd7f021c
--- /dev/null
+++ b/Library/Homebrew/compat/xcode.rb
@@ -0,0 +1,11 @@
+module OS
+ module Mac
+ module Xcode
+ extend self
+
+ def provides_autotools?
+ version < "4.3"
+ end
+ end
+ end
+end
diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb
index bb3873687..f6447fbc8 100644
--- a/Library/Homebrew/os/mac/xcode.rb
+++ b/Library/Homebrew/os/mac/xcode.rb
@@ -138,10 +138,6 @@ module OS
end
end
- def provides_autotools?
- version < "4.3"
- end
-
def provides_gcc?
version < "4.3"
end