From 743bf42e2e0a5f0fc217b114e88c24f84c1fed97 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 17 Sep 2013 23:22:41 -0700 Subject: 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. --- Library/Formula/go.rb | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3