aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAugie Fackler2010-09-19 13:21:15 -0500
committerAdam Vandenberg2010-10-20 21:10:51 -0700
commit280f986814e2dabed1464528de1386d313dc89a1 (patch)
treeb05699755db60a9be3691abbafa910eb99b1bd67 /Library
parent1c6b43730796580bebead0f25314d5daad65029c (diff)
downloadhomebrew-280f986814e2dabed1464528de1386d313dc89a1.tar.bz2
Go: include templates for godoc.
Signed-off-by: Adam Vandenberg <flangy@gmail.com> * Also clean up a bit.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/go.rb14
1 files changed, 5 insertions, 9 deletions
diff --git a/Library/Formula/go.rb b/Library/Formula/go.rb
index a6dc0fa01..361e7d28b 100644
--- a/Library/Formula/go.rb
+++ b/Library/Formula/go.rb
@@ -7,19 +7,15 @@ class Go <Formula
skip_clean 'bin'
- def cruft
- %w[src include test doc]
- end
-
def which_arch
Hardware.is_64_bit? ? 'amd64' : '386'
end
def install
ENV.j1 # http://github.com/mxcl/homebrew/issues/#issue/237
- prefix.install %w[src include test doc misc]
+ prefix.install %w[src include test doc misc lib favicon.ico]
Dir.chdir prefix
- mkdir %w[pkg bin lib]
+ mkdir %w[pkg bin]
ENV['GOROOT'] = Dir.getwd
ENV['GOBIN'] = bin
@@ -33,15 +29,15 @@ class Go <Formula
# Keep the makefiles - http://github.com/mxcl/homebrew/issues/issue/1404
end
- Dir['src/*'].each{|f| rm_rf f unless f.match(/^src\/Make/) }
- rm_rf %w[include test doc]
+ Dir['src/*'].each{|f| rm_rf f unless f.match(/^src\/(pkg|Make)/) }
+ rm_rf %w[include test]
end
def caveats
<<-EOS.undent
In order to use Go, set the following in your ~/.profile:
- export GOROOT=`brew --cellar`/go/#{version}
+ export GOROOT=`brew --cellar go`
export GOBIN=#{HOMEBREW_PREFIX}/bin
export GOARCH=#{which_arch}
export GOOS=darwin