54 lines
2 KiB
Ruby
54 lines
2 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"
|
|
revision 3
|
|
head "https://github.com/git-ftp/git-ftp.git", :branch => "develop"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "ad2bc34727cc42e6cd7bbb82f95bbcfe4fa715efe8e090bcd1d9c71ddbe31b89" => :mojave
|
|
sha256 "fea10bb50037716d6b50933119e8c496f74cb188e94811114516ad1f579c7e4e" => :high_sierra
|
|
sha256 "a07c7e4ae57c95f718de94600a270f0d4377f7b0476ebc59d59e895abf55cdd8" => :sierra
|
|
sha256 "ceb3c1d012fd3d196d72a45c131eea5edb0013757830700011d4228d0c25174d" => :el_capitan
|
|
end
|
|
|
|
depends_on "pandoc" => :build
|
|
depends_on "libssh2"
|
|
|
|
resource "curl" do
|
|
url "https://curl.haxx.se/download/curl-7.61.1.tar.bz2"
|
|
mirror "https://curl.askapache.com/download/curl-7.61.1.tar.bz2"
|
|
sha256 "a308377dbc9a16b2e994abd55455e5f9edca4e31666f8f8fcfe7a1a4aea419b9"
|
|
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
|