aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorMike McQuaid2012-03-07 20:44:19 -0500
committerMike McQuaid2012-03-10 18:09:35 +1300
commit4a306f32f468a0dfb1cd0faad861b3773babfa33 (patch)
treef9ba847c6b4bc1b1d8ff4247a625df10d8c6b1db /Library/Homebrew/utils.rb
parent22f908d5206bbc4184ec7686593f1f04b9c9ff2f (diff)
downloadbrew-4a306f32f468a0dfb1cd0faad861b3773babfa33.tar.bz2
Support bottles for non-Lion OSX versions.
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb16
1 files changed, 15 insertions, 1 deletions
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