aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/nspr.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2011-04-08 11:16:37 -0700
committerAdam Vandenberg2011-04-09 09:36:30 -0700
commitb782d9da90d561638d9697a98d99faaa61b64453 (patch)
tree402c7460717df2d37ce48c61960b121fb74941a5 /Library/Formula/nspr.rb
parentb5b6da2c6c27b9784808329c2c9b45f1976647a9 (diff)
downloadhomebrew-b782d9da90d561638d9697a98d99faaa61b64453.tar.bz2
Normalize use of MACOS_VERSION
Diffstat (limited to 'Library/Formula/nspr.rb')
-rw-r--r--Library/Formula/nspr.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/nspr.rb b/Library/Formula/nspr.rb
index 9ab75df65..24ac8b152 100644
--- a/Library/Formula/nspr.rb
+++ b/Library/Formula/nspr.rb
@@ -10,7 +10,7 @@ class Nspr < Formula
Dir.chdir "mozilla/nsprpub" do
# Fixes a bug with linking against CoreFoundation, needed to work with SpiderMonkey
# See: http://openradar.appspot.com/7209349
- target_frameworks = (Hardware.is_32_bit? or MACOS_VERSION == 10.5) ? "-framework Carbon" : ""
+ target_frameworks = (Hardware.is_32_bit? or MacOS.leopard?) ? "-framework Carbon" : ""
inreplace "pr/src/Makefile.in", "-framework CoreServices -framework CoreFoundation", target_frameworks
args = ["--prefix=#{prefix}", "--disable-debug", "--enable-strip", "--enable-optimize"]