aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/nspr.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-07 21:04:37 -0700
committerAdam Vandenberg2010-08-22 20:11:03 -0700
commit31f1fabd032c7546417c2b5a4e5b874831b32aaa (patch)
treeafa64652cf90d79c3cb2110e092eabcc5b9f5962 /Library/Formula/nspr.rb
parent2bc91fd69a3fa7e71d7df245cd07901afa0ed0a7 (diff)
downloadhomebrew-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/nspr.rb')
-rw-r--r--Library/Formula/nspr.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/nspr.rb b/Library/Formula/nspr.rb
index 33a1c8605..f7a827076 100644
--- a/Library/Formula/nspr.rb
+++ b/Library/Formula/nspr.rb
@@ -13,9 +13,9 @@ class Nspr <Formula
target_frameworks = Hardware.is_32_bit? ? "-framework Carbon" : ""
inreplace "pr/src/Makefile.in", "-framework CoreServices -framework CoreFoundation", target_frameworks
- conf = ["--prefix=#{prefix}", "--disable-debug", "--enable-strip", "--enable-optimize"]
- conf << "--enable-64bit" if Hardware.is_64_bit? and MACOS_VERSION >= 10.6
- system "./configure", *conf
+ args = ["--prefix=#{prefix}", "--disable-debug", "--enable-strip", "--enable-optimize"]
+ args << "--enable-64bit" if snow_leopard_64?
+ system "./configure", *args
# Remove the broken (for anyone but Firefox) install_name
inreplace "config/autoconf.mk", "-install_name @executable_path/$@ ", ""