ghr: remove gopath
Closes #47780. Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
parent
a9d3a2cfc6
commit
57124c2825
1 changed files with 5 additions and 11 deletions
|
@ -12,21 +12,15 @@ class Ghr < Formula
|
|||
sha256 "3d96e05a7cc1bb89e910845db0f6ed80175f8f77c31adc0938a5716414296fad" => :sierra
|
||||
end
|
||||
|
||||
depends_on "dep" => :build
|
||||
depends_on "go" => :build
|
||||
|
||||
def install
|
||||
ENV["GOPATH"] = buildpath
|
||||
dir = buildpath/"src/github.com/tcnksm/ghr"
|
||||
dir.install Dir["*"]
|
||||
cd dir do
|
||||
# Avoid running `go get`
|
||||
inreplace "Makefile", "go get ${u} -d", ""
|
||||
# Avoid running `go get`
|
||||
inreplace "Makefile", "go get ${u} -d", ""
|
||||
|
||||
system "make", "build"
|
||||
bin.install "bin/ghr" => "ghr"
|
||||
prefix.install_metafiles
|
||||
end
|
||||
system "make", "build"
|
||||
bin.install "bin/ghr" => "ghr"
|
||||
prefix.install_metafiles
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in a new issue