Skip to content

Commit

Permalink
qt: Default to build in-place and preserve the src
Browse files Browse the repository at this point in the history
Needed for debug symbols.
PySide needs the source for documentation generation.
Closes Homebrew/legacy-homebrew#20020
  • Loading branch information
samueljohn committed Aug 8, 2013
1 parent 5302d51 commit bc8d630
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Formula/qt.rb
Expand Up @@ -78,11 +78,16 @@ def install
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
Expand Down

0 comments on commit bc8d630

Please sign in to comment.