aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJacob Appelbaum2013-02-23 08:00:27 +0000
committerMike McQuaid2013-02-23 08:00:27 +0000
commit35b0414670cc73c4050f911c89fc1602fa6a1d40 (patch)
tree3e03439bb04cfa65595ade9d1deb5fe03b7adad3 /Library/Formula
parentab98f9d0e71888fa1ce020d9e072434cf097ae57 (diff)
downloadhomebrew-35b0414670cc73c4050f911c89fc1602fa6a1d40.tar.bz2
go: fix --HEAD build and use https for HEAD hg.
Closes #18030. Closes #17913. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/go.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/Library/Formula/go.rb b/Library/Formula/go.rb
index 9a9b0052b..2c52e7ffe 100644
--- a/Library/Formula/go.rb
+++ b/Library/Formula/go.rb
@@ -5,14 +5,20 @@ class Go < Formula
url 'http://go.googlecode.com/files/go1.0.3.src.tar.gz'
version '1.0.3'
sha1 '1a67293c10d6c06c633c078a7ca67e98c8b58471'
-
- head 'http://go.googlecode.com/hg/'
+ head 'https://go.googlecode.com/hg/'
skip_clean 'bin'
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"
+ if build.head?
+ fails_with :clang do
+ build 425
+ cause "clang: error: no such file or directory: 'libgcc.a'"
+ end
+ end
+
def install
# install the completion scripts
(prefix/'etc/bash_completion.d').install 'misc/bash/go' => 'go-completion.bash'