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
|
2016-02-07 08:07:27 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
revision 2
|
|
|
|
sha256 "e2d0bc29c2f4b7eaf706955002ba1e88634aa4f2c0e0461b9d22b00e66da2734" => :el_capitan
|
|
|
|
sha256 "553daabe8b4a839ce8f6403e78770d2fcb7773da9ac6b617a64e34bb52c3f70b" => :yosemite
|
|
|
|
sha256 "541e522a0ccc06c007bed65b12ac60cd3db1e84c284aa878daecc24d628c17bf" => :mavericks
|
2014-04-29 14:40:09 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
option "without-completions", "Disable bash/zsh completions"
|
|
|
|
|
2016-02-07 07:35:34 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
|
2014-04-29 14:40:09 +00:00
|
|
|
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
|