diff options
| author | Adam Vandenberg | 2010-08-07 21:04:37 -0700 | 
|---|---|---|
| committer | Adam Vandenberg | 2010-08-22 20:11:03 -0700 | 
| commit | 31f1fabd032c7546417c2b5a4e5b874831b32aaa (patch) | |
| tree | afa64652cf90d79c3cb2110e092eabcc5b9f5962 /Library/Formula/rrdtool.rb | |
| parent | 2bc91fd69a3fa7e71d7df245cd07901afa0ed0a7 (diff) | |
| download | homebrew-31f1fabd032c7546417c2b5a4e5b874831b32aaa.tar.bz2 | |
Define "snow_leopard_64?"
snow_leopard_64? (defined in Hardware) is a short-cut for:
  MACOS_VERSION >= 10.6 and Hardware.is_64_bit?
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/rrdtool.rb')
| -rw-r--r-- | Library/Formula/rrdtool.rb | 6 | 
1 files changed, 1 insertions, 5 deletions
diff --git a/Library/Formula/rrdtool.rb b/Library/Formula/rrdtool.rb index cb1eab615..4be02d981 100644 --- a/Library/Formula/rrdtool.rb +++ b/Library/Formula/rrdtool.rb @@ -39,11 +39,7 @@ class Rrdtool <Formula      system "./configure", *args      # Needed to build proper Ruby bundle -    if Hardware.is_64_bit? and MACOS_VERSION >= 10.6 -      ENV["ARCHFLAGS"] = "-arch x86_64" -    else -      ENV["ARCHFLAGS"] = "-arch i386" -    end +    ENV["ARCHFLAGS"] = snow_leopard_64? ? "-arch x86_64" : "-arch i386"      system "make install"      prefix.install "bindings/ruby/test.rb"  | 
