homebrew-core/Formula/lftp.rb
Jack Nagel 53473b6bf5 Clean up MacOS version method usage
The MacOS.version? family of methods (other than "leopard?") are poorly
defined and lead to confusing code. Replace them in formulae with more
explicit comparisons.

"MacOS.version" is a special version object that can be compared to
numerics, symbols, and strings using the standard Ruby comparison
methods.

The old methods were moved to compat when the version comparison code
was merged, and they must remain there "forever", but they should not be
used in new code.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-10 16:16:54 -05:00

19 lines
475 B
Ruby

require 'formula'
class Lftp < Formula
homepage 'http://lftp.yar.ru/'
url 'http://ftp.yars.free.net/pub/source/lftp/lftp-4.3.8.tar.bz2'
sha1 '6e3b8165fa89781533f4af7350f62eb670ab26fe'
depends_on 'pkg-config' => :build
depends_on 'readline'
depends_on 'gnutls'
def install
# Bus error
ENV.no_optimization if MacOS.version == :leopard
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
end
end