homebrew-core/Formula/mongo-c.rb

43 lines
1.2 KiB
Ruby
Raw Normal View History

class MongoC < Formula
desc "Official C driver for MongoDB"
2015-05-15 20:05:53 +00:00
homepage "https://docs.mongodb.org/ecosystem/drivers/c/"
url "https://github.com/mongodb/mongo-c-driver/releases/download/1.1.6/mongo-c-driver-1.1.6.tar.gz"
sha256 "231d0d038c848e8871fa03b70f74284dd8481734eac2bf05fb240e94c9279130"
bottle do
cellar :any
2015-05-20 14:05:42 +00:00
sha256 "6571abb550a8146d222858b7de9caae8380811ccf8846f27f99c4e50effde596" => :yosemite
sha256 "3eb421698b3dd3a4a9ebc0d6a204904e14b8282165e02b539b1618280707d20c" => :mavericks
sha256 "c8bbcc45d57d43297b38632b1890e77613509ae3bd497f84ba18dd6e3e9264ba" => :mountain_lion
end
head do
url "https://github.com/mongodb/mongo-c-driver.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
2014-07-21 02:17:57 +00:00
depends_on "pkg-config" => :build
depends_on "libbson"
depends_on "openssl" => :recommended
def install
2014-10-29 04:09:48 +00:00
# --enable-sasl=no: https://jira.mongodb.org/browse/CDRIVER-447
args = ["--prefix=#{prefix}", "--enable-sasl=no"]
if build.head?
system "./autogen.sh"
end
2015-05-15 20:05:53 +00:00
if build.with?("openssl")
args << "--enable-ssl=yes"
else
args << "--enable-ssl=no"
end
system "./configure", *args
system "make", "install"
end
end