diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/qt5.rb | 11 |
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 |
