Update nspr to 4.8.4

master
Adam Vandenberg 2010-04-08 15:12:57 -07:00
parent 4f19151f67
commit 55da512ca9
1 changed files with 6 additions and 5 deletions

View File

@ -1,18 +1,19 @@
require 'formula'
class Nspr <Formula
url 'http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.7.6/src/nspr-4.7.6.tar.gz'
url 'http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.8.4/src/nspr-4.8.4.tar.gz'
homepage 'http://www.mozilla.org/projects/nspr/'
md5 'c78384602b4b466081a55025446641db'
md5 'a85bdbe1eb646aa32c785a37d8e3a2f5'
def install
require 'hardware'
ENV.deparallelize
Dir.chdir "mozilla/nsprpub" do
# Fixes a bug with linking against CoreFoundation.
# See: http://openradar.appspot.com/7209349
# Needed to work with SpiderMonkey
inreplace "pr/src/Makefile.in", "-framework CoreServices -framework CoreFoundation", ""
conf = %W[--prefix=#{prefix} --disable-debug --enable-strip --enable-optimize]
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