diff options
| author | Misty De Meo | 2013-12-02 19:03:20 -0800 |
|---|---|---|
| committer | Misty De Meo | 2013-12-02 19:06:49 -0800 |
| commit | d3ef8977471d832a8e4ade07176e76f1ebaf46dd (patch) | |
| tree | cfd3274967a29842f2d9a5e76eec523f3caea561 /Library/Formula | |
| parent | 1d8d270dc14179cb50c0f205414d7b191fa44489 (diff) | |
| download | homebrew-d3ef8977471d832a8e4ade07176e76f1ebaf46dd.tar.bz2 | |
mongodb: specify Homebrew scons
This fixes an issue where another scons on a user's system was used
in preference to the Homebrew-installed one, breaking the build.
See: https://github.com/mxcl/homebrew/issues/24584#issuecomment-29595430
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mongodb.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Formula/mongodb.rb b/Library/Formula/mongodb.rb index 513c46f28..05b1a537a 100644 --- a/Library/Formula/mongodb.rb +++ b/Library/Formula/mongodb.rb @@ -31,6 +31,8 @@ class Mongodb < Formula # 2.6, but can't be backported to the current stable release. ENV.cxx += ' -stdlib=libstdc++' if ENV.compiler == :clang && MacOS.version >= :mavericks + scons = Formula.factory('scons').opt_prefix/'bin/scons' + args = ["--prefix=#{prefix}", "-j#{ENV.make_jobs}"] args << '--64' if MacOS.prefer_64_bit? args << "--cc=#{ENV.cc}" @@ -41,7 +43,7 @@ class Mongodb < Formula args << "--extrapathdyn=#{Formula.factory('openssl').opt_prefix}" end - system 'scons', 'install', *args + system scons, 'install', *args (prefix+'mongod.conf').write mongodb_conf |
