aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/macos.rb
diff options
context:
space:
mode:
authorMisty De Meo2013-03-17 13:30:12 -0500
committerMisty De Meo2013-03-23 13:40:18 -0500
commit2476801613a293d7810c5faf2e3383a653b1389c (patch)
tree1b86ee2f82286aa45d325b4768a37eedbc7b4889 /Library/Homebrew/macos.rb
parent21f566b662e1643da1ee9baf1ee8f3eb5293c019 (diff)
downloadbrew-2476801613a293d7810c5faf2e3383a653b1389c.tar.bz2
Hardware: separate out CPU values into CPU module
* CPU functions now exist in Hardware::CPU * Added compatibility functions in compat/hardware_compat.rb * Names are less specific to Mac hardware, e.g. CPU.family instead of Hardware.intel_family * Hardware::CPU.family works for both Intel and PowerPC * New helper methods on CPU, like .sse4? and .altivec? Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library/Homebrew/macos.rb')
-rw-r--r--Library/Homebrew/macos.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb
index e94ba62c9..e073eb07e 100644
--- a/Library/Homebrew/macos.rb
+++ b/Library/Homebrew/macos.rb
@@ -9,6 +9,9 @@ module MacOS extend self
end
def cat
+ # PowerPC builds per processor, not per OS
+ return Hardware::CPU.family if Hardware::CPU.type == :ppc
+
if version == :mountain_lion then :mountain_lion
elsif version == :lion then :lion
elsif version == :snow_leopard