95884bae22
Closes Homebrew/homebrew#42407. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
39 lines
1.1 KiB
Ruby
39 lines
1.1 KiB
Ruby
class GitCola < Formula
|
|
desc "Highly caffeinated git GUI"
|
|
homepage "https://git-cola.github.io/"
|
|
url "https://github.com/git-cola/git-cola/archive/v2.1.0.tar.gz"
|
|
sha256 "1a443b270d5a710c60d00b51ccdef7e324a587e0e5e2b5ac9856a1a3d1ec878b"
|
|
|
|
head "https://github.com/git-cola/git-cola.git"
|
|
|
|
bottle do
|
|
sha1 "fc7b0c0eeed41bb42764a25b8b229f39b3dc4fb3" => :yosemite
|
|
sha1 "1f7e728856585487951f48b9e612cf628e112ac8" => :mavericks
|
|
sha1 "864bafa798ff86c6213238a6c9922549aee94a95" => :mountain_lion
|
|
end
|
|
|
|
option "with-docs", "Build man pages using asciidoc and xmlto"
|
|
|
|
depends_on "pyqt"
|
|
|
|
if build.with? "docs"
|
|
# these are needed to build man pages
|
|
depends_on "asciidoc"
|
|
depends_on "xmlto"
|
|
end
|
|
|
|
def install
|
|
system "make", "prefix=#{prefix}", "install"
|
|
|
|
if build.with? "docs"
|
|
system "make", "-C", "share/doc/git-cola",
|
|
"-f", "Makefile.asciidoc",
|
|
"prefix=#{prefix}",
|
|
"install", "install-html"
|
|
end
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/git-cola", "--version"
|
|
end
|
|
end
|