diff options
| author | Anthony Ramine | 2013-11-07 10:20:39 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2013-11-07 10:38:54 +0000 |
| commit | cda652f81f5f5262c4cafa3da941c4bcd915740a (patch) | |
| tree | 3e8a78f796057e0683fde855002110f04d313650 | |
| parent | 708d50ad736fd1668cfb689bfacfd24c1cef46d5 (diff) | |
| download | homebrew-cda652f81f5f5262c4cafa3da941c4bcd915740a.tar.bz2 | |
qt5: fix HEAD build.
Closes #23890.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Formula/qt5.rb | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/Library/Formula/qt5.rb b/Library/Formula/qt5.rb index 5b17c3f77..7254f92f7 100644 --- a/Library/Formula/qt5.rb +++ b/Library/Formula/qt5.rb @@ -1,10 +1,28 @@ require 'formula' +class Qt5HeadDownloadStrategy < GitDownloadStrategy + include FileUtils + + def support_depth? + # We need to make a local clone so we can't use "--depth 1" + false + end + + def stage + @clone.cd { reset } + safe_system 'git', 'clone', @clone, '.' + ln_s @clone, 'qt' + safe_system './init-repository', '--mirror', "#{Dir.pwd}/" + rm 'qt' + end +end + class Qt5 < Formula homepage 'http://qt-project.org/' url 'http://download.qt-project.org/official_releases/qt/5.1/5.1.1/single/qt-everywhere-opensource-src-5.1.1.tar.gz' sha1 '131b023677cd5207b0b0d1864f5d3ac37f10a5ba' - head 'git://gitorious.org/qt/qt5.git', :branch => 'stable' + head 'git://gitorious.org/qt/qt5.git', :branch => 'stable', + :using => Qt5HeadDownloadStrategy bottle do revision 1 @@ -39,6 +57,9 @@ class Qt5 < Formula ENV.append 'CXXFLAGS', "-I#{MacOS.sdk_path}/System/Library/Frameworks/CoreFoundation.framework/Headers" end + # https://bugreports.qt-project.org/browse/QTBUG-34382 + args << "-no-xcb" if build.head? + args << "-L#{MacOS::X11.lib}" << "-I#{MacOS::X11.include}" if MacOS::X11.installed? args << "-plugin-sql-mysql" if build.with? 'mysql' |
