aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorSimon Lundström2013-11-17 11:15:55 -0800
committerAdam Vandenberg2013-11-17 11:17:54 -0800
commite2c84e80a4986ae2ad12ba6401554ce61a0c68c2 (patch)
tree8f03c4b9dc166d06e59698a3f74e932ecf222ba9 /Library/Formula
parentf165d6b005ad5956cd4d85a02de6587f445557d8 (diff)
downloadhomebrew-e2c84e80a4986ae2ad12ba6401554ce61a0c68c2.tar.bz2
lftp: default to OpenSSL instead of GnuTLS
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/lftp.rb14
1 files changed, 11 insertions, 3 deletions
diff --git a/Library/Formula/lftp.rb b/Library/Formula/lftp.rb
index 2db1667ce..7c37a9d1b 100644
--- a/Library/Formula/lftp.rb
+++ b/Library/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