2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-08-01 04:39:48 +00:00
|
|
|
|
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/'
|
2013-09-30 19:01:23 +00:00
|
|
|
url 'http://jonas.nitro.dk/tig/releases/tig-1.2.1.tar.gz'
|
|
|
|
sha1 '5755bae7342debf94ef33973e0eaff6207e623dc'
|
|
|
|
|
2013-10-14 15:34:25 +00:00
|
|
|
option 'with-docs', 'Build man pages using asciidoc and xmlto'
|
|
|
|
|
|
|
|
if build.with? "docs"
|
|
|
|
depends_on "asciidoc"
|
|
|
|
depends_on "xmlto"
|
|
|
|
end
|
2009-08-01 04:39:48 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-17 07:15:50 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--sysconfdir=#{etc}"
|
2009-08-01 04:39:48 +00:00
|
|
|
system "make install"
|
2013-10-14 15:34:25 +00:00
|
|
|
|
|
|
|
if build.with? "docs"
|
|
|
|
system "make install-doc-man"
|
|
|
|
end
|
2011-10-26 13:52:04 +00:00
|
|
|
|
2013-05-03 18:03:31 +00:00
|
|
|
bash_completion.install 'contrib/tig-completion.bash'
|
2009-08-01 04:39:48 +00:00
|
|
|
end
|
2010-06-25 13:47:14 +00:00
|
|
|
end
|