homebrew-core/Formula/vimpager.rb
Shaun Jackman 6318389f6b vimpager 2.04
The man pages have been replaced with Markdown.
The man pages can be built from the Markdown with "make docs",
but requires pandoc.

Closes Homebrew/homebrew#40109.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
2015-05-28 21:53:58 -07:00

24 lines
813 B
Ruby

class Vimpager < Formula
homepage "https://github.com/rkitover/vimpager"
desc "vimpager: Use Vim as PAGER"
url "https://github.com/rkitover/vimpager/archive/2.04.tar.gz"
sha256 "eefbfe178ea03be3df8bbad82ba162797ab8fb49c994b4b240d513cd0c3ef3f0"
head "https://github.com/rkitover/vimpager.git"
option "with-pandoc", "Use pandoc to build and install man pages"
depends_on "pandoc" => [:build, :optional]
def install
system "make", "docs" if build.with? "pandoc"
bin.install "vimcat"
bin.install "vimpager"
doc.install "README.md", "vimcat.md", "vimpager.md"
man1.install "vimcat.1", "vimpager.1" if build.with? "pandoc"
end
def caveats; <<-EOS.undent
To use vimpager as your default pager, add `export PAGER=vimpager` to your
shell configuration.
EOS
end
end