Permalink
Browse files

mongo-c: make openssl recommended

Closes Homebrew/legacy-homebrew#37013.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information...
TylerBrock authored and MikeMcQuaid committed Feb 21, 2015
1 parent 981a5b4 commit adc9683d55ff4a0d6e40cd948f62d88e7d64ac3a
Showing with 10 additions and 2 deletions.
  1. +10 −2 Formula/mongo-c.rb
View
@@ -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

0 comments on commit adc9683

Please sign in to comment.