diff options
| author | Tyler Brock | 2015-02-21 14:14:31 -0500 |
|---|---|---|
| committer | Tim D. Smith | 2015-02-21 11:34:16 -0800 |
| commit | 6ce35a8a5335231991598ff934e7062ba0ab7e9a (patch) | |
| tree | 77e40c201023eeb868f50080f13ae6ddd15bab83 /Library | |
| parent | 55d1744e6cb6f9c9ce5156c60b8411780ad3f1bc (diff) | |
| download | homebrew-6ce35a8a5335231991598ff934e7062ba0ab7e9a.tar.bz2 | |
mongo-c: add extra steps and deps for HEAD
Closes #37032.
Signed-off-by: Tim D. Smith <git@tim-smith.us>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/mongo-c.rb | 11 |
1 files changed, 10 insertions, 1 deletions
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 |
