blob: ba192bf2f1fb59a76f1a3bca5ace174f1f064282 (
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
32
33
34
|
require 'formula'
class Libmongoclient < Formula
homepage 'http://www.mongodb.org'
url 'https://github.com/mongodb/mongo-cxx-driver/archive/legacy-0.0-26compat-2.6.0.tar.gz'
sha1 '16489b9afb506bf30e514152af7b5a49bbdb2486'
head 'https://github.com/mongodb/mongo-cxx-driver.git', :branch => "26compat"
depends_on 'scons' => :build
depends_on 'boost' => :build
def install
boost = Formula["boost"].opt_prefix
args = [
"--prefix=#{prefix}",
"-j#{ENV.make_jobs}",
"--cc=#{ENV.cc}",
"--cxx=#{ENV.cxx}",
"--extrapath=#{boost}",
"--full",
"--use-system-all",
"--sharedclient"
]
if MacOS.version >= :mavericks
args << "--osx-version-min=10.8"
args << "--libc++"
end
scons *args
end
end
|