homebrew-core/Formula/git-ftp.rb
2018-01-24 06:19:59 -08:00

52 lines
1.9 KiB
Ruby

class GitFtp < Formula
desc "Git-powered FTP client"
homepage "https://git-ftp.github.io/"
url "https://github.com/git-ftp/git-ftp/archive/1.4.0.tar.gz"
sha256 "080e9385a9470d70a5a2a569c6e7db814902ffed873a77bec9d0084bcbc3e054"
revision 4
head "https://github.com/git-ftp/git-ftp.git", :branch => "develop"
bottle do
cellar :any
sha256 "7ff70e524c733e26ce81bfd48a9ca3649d85185807b47c9326e1079ba7887a4b" => :high_sierra
sha256 "72ffe2eda0be67c9417322b50e94272c451fdd338ca9518ad47f6b19afae7219" => :sierra
sha256 "a3b41550ed4038f1e6f0ae13d2f2269395ef544a19adeadeec5506104d760474" => :el_capitan
end
depends_on "pandoc" => :build
depends_on "libssh2"
resource "curl" do
url "https://curl.haxx.se/download/curl-7.58.0.tar.bz2"
mirror "https://curl.askapache.com/download/curl-7.58.0.tar.bz2"
sha256 "1cb081f97807c01e3ed747b6e1c9fee7a01cb10048f1cd0b5f56cfe0209de731"
end
def install
resource("curl").stage do
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{libexec}",
"--with-darwinssl",
"--without-ca-bundle",
"--without-ca-path",
"--with-libssh2",
"--without-libmetalink",
"--without-gssapi",
"--without-librtmp",
"--disable-ares"
system "make", "install"
end
system "make", "prefix=#{prefix}", "install"
system "make", "-C", "man", "man"
man1.install "man/git-ftp.1"
(libexec/"bin").install bin/"git-ftp"
(bin/"git-ftp").write_env_script(libexec/"bin/git-ftp", :PATH => "#{libexec}/bin:$PATH")
end
test do
system bin/"git-ftp", "--help"
end
end