aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorPascal Bertrand2012-04-01 12:17:27 +0200
committerAdam Vandenberg2012-04-01 13:35:26 -0700
commit0342d4a0284abd32ab2191c4cbc2aaab07282c36 (patch)
tree7ccb3dc624d0bf1d1e680baae5cd96526eba41cb /Library
parentac79aea4565e59092052035c20e7a8802588b473 (diff)
downloadhomebrew-0342d4a0284abd32ab2191c4cbc2aaab07282c36.tar.bz2
go 1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/go.rb26
1 files changed, 13 insertions, 13 deletions
diff --git a/Library/Formula/go.rb b/Library/Formula/go.rb
index 74ea8a295..02099441e 100644
--- a/Library/Formula/go.rb
+++ b/Library/Formula/go.rb
@@ -2,13 +2,13 @@ require 'formula'
class Go < Formula
homepage 'http://golang.org'
- version 'r60.3'
+ url 'http://go.googlecode.com/files/go.go1.src.tar.gz'
+ version '1'
+ sha1 '6023623d083db1980965335b8ac4fa8b428fa484'
if ARGV.include? "--use-git"
- url 'https://github.com/tav/go.git', :tag => 'release.r60.3'
head 'https://github.com/tav/go.git'
else
- url 'http://go.googlecode.com/hg/', :revision => 'release.r60.3'
head 'http://go.googlecode.com/hg/'
end
@@ -19,23 +19,23 @@ class Go < Formula
end
def install
- prefix.install %w[src include test doc misc lib favicon.ico AUTHORS]
- cd prefix do
- mkdir %w[pkg bin]
+ prefix.install Dir['*']
+ cd prefix do
# The version check is due to:
# http://codereview.appspot.com/5654068
- version = ARGV.build_head? ? 'default' : 'release.r60.3 9516'
- File.open('VERSION', 'w') {|f| f.write(version) }
+ (Pathname.pwd+'VERSION').write 'default' if ARGV.build_head?
- # Tests take a very long time to run. Build only
+ # Build only. Run `brew test go` to run distrib's tests.
cd 'src' do
- system "./make.bash"
+ system './make.bash'
end
+ end
+ end
- # Don't need the src folder, but do keep the Makefiles as Go projects use these
- Dir['src/*'].each{|f| rm_rf f unless f.match(/^src\/(pkg|Make)/) }
- rm_rf %w[include test]
+ def test
+ cd "#{prefix}/src" do
+ system './run.bash --no-rebuild'
end
end
end