homebrew-core/Formula/goenv.rb

23 lines
671 B
Ruby
Raw Normal View History

2016-11-12 10:35:24 +00:00
class Goenv < Formula
desc "Go version management"
homepage "https://github.com/syndbg/goenv"
2017-03-19 12:06:36 +00:00
url "https://github.com/syndbg/goenv/archive/1.0.0.tar.gz"
sha256 "5eac938fc76951e6d3a618bc2ba0832524c5b583dcaeda73be74b9315bf18e0c"
version_scheme 1
2016-11-12 10:35:24 +00:00
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")
2016-11-12 10:35:24 +00:00
end
end