2017-02-03 09:45:11 +00:00
|
|
|
class Lftp < Formula
|
|
|
|
desc "Sophisticated file transfer program"
|
|
|
|
homepage "https://lftp.tech"
|
2017-02-24 13:34:00 +00:00
|
|
|
url "https://lftp.yar.ru/ftp/lftp-4.7.6.tar.bz2"
|
|
|
|
mirror "ftp://ftp.st.ryukoku.ac.jp/pub/network/ftp/lftp/lftp-4.7.6.tar.bz2"
|
|
|
|
sha256 "6b46389e9c2e67af9029a783806facea4c8f0b4d6adca5c1088e948d2fd68ae7"
|
2017-02-03 09:45:11 +00:00
|
|
|
|
2017-02-06 09:43:05 +00:00
|
|
|
bottle do
|
2017-02-24 13:40:45 +00:00
|
|
|
sha256 "ce6de0c8cad4501507b47457b9fcaa08048f82db0ed4ea6ad42a5901f6aecffe" => :sierra
|
|
|
|
sha256 "ea3c52aa05979ca8e68ca44dd94d61c6f91a040df90fb64ddc52e5f92c2c7a95" => :el_capitan
|
|
|
|
sha256 "049f0d2fb6a75d4ae7d4a9b02242cc286307d11b23793793879a2644263d7268" => :yosemite
|
2017-02-06 09:43:05 +00:00
|
|
|
end
|
|
|
|
|
2017-02-03 09:45:11 +00:00
|
|
|
depends_on "readline"
|
|
|
|
depends_on "openssl"
|
|
|
|
depends_on "libidn"
|
|
|
|
|
|
|
|
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 ftp://ftp.gnu.org/; ls"
|
|
|
|
end
|
|
|
|
end
|