hub: remove gopath
Closes #47817. Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
parent
c7acc64f3d
commit
f165d09713
1 changed files with 5 additions and 9 deletions
|
@ -15,17 +15,13 @@ class Hub < Formula
|
|||
depends_on "go" => :build
|
||||
|
||||
def install
|
||||
ENV["GOPATH"] = buildpath
|
||||
(buildpath/"src/github.com/github/hub").install buildpath.children
|
||||
cd "src/github.com/github/hub" do
|
||||
system "make", "install", "prefix=#{prefix}"
|
||||
system "make", "install", "prefix=#{prefix}"
|
||||
|
||||
prefix.install_metafiles
|
||||
prefix.install_metafiles
|
||||
|
||||
bash_completion.install "etc/hub.bash_completion.sh"
|
||||
zsh_completion.install "etc/hub.zsh_completion" => "_hub"
|
||||
fish_completion.install "etc/hub.fish_completion" => "hub.fish"
|
||||
end
|
||||
bash_completion.install "etc/hub.bash_completion.sh"
|
||||
zsh_completion.install "etc/hub.zsh_completion" => "_hub"
|
||||
fish_completion.install "etc/hub.fish_completion" => "hub.fish"
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in a new issue