aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2016-04-20 14:34:34 -0700
committerMisty De Meo2016-04-21 09:36:31 -0700
commit534d6fd5275a43bd5cc03b1aa19a4a39641a028f (patch)
tree359232ebe43b0851634347adc9ec1b778da07172 /Library
parentf5f41f2079039699c0157b602391d7744fc7222b (diff)
downloadbrew-534d6fd5275a43bd5cc03b1aa19a4a39641a028f.tar.bz2
Move OS::Mac::Xcode.provides_autotools? to compat
Closes #125. Signed-off-by: Misty De Meo <mistydemeo@github.com>
Diffstat (limited to 'Library')
-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