5f0f003c03
Closes #31496. Signed-off-by: Jan Viljanen <jan.a.viljanen@gmail.com>
22 lines
672 B
Ruby
22 lines
672 B
Ruby
class Goenv < Formula
|
|
desc "Go version management"
|
|
homepage "https://github.com/syndbg/goenv"
|
|
url "https://github.com/syndbg/goenv/archive/1.21.0.tar.gz"
|
|
sha256 "e1a286638d25935bed6e6ff02fa1ddfce59f36b80e29966b2e0b728e270fca3c"
|
|
version_scheme 1
|
|
head "https://github.com/syndbg/goenv.git"
|
|
|
|
bottle :unneeded
|
|
|
|
def install
|
|
inreplace "libexec/goenv", "/usr/local", HOMEBREW_PREFIX
|
|
prefix.install Dir["*"]
|
|
%w[goenv-install goenv-uninstall go-build].each do |cmd|
|
|
bin.install_symlink "#{prefix}/plugins/go-build/bin/#{cmd}"
|
|
end
|
|
end
|
|
|
|
test do
|
|
assert_match "Usage: goenv <command> [<args>]", shell_output("#{bin}/goenv help")
|
|
end
|
|
end
|