2013-11-13 17:11:21 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libmongoclient < Formula
|
|
|
|
homepage 'http://www.mongodb.org'
|
2013-12-05 14:15:40 +00:00
|
|
|
url 'http://fastdl.mongodb.org/src/mongodb-src-r2.5.4.tar.gz'
|
|
|
|
sha1 'ad40b93c9638178cd487c80502084ac3a9472270'
|
2013-11-13 17:11:21 +00:00
|
|
|
|
|
|
|
head 'https://github.com/mongodb/mongo.git'
|
|
|
|
|
|
|
|
depends_on 'scons' => :build
|
|
|
|
depends_on 'boost' => :build
|
|
|
|
|
|
|
|
def install
|
2014-02-26 04:50:50 +00:00
|
|
|
boost = Formula["boost"].opt_prefix
|
2013-12-06 04:08:13 +00:00
|
|
|
|
2013-11-13 17:11:21 +00:00
|
|
|
args = [
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"-j#{ENV.make_jobs}",
|
|
|
|
"--cc=#{ENV.cc}",
|
|
|
|
"--cxx=#{ENV.cxx}",
|
2013-12-18 15:42:33 +00:00
|
|
|
"--extrapath=#{boost}",
|
2013-11-13 17:11:21 +00:00
|
|
|
"--full",
|
|
|
|
"--use-system-all",
|
|
|
|
"--sharedclient"
|
|
|
|
]
|
|
|
|
|
|
|
|
if MacOS.version >= :mavericks
|
|
|
|
args << "--osx-version-min=10.8"
|
|
|
|
args << "--libc++"
|
|
|
|
end
|
|
|
|
|
2014-02-26 04:50:50 +00:00
|
|
|
scons "install-mongoclient", *args
|
2013-11-13 17:11:21 +00:00
|
|
|
end
|
|
|
|
end
|