diff options
| author | Jonathon Klobucar | 2013-12-01 14:27:49 -0800 |
|---|---|---|
| committer | Jack Nagel | 2013-12-01 20:08:52 -0600 |
| commit | 578926f8f99ee09ba1ee0589018e136d94c6a68c (patch) | |
| tree | 5e8339e7029dc652b38e01d3b79c2a2b5d2d2bf9 /Library/Formula | |
| parent | 9d48cc819df1cba527a3a429842fde8b44e4e292 (diff) | |
| download | homebrew-578926f8f99ee09ba1ee0589018e136d94c6a68c.tar.bz2 | |
go 1.2
Closes #24853.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/go.rb | 78 |
1 files changed, 9 insertions, 69 deletions
diff --git a/Library/Formula/go.rb b/Library/Formula/go.rb index 951a73c9e..26fc08ed3 100644 --- a/Library/Formula/go.rb +++ b/Library/Formula/go.rb @@ -3,39 +3,14 @@ require 'formula' class Go < Formula homepage 'http://golang.org' head 'https://go.googlecode.com/hg/' - url 'https://go.googlecode.com/files/go1.1.2.src.tar.gz' - version '1.1.2' - sha1 'f5ab02bbfb0281b6c19520f44f7bc26f9da563fb' - - bottle do - sha1 '491bb29bddb72b0e612a09985626e9dcd5b2cccf' => :mountain_lion - sha1 '74fcdfacb0f7c50df509202bac6f853fe00d1457' => :lion - sha1 '0ff1f95940509cae6545f92cf4776aed14e36100' => :snow_leopard - end + url 'https://go.googlecode.com/files/go1.2.src.tar.gz' + version '1.2' + sha1 '7dd2408d40471aeb30a9e0b502c6717b5bf383a5' option 'cross-compile-all', "Build the cross-compilers and runtime support for all supported platforms" option 'cross-compile-common', "Build the cross-compilers and runtime support for darwin, linux and windows" option 'without-cgo', "Build without cgo" - devel do - url 'https://go.googlecode.com/files/go1.2rc5.src.tar.gz' - version '1.2rc5' - sha1 'f0cc813715d06a8e2febd580e126b7489b6a945d' - end - - if build.with? 'cgo' and not build.devel? - depends_on 'apple-gcc42' if MacOS.version >= :mountain_lion - - fails_with :clang do - cause "clang: error: no such file or directory: 'libgcc.a'" - end - end - - # Upstream patch for a switch statement that causes a clang error - # Should be in the next release. - # http://code.google.com/p/go/source/detail?r=000ecca1178d67c9b482d3fb0b6a1bc4aeef2472&path=/src/cmd/ld/lib.c - def patches; DATA; end if build.stable? - def install # install the completion scripts bash_completion.install 'misc/bash/go' => 'go-completion.bash' @@ -94,19 +69,14 @@ class Go < Formula when $GOPATH and $GOROOT are set to the same value. More information here: http://golang.org/doc/code.html#GOPATH - EOS - if build.devel? - changelog += <<-EOS.undent + In go 1.2 go vet and go doc are now part of the go.tools sub repo. + see: http://golang.org/doc/go1.2#go_tools_godoc - In go 1.2 go vet and go doc are now part of the go.tools sub repo. - see: http://tip.golang.org/doc/go1.2#go_tools_godoc - - To get go vet and go doc run: - $ go get code.google.com/p/go.tools/cmd/godoc - $ go get code.google.com/p/go.tools/cmd/vet - EOS - end + To get go vet and go doc run: + $ go get code.google.com/p/go.tools/cmd/godoc + $ go get code.google.com/p/go.tools/cmd/vet + EOS return changelog end @@ -126,33 +96,3 @@ class Go < Formula assert_equal "Hello World\n", `#{bin}/go run hello.go` end end - -__END__ -# HG changeset patch -# User Dave Cheney <dave@cheney.net> -# Date 1373336072 18000 -# Mon Jul 08 21:14:32 2013 -0500 -# Node ID 000ecca1178d67c9b482d3fb0b6a1bc4aeef2472 -# Parent 02b673333fab068d9e12106c01748c2d23682bac -cmd/ld: trivial: fix unhandled switch case - -Fix warning found by clang 3.3. - -R=rsc, r -CC=golang-dev -https://codereview.appspot.com/11022043 - -diff -r 02b673333fab -r 000ecca1178d src/cmd/ld/lib.c ---- a/src/cmd/ld/lib.c Tue Jul 09 11:12:05 2013 +1000 -+++ b/src/cmd/ld/lib.c Mon Jul 08 21:14:32 2013 -0500 -@@ -665,6 +665,9 @@ - case '6': - argv[argc++] = "-m64"; - break; -+ case '5': -+ // nothing required for arm -+ break; - } - if(!debug['s'] && !debug_s) { - argv[argc++] = "-gdwarf-2"; - |
