From d3ef8977471d832a8e4ade07176e76f1ebaf46dd Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Mon, 2 Dec 2013 19:03:20 -0800 Subject: 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 --- Library/Formula/mongodb.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3