loudmouth: default to OpenSSL intead of GnuTLS

Closes Homebrew/homebrew#20879.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Simon Lundström 2013-11-17 11:16:07 -08:00 committed by Adam Vandenberg
parent 6f86a0404a
commit d8310db0ff

View file

@ -6,9 +6,11 @@ class Loudmouth < Formula
version '1.5.0.20121201'
sha1 '502963c3068f7033bb21d788918c1e5cd14f386e'
option 'with-gnutls', "Use GnuTLS instead of the default OpenSSL"
depends_on 'pkg-config' => :build
depends_on 'glib'
depends_on 'gnutls'
depends_on 'gnutls' => :optional
depends_on 'libidn'
# Fix compilation on 10.9. Sent upstream:
@ -16,9 +18,15 @@ class Loudmouth < Formula
def patches; DATA; end
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
args = ["--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"]
if build.with? 'gnutls'
args << "--with-ssl=gnutls"
else
args << "--with-ssl=openssl"
end
system "./configure", *args
system "make install"
end
end