52 lines
1.9 KiB
Ruby
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.5.1.tar.gz"
|
|
sha256 "8cca25e1f718b987ea22ec05c7d72522f21cacedd00a8a0e827f87cd68e101f0"
|
|
head "https://github.com/git-ftp/git-ftp.git", :branch => "develop"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "b66de80a7b46540e47dc31e76174235a044842e8997a46d511844a51c7eefeca" => :high_sierra
|
|
sha256 "53ca6ca39f35080441a6e6cc71ad5ab47ef86cf0d1f2d0d396cf6ff6a3be387c" => :sierra
|
|
sha256 "890d7fdd38f2b6b4e7b71145064a416192e9e67d7582b9e7e4cc077d219b8c1c" => :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
|