From 4a306f32f468a0dfb1cd0faad861b3773babfa33 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 7 Mar 2012 20:44:19 -0500 Subject: Support bottles for non-Lion OSX versions. --- Library/Homebrew/utils.rb | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'Library/Homebrew/utils.rb') diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index c08887740..f18b908b2 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -264,6 +264,20 @@ module MacOS extend self MACOS_VERSION end + def cat + if mountain_lion? + :mountainlion + elsif lion? + :lion + elsif snow_leopard? + :snowleopard + elsif leopard? + :leopard + else + nil + end + end + def dev_tools_path @dev_tools_path ||= if File.file? "/usr/bin/cc" and File.file? "/usr/bin/make" # probably a safe enough assumption @@ -491,7 +505,7 @@ module MacOS extend self end def bottles_supported? - lion? and HOMEBREW_PREFIX.to_s == '/usr/local' and HOMEBREW_CELLAR.to_s == '/usr/local/Cellar' + HOMEBREW_PREFIX.to_s == '/usr/local' and HOMEBREW_CELLAR.to_s == '/usr/local/Cellar' end end -- cgit v1.2.3