From 6f86a0404aecd88d1ffffd3ce47f574352a7385c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Lundstr=C3=B6m?= Date: Sun, 17 Nov 2013 11:15:55 -0800 Subject: [PATCH] lftp: default to OpenSSL instead of GnuTLS Signed-off-by: Adam Vandenberg --- Formula/lftp.rb | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Formula/lftp.rb b/Formula/lftp.rb index 2db1667ce4c..7c37a9d1b0b 100644 --- a/Formula/lftp.rb +++ b/Formula/lftp.rb @@ -6,17 +6,25 @@ class Lftp < Formula mirror 'ftp://ftp.cs.tu-berlin.de/pub/net/ftp/lftp/lftp-4.4.11.tar.bz2' sha1 '56cefb9aa683acfa5c5713d530f594085ea7b149' + option 'with-gnutls', "Use GnuTLS instead of the default OpenSSL" + depends_on 'pkg-config' => :build depends_on 'readline' - depends_on 'gnutls' + depends_on 'gnutls' => :optional def install # Bus error # TODO what are the more specific circumstances? ENV.no_optimization if MacOS.version <= :leopard - system "./configure", "--disable-dependency-tracking", - "--prefix=#{prefix}" + args = ["--disable-dependency-tracking", + "--prefix=#{prefix}"] + if build.with? 'gnutls' + args << "--with-gnutls" + else + args << "--with-openssl" + end + system "./configure", *args system "make install" end end