mongo-c: add extra steps and deps for HEAD

Closes Homebrew/homebrew#37032.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
This commit is contained in:
Tyler Brock 2015-02-21 14:14:31 -05:00 committed by Tim D. Smith
parent 43fc2bda4b
commit b546c2894e

View file

@ -12,7 +12,12 @@ class MongoC < Formula
sha1 "b547c663729e6ec4944462c8d305643dd83d452f" => :mountain_lion
end
head "https://github.com/mongodb/mongo-c-driver.git"
head do
url "https://github.com/mongodb/mongo-c-driver.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
depends_on "pkg-config" => :build
depends_on "libbson"
@ -22,6 +27,10 @@ class MongoC < Formula
# --enable-sasl=no: https://jira.mongodb.org/browse/CDRIVER-447
args = ["--prefix=#{prefix}", "--enable-sasl=no"]
if build.head?
system "./autogen.sh"
end
if build.with?('openssl')
args << "--enable-ssl=yes"
else