2014-04-29 14:40:09 +00:00
|
|
|
class Gh < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "GitHub command-line client"
|
2014-04-29 14:40:09 +00:00
|
|
|
homepage "https://github.com/jingweno/gh"
|
|
|
|
url "https://github.com/jingweno/gh/archive/v2.1.0.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "3435c95e78c71589c983e2cafa8948e1abf73aaa033e7fb9d891c052ce25f4f3"
|
2014-04-29 14:40:09 +00:00
|
|
|
head "https://github.com/jingweno/gh.git"
|
|
|
|
|
|
|
|
bottle do
|
2015-02-20 15:36:58 +00:00
|
|
|
cellar :any
|
2014-08-09 15:43:45 +00:00
|
|
|
revision 1
|
2014-10-06 10:50:54 +00:00
|
|
|
sha1 "2f7d94e9d932fa8a275b097c1756c8827511de17" => :yosemite
|
2014-08-09 15:43:45 +00:00
|
|
|
sha1 "bac12bb9f1b776a10eab9d7b3fd859f4fb459a23" => :mavericks
|
|
|
|
sha1 "9706eaf67eed09dc7e1267afed043c32c67c4ca1" => :mountain_lion
|
|
|
|
sha1 "3f46e4ee7a3e2d63e514f057e9dd8e116b3c18e2" => :lion
|
2014-04-29 14:40:09 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
depends_on "go" => :build
|
|
|
|
|
|
|
|
option "without-completions", "Disable bash/zsh completions"
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "script/make", "--no-update"
|
|
|
|
bin.install "gh"
|
2014-08-09 15:35:47 +00:00
|
|
|
man1.install "man/gh.1"
|
2014-04-29 14:40:09 +00:00
|
|
|
|
|
|
|
if build.with? "completions"
|
|
|
|
bash_completion.install "etc/gh.bash_completion.sh"
|
|
|
|
zsh_completion.install "etc/gh.zsh_completion" => "_gh"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
HOMEBREW_REPOSITORY.cd do
|
2014-12-27 16:00:50 +00:00
|
|
|
assert_equal "bin/brew", `#{bin}/gh ls-files -- bin`.strip
|
2014-04-29 14:40:09 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|