loudmouth: default to OpenSSL intead of GnuTLS
Closes Homebrew/homebrew#20879. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
6f86a0404a
commit
d8310db0ff
1 changed files with 12 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue