homebrew-core/Formula/vimpager.rb

23 lines
563 B
Ruby
Raw Normal View History

require 'formula'
class Vimpager < Formula
homepage 'https://github.com/rkitover/vimpager'
2014-04-19 15:02:48 +00:00
url 'https://github.com/rkitover/vimpager/archive/1.8.8.tar.gz'
sha1 '69f32e77a64dcd8abea873a7eb05d80b9b6f76b2'
head 'https://github.com/rkitover/vimpager.git'
def install
inreplace 'vimpager.1', '~/bin/', ''
bin.install 'vimcat'
bin.install 'vimpager'
man1.install gzip('vimpager.1')
end
def caveats; <<-EOS.undent
To use vimpager as your default pager, add `export PAGER=vimpager` to your
shell configuration.
EOS
end
end