From 31f1fabd032c7546417c2b5a4e5b874831b32aaa Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 7 Aug 2010 21:04:37 -0700 Subject: 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 --- Library/Formula/ruby-odbc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Formula/ruby-odbc.rb') diff --git a/Library/Formula/ruby-odbc.rb b/Library/Formula/ruby-odbc.rb index d0ddcba3d..e20217c18 100644 --- a/Library/Formula/ruby-odbc.rb +++ b/Library/Formula/ruby-odbc.rb @@ -19,7 +19,7 @@ class RubyOdbc < Formula s.change_make_var! "prefix", prefix s.change_make_var! "sitearchdir", lib - if Hardware.is_64_bit? and MACOS_VERSION >= 10.6 + if snow_leopard_64? # ruby-odbc still chooses iODBC over unixODBC (even with --with-odbc-dir) # apparently because unixODBC is compiled for only x86_64 and ruby-odbc # and iODBC are both i386 and x86_64. The solution (which works for me on Snow Leopard) -- cgit v1.2.3