homebrew-core/Formula/libmongoclient.rb
Jacob Jewell 979ac9bc9e libmongoclient 2.6.0
Closes Homebrew/homebrew#28513.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-04-18 18:20:25 -07:00

34 lines
784 B
Ruby

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