2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-11 19:13:01 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Lftp < Formula
|
2009-10-20 21:01:32 +00:00
|
|
|
homepage 'http://lftp.yar.ru/'
|
2014-02-25 20:54:08 +00:00
|
|
|
url 'http://lftp.yar.ru/ftp/lftp-4.4.15.tar.bz2'
|
|
|
|
sha1 '3747de76b0ff472bcf1ce353025967cdbcc35cb7'
|
2009-09-11 19:13:01 +00:00
|
|
|
|
2013-11-17 19:15:55 +00:00
|
|
|
option 'with-gnutls', "Use GnuTLS instead of the default OpenSSL"
|
2013-11-22 23:46:44 +00:00
|
|
|
option 'with-brewed-openssl', 'Build with Homebrew OpenSSL instead of the system version'
|
2013-11-17 19:15:55 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-11-11 03:12:26 +00:00
|
|
|
depends_on 'readline'
|
2013-11-17 19:15:55 +00:00
|
|
|
depends_on 'gnutls' => :optional
|
2013-11-22 23:46:44 +00:00
|
|
|
depends_on 'openssl' if build.with? 'brewed-openssl'
|
2009-09-11 19:13:01 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
2013-11-17 19:15:55 +00:00
|
|
|
args = ["--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"]
|
|
|
|
if build.with? 'gnutls'
|
|
|
|
args << "--with-gnutls"
|
|
|
|
else
|
|
|
|
args << "--with-openssl"
|
|
|
|
end
|
|
|
|
system "./configure", *args
|
2009-09-11 19:13:01 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|