From b7af078c51dfa083dd12b4144b300ee154a3d055 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 26 Jul 2012 21:06:01 +0100 Subject: [PATCH] Qt: Fix on Mountain Lion but disable QtWebKit. Partial fix for Homebrew/homebrew#13368. --- Formula/qt.rb | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Formula/qt.rb b/Formula/qt.rb index f156ef977f..49182aaece 100644 --- a/Formula/qt.rb +++ b/Formula/qt.rb @@ -12,10 +12,8 @@ class Qt < Formula head 'git://gitorious.org/qt/qt.git', :branch => 'master' - depends_on :x11 - fails_with :clang do - build 318 + build 421 end def options @@ -37,19 +35,27 @@ class Qt < Formula # https://bugreports.qt-project.org/browse/QTBUG-23258 if MacOS.leopard? "http://bugreports.qt-project.org/secure/attachment/26712/Patch-Qt-4.8-for-10.5" + # add support for Mountain Lion + elsif MacOS.mountain_lion? + [ "https://qt.gitorious.org/qt/qt/commit/422f1b?format=patch", + "https://qt.gitorious.org/qt/qt/commit/665355?format=patch" ] end + end def install ENV.append "CXXFLAGS", "-fvisibility=hidden" args = ["-prefix", prefix, - "-system-libpng", "-system-zlib", - "-L#{MacOS.x11_prefix}/lib", "-I#{MacOS.x11_prefix}/include", + "-system-zlib", "-confirm-license", "-opensource", "-cocoa", "-fast" ] # See: https://github.com/mxcl/homebrew/issues/issue/744 args << "-system-sqlite" if MacOS.leopard? + + # TODO: Fix on Mountain Lion so WebKit can be built. + args << "-no-webkit" if MacOS.mountain_lion? + args << "-plugin-sql-mysql" if (HOMEBREW_CELLAR+"mysql").directory? if ARGV.include? '--with-qtdbus'