class Lftp < Formula desc "Sophisticated file transfer program" homepage "https://lftp.yar.ru/" url "https://lftp.yar.ru/ftp/lftp-4.8.4.tar.xz" sha256 "4ebc271e9e5cea84a683375a0f7e91086e5dac90c5d51bb3f169f75386107a62" revision 2 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 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