homebrew-core/Formula/libmongoclient.rb
Kevin Locke 986ba1020f libmongoclient 2.6.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-05-06 08:41:12 -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.1.tar.gz'
sha1 'a45e66d5182ede6b3a0f5bd5e020ebeb48dbddbe'
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