homebrew-core/Formula/git-ftp.rb
2018-03-28 12:23:50 +02:00

53 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 6
head "https://github.com/git-ftp/git-ftp.git", :branch => "develop"
bottle do
cellar :any
sha256 "89d545d5215ce51748b7fc256626a2944030b6d60360cbeb32dea99a148eca22" => :high_sierra
sha256 "d6b2b2590cb153007dcb36e0e13968f23ba81553cf51c9687d4283d3ce5a32b6" => :sierra
sha256 "d6499eb2817bd56eb0b482b47969d02092016235c613f57c775dc6202b9bd123" => :el_capitan
end
depends_on "pandoc" => :build
depends_on "libssh2"
resource "curl" do
url "https://curl.haxx.se/download/curl-7.59.0.tar.bz2"
mirror "https://curl.askapache.com/download/curl-7.59.0.tar.bz2"
sha256 "b5920ffd6a8c95585fb95070e0ced38322790cb335c39d0dab852d12e157b5a0"
end
def install
resource("curl").stage do
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{libexec}",
"--disable-ares",
"--with-darwinssl",
"--with-libssh2",
"--without-brotli",
"--without-ca-bundle",
"--without-ca-path",
"--without-gssapi",
"--without-libmetalink",
"--without-librtmp"
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