From e8a43d8bef486d61303b0b57788ed0b0df8046ff Mon Sep 17 00:00:00 2001 From: Lucas Hoffmann Date: Sat, 23 Aug 2014 13:48:25 +0200 Subject: git-ftp: add option to install man page The building of the manpage depends on pandoc. Closes #31819. Signed-off-by: Jack Nagel --- Library/Formula/git-ftp.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Library/Formula') 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 -- cgit v1.2.3