mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-27 11:29:53 -05:00
24 lines
653 B
Ruby
24 lines
653 B
Ruby
require 'formula'
|
|
|
|
class Tig < Formula
|
|
homepage 'http://jonas.nitro.dk/tig/'
|
|
head 'https://github.com/jonas/tig.git'
|
|
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 "./autogen.sh" if build.head?
|
|
system "./configure", "--prefix=#{prefix}", "--sysconfdir=#{etc}"
|
|
system "make install"
|
|
system "make install-doc-man" if build.with? "docs"
|
|
bash_completion.install 'contrib/tig-completion.bash'
|
|
end
|
|
end
|