homebrew-core/Formula/git-cola.rb
2016-10-24 00:14:42 -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/v2.8.tar.gz"
sha256 "9962098bb73c2c13ea32ded01821e447e0c9fbece3d213eaccf6bb02413ccea5"
head "https://github.com/git-cola/git-cola.git"
bottle do
cellar :any_skip_relocation
rebuild 1
sha256 "add4de977eea09355dd42727cde11d8e97fd83039846f84a290411d57689b817" => :sierra
sha256 "add4de977eea09355dd42727cde11d8e97fd83039846f84a290411d57689b817" => :el_capitan
sha256 "add4de977eea09355dd42727cde11d8e97fd83039846f84a290411d57689b817" => :yosemite
end
option "with-docs", "Build manpages and HTML docs"
depends_on "pyqt5"
depends_on :python3
depends_on "sphinx-doc" => :build if build.with? "docs"
def install
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