aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMisty De Meo2013-12-02 19:03:20 -0800
committerMisty De Meo2013-12-02 19:06:49 -0800
commitd3ef8977471d832a8e4ade07176e76f1ebaf46dd (patch)
treecfd3274967a29842f2d9a5e76eec523f3caea561 /Library/Formula
parent1d8d270dc14179cb50c0f205414d7b191fa44489 (diff)
downloadhomebrew-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.rb4
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