diff options
| author | Jack Nagel | 2014-05-23 15:21:36 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-23 15:24:59 -0500 |
| commit | 43362ff1b190a0db701991e6670d4f8657cda827 (patch) | |
| tree | cf617b8c0c08a9f32dabc1bdae9df09c8a6c23f7 /Library | |
| parent | 580cab6e4d921f332e768bdd9a4d8a407c787b5c (diff) | |
| download | homebrew-43362ff1b190a0db701991e6670d4f8657cda827.tar.bz2 | |
lftp 4.5.0
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/lftp.rb | 35 |
1 files changed, 11 insertions, 24 deletions
diff --git a/Library/Formula/lftp.rb b/Library/Formula/lftp.rb index e7c6d5daf..dd552de90 100644 --- a/Library/Formula/lftp.rb +++ b/Library/Formula/lftp.rb @@ -1,31 +1,18 @@ -require 'formula' +require "formula" class Lftp < Formula - homepage 'http://lftp.yar.ru/' - url 'http://lftp.yar.ru/ftp/lftp-4.4.16.tar.bz2' - sha1 '958997ea8ac6a7b5fb20084518a5cbb61b6be1bb' + homepage "http://lftp.yar.ru/" + url "http://lftp.yar.ru/ftp/lftp-4.5.0.tar.xz" + sha1 "467bca46cff63d9d1391d74d45f1d96e04a652be" - 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' + depends_on "pkg-config" => :build + depends_on "readline" + depends_on "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" + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}", + "--with-openssl=#{Formula["openssl"].opt_prefix}" + system "make", "install" end end |
