homebrew-core/Formula/app-engine-go-64.rb
Tom Payne 688ee73bdf go-app-engine-64 1.9.46
Closes #6631.

Signed-off-by: Baptiste Fontaine <b@ptistefontaine.fr>
2016-11-05 14:27:55 +01:00

27 lines
953 B
Ruby

class AppEngineGo64 < Formula
desc "Google App Engine SDK for Go (AMD64)"
homepage "https://cloud.google.com/appengine/docs/go/"
url "https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_darwin_amd64-1.9.46.zip"
sha256 "7d5853df653d5ca7b9e6093fbc90f82277c72dbc3c26f3ff2b97da285a75925b"
bottle :unneeded
conflicts_with "app-engine-go-32",
:because => "both install the same binaries"
conflicts_with "app-engine-python",
:because => "both install the same binaries"
def install
pkgshare.install Dir["*"]
%w[
api_server.py appcfg.py bulkloader.py bulkload_client.py dev_appserver.py download_appstats.py goapp
].each do |fn|
bin.install_symlink pkgshare/fn
end
(pkgshare/"goroot/pkg").install_symlink pkgshare/"goroot/pkg/darwin_amd64_appengine" => "darwin_amd64"
end
test do
assert_match(/^usage: goapp serve/, shell_output("#{bin}/goapp help serve").strip)
end
end