From 33fe584478533e86d6f688e683f2aeb14486533e Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Sat, 21 Feb 2015 00:03:15 -0500 Subject: mongo-c: make openssl recommended Closes #37013. Signed-off-by: Mike McQuaid --- Library/Formula/mongo-c.rb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/mongo-c.rb b/Library/Formula/mongo-c.rb index 2498d519d..e79b30df5 100644 --- a/Library/Formula/mongo-c.rb +++ b/Library/Formula/mongo-c.rb @@ -16,11 +16,19 @@ class MongoC < Formula depends_on "pkg-config" => :build depends_on "libbson" - depends_on "openssl" + depends_on "openssl" => :recommended def install # --enable-sasl=no: https://jira.mongodb.org/browse/CDRIVER-447 - system "./configure", "--prefix=#{prefix}", "--enable-sasl=no" + args = ["--prefix=#{prefix}", "--enable-sasl=no"] + + if build.with?('openssl') + args << "--enable-ssl=yes" + else + args << "--enable-ssl=no" + end + + system "./configure", *args system "make", "install" end end -- cgit v1.2.3