homebrew-core/Formula/lftp.rb
2019-01-21 11:05:28 +01:00

30 lines
992 B
Ruby

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 1
bottle do
rebuild 1
sha256 "06caf0dc86f94dd6a0d6c958447580f45cf88c8ef7486b97058d2da06f7cd0f5" => :mojave
sha256 "648b83bad8685a0f265e9a5cc4c47fb8620dcb27100cf09a37bbd1a9133a09a2" => :sierra
end
depends_on "libidn"
depends_on "openssl"
depends_on "readline"
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-openssl=#{Formula["openssl"].opt_prefix}",
"--with-readline=#{Formula["readline"].opt_prefix}",
"--with-libidn=#{Formula["libidn"].opt_prefix}"
system "make", "install"
end
test do
system "#{bin}/lftp", "-c", "open https://ftp.gnu.org/; ls"
end
end