Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
qt: use 4.8 branch snapshot for stable on 10.9.
Browse files Browse the repository at this point in the history
Would be nice if this could be done another way but I think it's better
than making users use --HEAD until Qt fixes their mess (in January):
http://permalink.gmane.org/gmane.comp.lib.qt.devel/13812

Closes #24674.

Signed-off-by: BrewTestBot <brew-test-bot@googlegroups.com>
  • Loading branch information
MikeMcQuaid committed Nov 26, 2013
1 parent a54d66b commit 4bd6016
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions Library/Formula/qt.rb
Expand Up @@ -2,8 +2,28 @@

class Qt < Formula
homepage 'http://qt-project.org/'
url 'http://download.qt-project.org/official_releases/qt/4.8/4.8.5/qt-everywhere-opensource-src-4.8.5.tar.gz'
sha1 '745f9ebf091696c0d5403ce691dc28c039d77b9e'
if MacOS.version < :mavericks
url 'http://download.qt-project.org/official_releases/qt/4.8/4.8.5/qt-everywhere-opensource-src-4.8.5.tar.gz'
sha1 '745f9ebf091696c0d5403ce691dc28c039d77b9e'
else
# This is a snapshot of the current qt-4.8 branch. It's been used by a
# bunch of people to get Qt working on Mavericks and 4.8.5 needs too many
# patches to compile any time soon (January-ish):
# http://permalink.gmane.org/gmane.comp.lib.qt.devel/13812
url 'https://github.com/qtproject/qt/archive/157da36977213237939df14608753bb3ec280f0b.tar.gz'
sha1 '145b8eb6a6c2ccc1cc58ddcb03a1d33b153e0c15'
# It would be nice if this was a real version number but unfortunately
# that will mess with the bottles.
version '4.8.5'

resource 'libWebKitSystemInterfaceMavericks' do
url 'http://trac.webkit.org/export/157771/trunk/WebKitLibraries/libWebKitSystemInterfaceMavericks.a'
sha1 'fc5ebf85f637f9da9a68692df350e441c8ef5d7e'
version '157771'
end
end

head 'git://gitorious.org/qt/qt.git', :branch => '4.8'

bottle do
revision 2
Expand All @@ -12,16 +32,6 @@ class Qt < Formula
sha1 '401f2362ad9a22245a206729954dba731a1cdb52' => :snow_leopard
end

head do
url 'git://gitorious.org/qt/qt.git', :branch => '4.8'

resource 'libWebKitSystemInterfaceMavericks' do
url 'http://trac.webkit.org/export/157771/trunk/WebKitLibraries/libWebKitSystemInterfaceMavericks.a'
sha1 'fc5ebf85f637f9da9a68692df350e441c8ef5d7e'
version '157771'
end if MacOS.version >= :mavericks
end

option :universal
option 'with-qt3support', 'Build with deprecated Qt3Support module support'
option 'with-docs', 'Build documentation'
Expand Down Expand Up @@ -73,12 +83,6 @@ def patches
end

def install
# Must be built with --HEAD on Mavericks at the moment
raise <<-EOS.undent if MacOS.version == :mavericks and not build.head?
On Mavericks, you must install Qt HEAD:
brew install qt --HEAD
EOS

ENV.universal_binary if build.universal?
ENV.append "CXXFLAGS", "-fvisibility=hidden"

Expand Down

0 comments on commit 4bd6016

Please sign in to comment.