diff options
| author | Max Howell | 2009-10-04 15:43:04 +0100 |
|---|---|---|
| committer | Max Howell | 2009-10-04 18:36:13 +0100 |
| commit | 43fac25fdeef7ace132cb9f24357d0277c5de654 (patch) | |
| tree | e43ab7bed66023a301f81626a4547cfbec957594 /Library | |
| parent | e6282f10be6d51ecbaf28569b68ba1052a483378 (diff) | |
| download | homebrew-43fac25fdeef7ace132cb9f24357d0277c5de654.tar.bz2 | |
Make Spidermonkey work with Couchdb
I had to remove the THREADSAFE flag to make it work.
Couchdb seems the reason to use Spidermonkey at this point. Without these
changes Couchdb would crash hard when loading the Spidermonkey dylib.
If the threadsafety is required then we should look into making a keg-only
Spidermonkey for Couchdb's personal use.
The nspr dependency isn't documented as required, and doesn't seem to make a
difference if it is removed. So I removed it.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/spidermonkey.rb | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Library/Formula/spidermonkey.rb b/Library/Formula/spidermonkey.rb index e4c0b061b..b54a8132b 100644 --- a/Library/Formula/spidermonkey.rb +++ b/Library/Formula/spidermonkey.rb @@ -1,12 +1,11 @@ require 'brewkit' class Spidermonkey <Formula - @url="http://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz" - @homepage='https://developer.mozilla.org/en/SpiderMonkey' - @md5='5571134c3863686b623ebe4e6b1f6fe6' + url "http://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz" + homepage 'https://developer.mozilla.org/en/SpiderMonkey' + md5 '5571134c3863686b623ebe4e6b1f6fe6' depends_on 'readline' - depends_on 'nspr' def patches DATA @@ -26,9 +25,9 @@ class Spidermonkey <Formula ENV['CFLAGS'] = ENV['CFLAGS'].gsub(/-msse[^\s]+/, '') Dir.chdir "src" do - system "make JS_DIST=#{HOMEBREW_PREFIX} JS_THREADSAFE=1 DEFINES=-DJS_C_STRINGS_ARE_UTF8 -f Makefile.ref" - system "make JS_DIST=#{prefix} -f Makefile.ref export" - system "ranlib #{prefix}/lib/libjs.a" + system "make DEFINES=-DJS_C_STRINGS_ARE_UTF8 -f Makefile.ref" + system "make JS_DIST='#{prefix}' -f Makefile.ref export" + system "ranlib #{lib}/libjs.a" end end end |
