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/'
|
2013-06-05 02:08:56 +00:00
|
|
|
url 'http://ftp.yar.ru/pub/source/lftp/lftp-4.4.8.tar.bz2'
|
|
|
|
mirror 'ftp://ftp.cs.tu-berlin.de/pub/net/ftp/lftp/lftp-4.4.8.tar.bz2'
|
|
|
|
sha1 'c825849d90b8132ed43ea5b73fdbb6a63f3e44de'
|
2009-09-11 19:13:01 +00:00
|
|
|
|
2013-06-09 15:36:01 +00:00
|
|
|
# https://github.com/mxcl/homebrew/issues/18749
|
|
|
|
env :std
|
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-11-11 03:12:26 +00:00
|
|
|
depends_on 'readline'
|
2010-01-05 17:41:09 +00:00
|
|
|
depends_on 'gnutls'
|
2009-09-11 19:13:01 +00:00
|
|
|
|
2013-06-15 18:48:54 +00:00
|
|
|
# Hotfix for compiling on Snow Leopard; check if still needed in next release
|
|
|
|
# https://github.com/mxcl/homebrew/pull/20435
|
|
|
|
# http://comments.gmane.org/gmane.network.lftp.user/2253
|
|
|
|
def patches
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
2009-09-11 19:13:01 +00:00
|
|
|
def install
|
2010-02-08 17:01:50 +00:00
|
|
|
# Bus error
|
2012-09-05 04:04:01 +00:00
|
|
|
ENV.no_optimization if MacOS.version == :leopard
|
2010-02-08 17:01:50 +00:00
|
|
|
|
2013-02-01 17:05:33 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2009-09-11 19:13:01 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2013-06-15 18:48:54 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/src/buffer_zlib.cc b/src/buffer_zlib.cc
|
|
|
|
index 2ceaee9..ef79e6f 100644
|
|
|
|
--- a/src/buffer_zlib.cc
|
|
|
|
+++ b/src/buffer_zlib.cc
|
|
|
|
@@ -87,5 +87,5 @@ DataInflator::~DataInflator()
|
|
|
|
}
|
|
|
|
void DataInflator::ResetTranslation()
|
|
|
|
{
|
|
|
|
- z_err = inflateReset2(&z, 16+MAX_WBITS);
|
|
|
|
+ z_err = inflateReset(&z);
|
|
|
|
}
|