homebrew-core/Formula/lftp.rb
Caleb Xu ea3d867c0c lftp 4.9.0
Closes #48675.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
2020-01-07 22:13:31 -05:00

38 lines
1.4 KiB
Ruby

class Lftp < Formula
desc "Sophisticated file transfer program"
homepage "https://lftp.yar.ru/"
url "https://lftp.yar.ru/ftp/lftp-4.9.0.tar.xz"
sha256 "0b3b659e1969a31827a25861c01ccf71ac6d3f20ee256bdf6999d653e031a24e"
bottle do
sha256 "ae15b85b1e7cd7d8f42eacb78f9a231427a4374371c62d5a82ac899b72eeee0e" => :catalina
sha256 "6861fecd8432bb8877144bf61df25f052509d1ffd692b9f72e2bb9d86b542750" => :mojave
sha256 "b45767d676b23b29eab6b820057820adcac582304ea44ac7926060407c63d072" => :sierra
end
depends_on "libidn"
depends_on "openssl@1.1"
depends_on "readline"
def install
# Work around "error: no member named 'fpclassify' in the global namespace"
if MacOS.version == :high_sierra
ENV.delete("HOMEBREW_SDKROOT")
ENV.delete("SDKROOT")
end
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-openssl=#{Formula["openssl@1.1"].opt_prefix}",
"--with-readline=#{Formula["readline"].opt_prefix}",
"--with-libidn=#{Formula["libidn"].opt_prefix}",
# Work around a gnulib issue with macOS Catalina
"gl_cv_func_ftello_works=yes"
system "make", "install"
end
test do
system "#{bin}/lftp", "-c", "open https://ftp.gnu.org/; ls"
end
end