2012-02-09 22:30:45 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GitFtp < Formula
|
2013-12-01 14:27:35 +00:00
|
|
|
homepage 'http://git-ftp.github.io/git-ftp'
|
|
|
|
url 'https://github.com/git-ftp/git-ftp/archive/0.9.0.tar.gz'
|
|
|
|
sha1 '37116c868b5fdd58136896b43542afdf3af71530'
|
2012-02-27 10:23:39 +00:00
|
|
|
|
2013-06-28 14:03:32 +00:00
|
|
|
head 'https://github.com/git-ftp/git-ftp.git'
|
2012-02-09 22:30:45 +00:00
|
|
|
|
2014-08-23 11:48:25 +00:00
|
|
|
option "with-manpage", "build and install the manpage (depends on pandoc)"
|
|
|
|
|
|
|
|
depends_on "pandoc" => :build if build.with? "manpage"
|
|
|
|
|
2012-02-09 22:30:45 +00:00
|
|
|
def install
|
|
|
|
system "make", "prefix=#{prefix}", "install"
|
2014-08-23 11:48:25 +00:00
|
|
|
if build.with? "manpage"
|
|
|
|
system "make", "-C", "man", "man"
|
|
|
|
man1.install "man/man1/git-ftp.1"
|
|
|
|
end
|
2012-02-09 22:30:45 +00:00
|
|
|
end
|
|
|
|
end
|