From 2f580aeff4045faa2cbfbc7b1f6a1b4d4d40820f Mon Sep 17 00:00:00 2001 From: Samuel John Date: Thu, 8 Aug 2013 12:03:32 +0200 Subject: qt5: Default to build in-place and preserve the src Needed for debug symbols. PySide needs the source for documentation generation. Closes #20020 --- Library/Formula/qt5.rb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3