diff options
| author | Samuel John | 2013-08-08 12:01:25 +0200 |
|---|---|---|
| committer | Samuel John | 2013-08-08 12:01:25 +0200 |
| commit | 9b5f26f358d0f21323ca2eeb5399b73651c347aa (patch) | |
| tree | ffbf50344cda9129e98010a8ebe87604a01ca526 /Library/Formula | |
| parent | 58bda4058eb8a3320b4d463951e64061b276c4da (diff) | |
| download | homebrew-9b5f26f358d0f21323ca2eeb5399b73651c347aa.tar.bz2 | |
qt: 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/qt.rb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Library/Formula/qt.rb b/Library/Formula/qt.rb index f0471a1d8..e03f9cdeb 100644 --- a/Library/Formula/qt.rb +++ b/Library/Formula/qt.rb @@ -78,11 +78,16 @@ class Qt < Formula args << '-arch' << 'x86' end + # We move the source and build in-place because: + # - Debug symbols need to find the source so build in the prefix + # - 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" + if build.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 |
