SM 1.8.5 is not compatible with CouchDB, which is one of the
primary reasons why SM gets installed via Homebrew.
Reverting SM to the previous version and updated the checksum.
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
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.
The latest 1.9.3x builds of SpiderMonkey are not compatible with CouchDB,
and presumably other software that depends on an older SpiderMonkey API.
Revert SpiderMonkey to the previous version, but update the version to
reflect what that revision actually is.
* Use a stable tarball on Google Code instead of an hg revision
* Update to 1.9.3 to stop getting compile errors on 64-bit OS X
* autoconf 2.1.3 apparently no longer needed
Seeing as it's only SpiderMonkey that requires this specific version of Autoconf, lets not keep it around needlessly when it's also just a build dependency.
Needed to avoid a bug in OS X when a library was linked against
CoreFoundation without having it initialized in the main thread.
http://openradar.appspot.com/7209349
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.
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.
Signed-off-by: Max Howell <max@methylblue.com>
I squashed a number of commits here, and also replaced the use of nspr.prefix with HOMEBREW_PREFIX as in theory we are flexible with our requirement for dependencies, although with the limited build system that SpiderMonkey possesses this is difficult for us to achieve anyway…