aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-08-10 21:41:49 -0500
committerJack Nagel2013-08-10 22:02:01 -0500
commita856447998abfd6f7c1c030d77e5f4bd92b43d07 (patch)
tree30b7fb9cc7829cec0e44ef83acd41acc2f03214f
parent072e76c018ec8241236f089116d79aa3b7374d03 (diff)
downloadhomebrew-a856447998abfd6f7c1c030d77e5f4bd92b43d07.tar.bz2
go: cleanup
- remove outdated comment - remove pointless ENV cleanup - remove dead "allow_fail" code - remove superfluous parens in block arguments - fix indentation
-rw-r--r--Library/Formula/go.rb26
1 files changed, 9 insertions, 17 deletions
diff --git a/Library/Formula/go.rb b/Library/Formula/go.rb
index ad604f040..ec9a5bff3 100644
--- a/Library/Formula/go.rb
+++ b/Library/Formula/go.rb
@@ -2,7 +2,7 @@ require 'formula'
class Go < Formula
homepage 'http://golang.org'
- url 'https://go.googlecode.com/files/go1.1.1.src.tar.gz';
+ url 'https://go.googlecode.com/files/go1.1.1.src.tar.gz'
version '1.1.1'
sha1 'f365aed8183e487a48a66ace7bf36e5974dffbb3'
@@ -53,25 +53,17 @@ class Go < Formula
Pathname.new('VERSION').write 'default' if build.head?
cd 'src' do
- # Build only. Run `brew test go` to run distrib's tests.
- targets.each do |(os, archs, opts)|
- archs.each do |arch|
- ENV['GOROOT_FINAL'] = prefix
- ENV['GOOS'] = os
- ENV['GOARCH'] = arch
- ENV['CGO_ENABLED'] = opts[:cgo] ? "1" : "0"
- allow_fail = opts[:allow_fail] ? "|| true" : ""
- system "./make.bash --no-clean #{allow_fail}"
- end
+ targets.each do |os, archs, opts|
+ archs.each do |arch|
+ ENV['GOROOT_FINAL'] = prefix
+ ENV['GOOS'] = os
+ ENV['GOARCH'] = arch
+ ENV['CGO_ENABLED'] = opts[:cgo] ? "1" : "0"
+ system "./make.bash", "--no-clean"
+ end
end
end
- # cleanup ENV
- ENV.delete('GOROOT_FINAL')
- ENV.delete('GOOS')
- ENV.delete('GOARCH')
- ENV.delete('CGO_ENABLED')
-
Pathname.new('pkg/obj').rmtree
# Don't install header files; they aren't necessary and can