homebrew-core/Formula/lftp.rb
nihilistcat 7724fb32e8 lftp 4.4.14
Closes Homebrew/homebrew#25507.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-12-28 11:31:15 +00:00

31 lines
875 B
Ruby

require 'formula'
class Lftp < Formula
homepage 'http://lftp.yar.ru/'
url 'http://lftp.yar.ru/ftp/lftp-4.4.14.tar.bz2'
sha1 'f34cfc0351f8e63a066cf8014ac32a52f5159434'
option 'with-gnutls', "Use GnuTLS instead of the default OpenSSL"
option 'with-brewed-openssl', 'Build with Homebrew OpenSSL instead of the system version'
depends_on 'pkg-config' => :build
depends_on 'readline'
depends_on 'gnutls' => :optional
depends_on 'openssl' if build.with? 'brewed-openssl'
def install
# Bus error
# TODO what are the more specific circumstances?
ENV.no_optimization if MacOS.version <= :leopard
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