aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorLucas Hoffmann2014-08-23 13:48:25 +0200
committerJack Nagel2014-08-23 23:58:10 -0500
commite8a43d8bef486d61303b0b57788ed0b0df8046ff (patch)
treef359c83a14337e356b7c1b73a9c6114c906487de /Library
parent6f2ed6252794b0716a8fb4f1f229395523a1dad4 (diff)
downloadhomebrew-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')
-rw-r--r--Library/Formula/git-ftp.rb8
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