aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorTyler Brock2015-02-21 00:03:15 -0500
committerMike McQuaid2015-02-21 18:38:02 +0000
commit33fe584478533e86d6f688e683f2aeb14486533e (patch)
treee09d7976674d04403d13cfb9835ad0cc7723433a /Library/Formula
parent77c6e1b5ec8e3b7e1b914fd5e4f2d10db7273ef7 (diff)
downloadhomebrew-33fe584478533e86d6f688e683f2aeb14486533e.tar.bz2
mongo-c: make openssl recommended
Closes #37013. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mongo-c.rb12
1 files changed, 10 insertions, 2 deletions
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