homebrew-core/Formula/lftp.rb

32 lines
875 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Lftp < Formula
2009-10-20 21:01:32 +00:00
homepage 'http://lftp.yar.ru/'
url 'http://lftp.yar.ru/ftp/lftp-4.4.15.tar.bz2'
sha1 '3747de76b0ff472bcf1ce353025967cdbcc35cb7'
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
2010-02-08 17:01:50 +00:00
# Bus error
2013-07-10 02:30:15 +00:00
# TODO what are the more specific circumstances?
ENV.no_optimization if MacOS.version <= :leopard
2010-02-08 17:01:50 +00:00
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