aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorSamuel John2013-08-08 12:03:32 +0200
committerSamuel John2013-08-08 12:03:32 +0200
commit2f580aeff4045faa2cbfbc7b1f6a1b4d4d40820f (patch)
treed2a277095163a560ac5c6cc4d118bb13fee482ff /Library/Formula
parent9daa1565861dcfc69d4086d24341b31f8478db86 (diff)
downloadhomebrew-2f580aeff4045faa2cbfbc7b1f6a1b4d4d40820f.tar.bz2
qt5: Default to build in-place and preserve the src
Needed for debug symbols. PySide needs the source for documentation generation. Closes #20020
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/qt5.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/Library/Formula/qt5.rb b/Library/Formula/qt5.rb
index 9f6cbb645..4b8b544c7 100644
--- a/Library/Formula/qt5.rb
+++ b/Library/Formula/qt5.rb
@@ -64,15 +64,20 @@ class Qt5 < Formula
if build.include? 'with-debug-and-release'
args << "-debug-and-release"
- # Debug symbols need to find the source so build in the prefix
- mv "../qt-everywhere-opensource-src-#{version}", "#{prefix}/src"
- cd "#{prefix}/src"
else
args << "-release"
end
args << '-developer-build' if build.include? 'developer'
+ # We move the source and build in-place because:
+ # - Debug symbols need to find the source
+ # - to fix https://github.com/mxcl/homebrew/issues/20020
+ # - PySide `make apidoc` needs the src
+ (prefix/"src").mkdir
+ mv Dir['*'], "#{prefix}/src/"
+ cd "#{prefix}/src"
+
system "./configure", *args
system "make"
ENV.j1