diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/git-ftp.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/git-ftp.rb b/Library/Formula/git-ftp.rb index 3eb2d5e71..4b4e38640 100644 --- a/Library/Formula/git-ftp.rb +++ b/Library/Formula/git-ftp.rb @@ -7,7 +7,15 @@ class GitFtp < Formula head 'https://github.com/git-ftp/git-ftp.git' + option "with-manpage", "build and install the manpage (depends on pandoc)" + + depends_on "pandoc" => :build if build.with? "manpage" + def install system "make", "prefix=#{prefix}", "install" + if build.with? "manpage" + system "make", "-C", "man", "man" + man1.install "man/man1/git-ftp.1" + end end end |
