54 lines
1.9 KiB
Ruby
54 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.2.tar.gz"
|
|
sha256 "a6bf52f6f1d30c4d8f52fd0fbd61dc9f32e66099e3e9c4994bec65094305605b"
|
|
head "https://github.com/git-ftp/git-ftp.git", :branch => "develop"
|
|
|
|
bottle do
|
|
cellar :any
|
|
rebuild 1
|
|
sha256 "18ee331150260d506bd251040a44e193b2ba465f0c0309432804d800f029e1c1" => :mojave
|
|
sha256 "4774f0b5928275dad5d77e0374829fdf93b7c56e4a7cf8ea9bb44a750ff8e9cd" => :high_sierra
|
|
sha256 "a1fab3f3590f66260a76fc494d4688d9e01be9d29e9c01cbf136aec176406c6a" => :sierra
|
|
end
|
|
|
|
depends_on "pandoc" => :build
|
|
depends_on "libssh2"
|
|
uses_from_macos "zlib"
|
|
|
|
resource "curl" do
|
|
url "https://curl.haxx.se/download/curl-7.62.0.tar.bz2"
|
|
mirror "https://curl.askapache.com/download/curl-7.62.0.tar.bz2"
|
|
sha256 "7802c54076500be500b171fde786258579d60547a3a35b8c5a23d8c88e8f9620"
|
|
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
|