homebrew-core/Formula/git-cola.rb
2018-04-30 01:40:57 -07:00

34 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/v3.1.tar.gz"
sha256 "a7a083f84697a56ee7c910ccfc680d36c5c447c6b5a3522e01bff9de91474f57"
head "https://github.com/git-cola/git-cola.git"
bottle do
cellar :any_skip_relocation
sha256 "c70bd9835ded7710aca43afad0654149fd0d022e4d83eccd874c7c59180d5a3e" => :high_sierra
sha256 "c70bd9835ded7710aca43afad0654149fd0d022e4d83eccd874c7c59180d5a3e" => :sierra
sha256 "c70bd9835ded7710aca43afad0654149fd0d022e4d83eccd874c7c59180d5a3e" => :el_capitan
end
option "with-docs", "Build manpages and HTML docs"
depends_on "pyqt"
depends_on "python"
depends_on "sphinx-doc" => :build if build.with? "docs"
def install
ENV.delete("PYTHONPATH")
system "make", "PYTHON=python3", "prefix=#{prefix}", "install"
if build.with? "docs"
system "make", "install-doc", "PYTHON=python3", "prefix=#{prefix}",
"SPHINXBUILD=#{Formula["sphinx-doc"].opt_bin}/sphinx-build"
end
end
test do
system "#{bin}/git-cola", "--version"
end
end