From 6ce35a8a5335231991598ff934e7062ba0ab7e9a Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Sat, 21 Feb 2015 14:14:31 -0500 Subject: mongo-c: add extra steps and deps for HEAD Closes #37032. Signed-off-by: Tim D. Smith --- Library/Formula/mongo-c.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Formula/mongo-c.rb b/Library/Formula/mongo-c.rb index e79b30df5..7be75c1f4 100644 --- a/Library/Formula/mongo-c.rb +++ b/Library/Formula/mongo-c.rb @@ -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 -- cgit v1.2.3