aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/lftp.rb
blob: cb01cb8e26aa26a395265fb7d64d2291f3315ed0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
require 'formula'

class Lftp < Formula
  homepage 'http://lftp.yar.ru/'
  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'

  # https://github.com/mxcl/homebrew/issues/18749
  env :std

  depends_on 'pkg-config' => :build
  depends_on 'readline'
  depends_on 'gnutls'

  # 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

  def install
    # Bus error
    ENV.no_optimization if MacOS.version == :leopard

    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end
end

__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);
 }