blob: 05e938706c08d88788dc8a5deaae109767d49486 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
require 'formula'
class Libmongoclient < Formula
homepage 'http://www.mongodb.org'
url 'http://fastdl.mongodb.org/src/mongodb-src-r2.5.3.tar.gz'
sha1 '8fbd7f6f2a55092ae0e461ee0f5a4a7f738d40c9'
head 'https://github.com/mongodb/mongo.git'
depends_on 'scons' => :build
depends_on 'boost' => :build
def install
args = [
"--prefix=#{prefix}",
"-j#{ENV.make_jobs}",
"--cc=#{ENV.cc}",
"--cxx=#{ENV.cxx}",
"--full",
"--use-system-all",
"--sharedclient"
]
if MacOS.version >= :mavericks
args << "--osx-version-min=10.8"
args << "--libc++"
end
system 'scons', 'install-mongoclient', *args
end
end
|