aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mongo-c.rb13
1 files changed, 9 insertions, 4 deletions
diff --git a/Library/Formula/mongo-c.rb b/Library/Formula/mongo-c.rb
index 3feadc80c..c18447834 100644
--- a/Library/Formula/mongo-c.rb
+++ b/Library/Formula/mongo-c.rb
@@ -2,11 +2,16 @@ require 'formula'
class MongoC < Formula
homepage 'http://docs.mongodb.org/ecosystem/drivers/c/'
- url 'https://github.com/mongodb/mongo-c-driver/archive/v0.8.1.zip'
- sha1 '38ae6a6273bbf11e24f696a65a3ea3901e456126'
+ url 'https://github.com/mongodb/mongo-c-driver/releases/download/0.90.0/libmongoc-0.90.0.tar.gz'
+ sha1 '15e552b04f3e124fb80e1397e80ddb46fbf36a46'
+
+ depends_on 'pkg-config' => :build
+ depends_on 'libbson'
def install
- system "make"
- system "make", "install", "DESTDIR=", "PREFIX=#{prefix}"
+ # https://github.com/mongodb/mongo-c-driver/issues/5
+ inreplace 'configure', 'enable_libclang=yes', 'enable_libclang=no'
+ system "./configure", "--prefix=#{prefix}"
+ system "make", "install"
end
end