@@ -6,8 +6,10 @@ class Qt < Formula
6
6
md5 '3c1146ddf56247e16782f96910a8423b'
7
7
8
8
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
11
13
end
12
14
13
15
head 'git://gitorious.org/qt/qt.git' , :branch => 'master'
@@ -36,14 +38,20 @@ def patches
36
38
if MacOS . leopard?
37
39
"http://bugreports.qt-project.org/secure/attachment/26712/Patch-Qt-4.8-for-10.5"
38
40
# add support for Mountain Lion
41
+ # gist submitted upstream here: https://codereview.qt-project.org/#change,31646
39
42
elsif MacOS . mountain_lion?
40
43
[ "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" ]
42
46
end
43
47
44
48
end
45
49
46
50
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
+
47
55
ENV . append "CXXFLAGS" , "-fvisibility=hidden"
48
56
args = [ "-prefix" , prefix ,
49
57
"-system-zlib" ,
@@ -53,9 +61,6 @@ def install
53
61
# See: https://github.com/mxcl/homebrew/issues/issue/744
54
62
args << "-system-sqlite" if MacOS . leopard?
55
63
56
- # TODO: Fix on Mountain Lion so WebKit can be built.
57
- args << "-no-webkit" if MacOS . mountain_lion?
58
-
59
64
args << "-plugin-sql-mysql" if ( HOMEBREW_CELLAR +"mysql" ) . directory?
60
65
61
66
if ARGV . include? '--with-qtdbus'
0 commit comments