979ac9bc9e
Closes Homebrew/homebrew#28513. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
34 lines
784 B
Ruby
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
|