homebrew-core/Formula/tig.rb

26 lines
586 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Tig < Formula
2009-11-21 17:53:14 +00:00
homepage 'http://jonas.nitro.dk/tig/'
url 'http://jonas.nitro.dk/tig/releases/tig-1.2.1.tar.gz'
sha1 '5755bae7342debf94ef33973e0eaff6207e623dc'
option 'with-docs', 'Build man pages using asciidoc and xmlto'
if build.with? "docs"
depends_on "asciidoc"
depends_on "xmlto"
end
def install
system "./configure", "--prefix=#{prefix}", "--sysconfdir=#{etc}"
system "make install"
if build.with? "docs"
system "make install-doc-man"
end
2013-05-03 18:03:31 +00:00
bash_completion.install 'contrib/tig-completion.bash'
end
end