From 534d6fd5275a43bd5cc03b1aa19a4a39641a028f Mon Sep 17 00:00:00 2001 From: Misty De Meo <mistydemeo@github.com> Date: Wed, 20 Apr 2016 14:34:34 -0700 Subject: [PATCH] Move OS::Mac::Xcode.provides_autotools? to compat Closes #125. Signed-off-by: Misty De Meo <mistydemeo@github.com> --- Library/Homebrew/compat.rb | 1 + Library/Homebrew/compat/xcode.rb | 11 +++++++++++ Library/Homebrew/os/mac/xcode.rb | 4 ---- 3 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 Library/Homebrew/compat/xcode.rb diff --git a/Library/Homebrew/compat.rb b/Library/Homebrew/compat.rb index 4bfe7174b1..4893ff5ec0 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 0000000000..3dd7f021cb --- /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 bb3873687d..f6447fbc82 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 -- GitLab