2013-08-23 18:40:56 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class MongoC < Formula
|
|
|
|
homepage 'http://docs.mongodb.org/ecosystem/drivers/c/'
|
2014-01-04 20:24:32 +00:00
|
|
|
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'
|
2013-08-23 18:40:56 +00:00
|
|
|
|
|
|
|
def install
|
2014-01-04 20:24:32 +00:00
|
|
|
# https://github.com/mongodb/mongo-c-driver/issues/5
|
|
|
|
inreplace 'configure', 'enable_libclang=yes', 'enable_libclang=no'
|
|
|
|
system "./configure", "--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
2013-08-23 18:40:56 +00:00
|
|
|
end
|
|
|
|
end
|