diff options
| author | Mike Arthur | 2009-12-23 14:27:37 +0000 |
|---|---|---|
| committer | Mike Arthur | 2010-01-30 11:05:25 +0000 |
| commit | 2f1142ed7db53ad217fcac6f7055f81d10cc73ae (patch) | |
| tree | c7822d35e0cbee79bc8d2300fe085536f579a31a /Library | |
| parent | 783d48e6d886e747f6bd5919e214e8dfa82066f1 (diff) | |
| download | homebrew-2f1142ed7db53ad217fcac6f7055f81d10cc73ae.tar.bz2 | |
Update Qt formula to 4.6.1.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/qt.rb | 35 |
1 files changed, 15 insertions, 20 deletions
diff --git a/Library/Formula/qt.rb b/Library/Formula/qt.rb index 3fdbc994b..b570fa8a2 100644 --- a/Library/Formula/qt.rb +++ b/Library/Formula/qt.rb @@ -1,18 +1,14 @@ require 'formula' +require 'hardware' class Qt <Formula - url 'http://get.qt.nokia.com/qt/source/qt-mac-opensource-src-4.5.3.tar.gz' - md5 '484e3739fdc51540218ed92f4b732881' + url 'http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.6.1.tar.gz' + md5 '2a7b5126f2450d8525af355fc4c12ad6' homepage 'http://www.qtsoftware.com' - def patches - # Give the option to use Qt3Support even when using Cocoa. - "http://qt.gitorious.org/+qt-iphone/qt/qt-iphone-clone/commit/106d7a210be1e6d52946b575a262e2c76c5e51e6.patch" - end - def options [ - ['--with-dbus', "Enable QtDBus module."], + ['--with-qtdbus', "Enable QtDBus module."], ['--with-qt3support', "Enable deprecated Qt3Support module."], ] end @@ -21,13 +17,12 @@ class Qt <Formula File.exist? "/usr/X11R6/lib" end - depends_on "dbus" if ARGV.include? '--with-dbus' - depends_on "dbus" if ARGV.include? '--with-qt3support' + depends_on "d-bus" if ARGV.include? '--with-qtdbus' depends_on 'libpng' unless x11? def install - if version == '4.5.3' - # Reported 6 months ago (at 4.5.0-rc1), still not fixed in the this release! :( + if version == '4.6.1' # being specific so needs reconfirmed each version + # Bug reported here: http://bugreports.qt.nokia.com/browse/QTBUG-7630 makefiles=%w[plugins/sqldrivers/sqlite/sqlite.pro 3rdparty/webkit/WebCore/WebCore.pro] makefiles.each { |makefile| `echo 'LIBS += -lsqlite3' >> src/#{makefile}` } end @@ -41,7 +36,7 @@ class Qt <Formula conf_args << "-plugin-sql-mysql" if (HOMEBREW_CELLAR+"mysql").directory? - if ARGV.include? '--with-dbus' + if ARGV.include? '--with-qtdbus' conf_args << "-I#{Formula.factory('dbus').lib}/dbus-1.0/include" conf_args << "-I#{Formula.factory('dbus').include}/dbus-1.0" conf_args << "-ldbus-1" @@ -62,7 +57,7 @@ class Qt <Formula conf_args << "-I#{Formula.factory('libpng').include}" end - if MACOS_VERSION >= 10.6 + if MACOS_VERSION >= 10.6 and Hardware.is_64_bit? conf_args << '-arch' << 'x86_64' else conf_args << '-arch' << 'x86' @@ -71,23 +66,23 @@ class Qt <Formula system "./configure", *conf_args system "make install" - # fuck weird prl files + # remove unneeded files `find #{lib} -name \*.prl -delete` - # fuck crazy disk usage + # stop crazy disk usage (prefix+'doc'+'html').rmtree (prefix+'doc'+'src').rmtree - # wtf are these anyway? + # what are these anyway? (bin+'Assistant_adp.app').rmtree (bin+'pixeltool.app').rmtree (bin+'qhelpconverter.app').rmtree - # we specified no debug already! :P + # remove debugging files that slipped through (lib+'libQtUiTools_debug.a').unlink (lib+'pkgconfig/QtUiTools_debug.pc').unlink - # meh + # remove porting file for non-humans (prefix+'q3porting.xml').unlink end def caveats - "We agreed to the Qt opensource license for you.\nIf this is unacceptable you should uninstall :P" + "We agreed to the Qt opensource license for you.\nIf this is unacceptable you should uninstall." end end |
