diff options
| author | Lucas Hoffmann | 2014-08-23 13:48:25 +0200 |
|---|---|---|
| committer | Jack Nagel | 2014-08-23 23:58:10 -0500 |
| commit | e8a43d8bef486d61303b0b57788ed0b0df8046ff (patch) | |
| tree | f359c83a14337e356b7c1b73a9c6114c906487de /Library/Formula/git-ftp.rb | |
| parent | 6f2ed6252794b0716a8fb4f1f229395523a1dad4 (diff) | |
| download | homebrew-e8a43d8bef486d61303b0b57788ed0b0df8046ff.tar.bz2 | |
git-ftp: add option to install man page
The building of the manpage depends on pandoc.
Closes #31819.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/git-ftp.rb')
| -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 |
