aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/spidermonkey.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2010-07-01 09:44:27 -0700
committerAdam Vandenberg2010-07-01 09:44:27 -0700
commit2c6c855f139ed95fb9e4a5c5c02bea5107cfb89f (patch)
tree4ea5d53eca68da9573ac243f25c105873712fa0f /Library/Formula/spidermonkey.rb
parenteada5e41a6216c8b46830d403bd82c814e43cf92 (diff)
downloadhomebrew-2c6c855f139ed95fb9e4a5c5c02bea5107cfb89f.tar.bz2
Patch Spidermonkey to export 2 date functions used by MongoDB.
When compiling MongoDB from source, it relies on 2 date functions which are not exported in the version of SpiderMonkey provided by Homebrew. Homebrew itself uses binary MongoDB installs, but we include this patch to allow manual compiles of MondoDB.
Diffstat (limited to 'Library/Formula/spidermonkey.rb')
-rw-r--r--Library/Formula/spidermonkey.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/Library/Formula/spidermonkey.rb b/Library/Formula/spidermonkey.rb
index a2f0e8a28..5b172b617 100644
--- a/Library/Formula/spidermonkey.rb
+++ b/Library/Formula/spidermonkey.rb
@@ -2,8 +2,7 @@ require 'formula'
class Spidermonkey <Formula
# There are no proper releases of spidermonkey, so pick a version that's known
- # to work (especially with CouchDB).
- # revision: r35345
+ # to work (especially with CouchDB), revision r35345.
url 'http://hg.mozilla.org/tracemonkey/archive/57a6ad20eae9.tar.gz'
homepage 'https://developer.mozilla.org/en/SpiderMonkey'
md5 '2d8cf22da82b30c36f47675a8486a3f3'
@@ -12,6 +11,12 @@ class Spidermonkey <Formula
depends_on 'readline'
depends_on 'nspr'
+ def patches
+ # Export date functions needed by manually-compiled MongoDB.
+ # Is it just me or is the version-to-version stable API of SpiderMonkey kind of a mess?
+ "http://gist.github.com/raw/426476/a98a15a94ca4efd3aeafb3b5cd943491b53cbf81/001-Properly-export-js_DateClass-and-js_RegExpClass.patch"
+ end
+
def install
if MACOS_VERSION == 10.5
# aparently this flag causes the build to fail for ivanvc on 10.5 with a