diff options
| author | Alex Dunn | 2015-03-12 09:37:29 -0700 |
|---|---|---|
| committer | Tim D. Smith | 2015-03-19 23:58:12 -0700 |
| commit | 5339158f417ac0c79cda61e36decc55431eeda13 (patch) | |
| tree | 6a8c2953bb4e0104b6dd8a2e2c3519ed0dd6df9b /Library/Formula/git-ftp.rb | |
| parent | 8938b53897330e527e20d39a6bd9d7cbcf50b000 (diff) | |
| download | homebrew-5339158f417ac0c79cda61e36decc55431eeda13.tar.bz2 | |
git-ftp 1.0.2
curl dependency required
Closes #37613.
Signed-off-by: Tim D. Smith <git@tim-smith.us>
Diffstat (limited to 'Library/Formula/git-ftp.rb')
| -rw-r--r-- | Library/Formula/git-ftp.rb | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/Library/Formula/git-ftp.rb b/Library/Formula/git-ftp.rb index 2e881accf..2af5b8d5a 100644 --- a/Library/Formula/git-ftp.rb +++ b/Library/Formula/git-ftp.rb @@ -1,11 +1,9 @@ -require 'formula' - class GitFtp < Formula - homepage 'http://git-ftp.github.io/git-ftp' - url 'https://github.com/git-ftp/git-ftp/archive/1.0.1.tar.gz' - sha1 'ee0ff7525a88aafffe7e09b6cb95d6dde6bacf93' + homepage "https://git-ftp.github.io/git-ftp" + url "https://github.com/git-ftp/git-ftp/archive/1.0.2.tar.gz" + sha256 "f488c39bf7784923201c61ece41f40f8e18682e18b13918b0730ad196a11f1f7" - head 'https://github.com/git-ftp/git-ftp.git', :branch => 'develop' + head "https://github.com/git-ftp/git-ftp.git", :branch => "develop" bottle do cellar :any @@ -16,7 +14,7 @@ class GitFtp < Formula option "with-manpage", "build and install the manpage (depends on pandoc)" - depends_on "curl" => [:optional, "with-libssh2"] + depends_on "curl" => "with-libssh2" depends_on "pandoc" => :build if build.with? "manpage" def install @@ -25,5 +23,15 @@ class GitFtp < Formula system "make", "-C", "man", "man" man1.install "man/man1/git-ftp.1" end + libexec.install bin/"git-ftp" + (bin/"git-ftp").write <<-EOS.undent + #!/bin/sh + PATH=#{Formula["curl"].opt_bin}:$PATH + #{libexec}/git-ftp "$@" + EOS + end + + test do + system bin/"git-ftp", "--help" end end |
