Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 2547ffd

Browse files
committed
Qt: Fix Webkit and upstream patch.
Fixes #13368. Fixes #13640.
1 parent 9149d04 commit 2547ffd

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

Library/Formula/qt.rb

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ class Qt < Formula
66
md5 '3c1146ddf56247e16782f96910a8423b'
77

88
bottle do
9-
sha1 'a634c873a3ce825649c913f5d9ad790397390f74' => :snowleopard
10-
sha1 'd11c466d3cbc80d3b94431daf481a217bf9097fd' => :lion
9+
version 1
10+
sha1 'dfa0daa951e889a2548b1cff66759b449b5a6b98' => :mountainlion
11+
sha1 '0905eb8b2c5a9bae0d1f9a8234173daba680c48c' => :lion
12+
sha1 'c37ac19d54c4684d8996a0ee96cdf971bd2c1f7b' => :snowleopard
1113
end
1214

1315
head 'git://gitorious.org/qt/qt.git', :branch => 'master'
@@ -36,14 +38,20 @@ def patches
3638
if MacOS.leopard?
3739
"http://bugreports.qt-project.org/secure/attachment/26712/Patch-Qt-4.8-for-10.5"
3840
# add support for Mountain Lion
41+
# gist submitted upstream here: https://codereview.qt-project.org/#change,31646
3942
elsif MacOS.mountain_lion?
4043
[ "https://qt.gitorious.org/qt/qt/commit/422f1b?format=patch",
41-
"https://qt.gitorious.org/qt/qt/commit/665355?format=patch" ]
44+
"https://qt.gitorious.org/qt/qt/commit/665355?format=patch",
45+
"https://raw.github.com/gist/3187034/893252db0ae3bb9bb5fa3ff7c530c7978399b101/0001-Fix-WebKit-on-OS-X-Mountain-Lion.patch" ]
4246
end
4347

4448
end
4549

4650
def install
51+
# Apply binary git patch; normal patch ignores this.
52+
# TODO: Autodetect binary patches and apply them correctly.
53+
system "git apply --exclude=*/QtWebKit.pro 002-homebrew.diff" if MacOS.mountain_lion?
54+
4755
ENV.append "CXXFLAGS", "-fvisibility=hidden"
4856
args = ["-prefix", prefix,
4957
"-system-zlib",
@@ -53,9 +61,6 @@ def install
5361
# See: https://github.com/mxcl/homebrew/issues/issue/744
5462
args << "-system-sqlite" if MacOS.leopard?
5563

56-
# TODO: Fix on Mountain Lion so WebKit can be built.
57-
args << "-no-webkit" if MacOS.mountain_lion?
58-
5964
args << "-plugin-sql-mysql" if (HOMEBREW_CELLAR+"mysql").directory?
6065

6166
if ARGV.include? '--with-qtdbus'

0 commit comments

Comments
 (0)