aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-09-17 23:22:41 -0700
committerAdam Vandenberg2013-09-18 21:54:43 -0700
commit743bf42e2e0a5f0fc217b114e88c24f84c1fed97 (patch)
tree2061ce6857f3515c5c822f5f05275ff283ef414f /Library
parent24d9839f994ea7e9b9bf75102d3471394c659ba0 (diff)
downloadhomebrew-743bf42e2e0a5f0fc217b114e88c24f84c1fed97.tar.bz2
go: install to libexec to keep private headers
Install all files to libexec, including go private headers. Symlink binaries to bin from there. Closes #22638.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/go.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/Library/Formula/go.rb b/Library/Formula/go.rb
index 017d5831d..eff706bcc 100644
--- a/Library/Formula/go.rb
+++ b/Library/Formula/go.rb
@@ -66,7 +66,7 @@ class Go < Formula
cd 'src' do
targets.each do |os, archs, opts|
archs.each do |arch|
- ENV['GOROOT_FINAL'] = prefix
+ ENV['GOROOT_FINAL'] = libexec
ENV['GOOS'] = os
ENV['GOARCH'] = arch
ENV['CGO_ENABLED'] = opts[:cgo] ? "1" : "0"
@@ -77,12 +77,8 @@ class Go < Formula
(buildpath/'pkg/obj').rmtree
- # Don't install header files; they aren't necessary and can
- # cause problems with other builds.
- # See:
- # http://trac.macports.org/ticket/30203
- # http://code.google.com/p/go/issues/detail?id=2407
- prefix.install(Dir['*'] - ['include'])
+ libexec.install Dir['*']
+ bin.install_symlink Dir["#{libexec}/bin/*"]
end
def caveats; <<-EOS.undent