qt-mobility: Build from Git to avoid build error (Issue Homebrew/homebrew#9672)
Fixes: invalid conversion from ‘void (* const)(QObject*, QMetaObject::Call, int, void**)’ to ‘int (*)(QMetaObject::Call, int, void**)’ Also fixes (via a patch) a build error on case sensitive filesystems. This uses a fixed revision in Git, because the latest stable release (1.2.0) fails to compile on Lion. Closes Homebrew/homebrew#12220. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
ddb71d75c2
commit
459101752d
1 changed files with 14 additions and 4 deletions
|
@ -1,14 +1,24 @@
|
|||
require 'formula'
|
||||
|
||||
class QtMobility < Formula
|
||||
url 'http://get.qt.nokia.com/qt/add-ons/qt-mobility-opensource-src-1.1.1.tar.gz'
|
||||
homepage 'http://qt.nokia.com/'
|
||||
md5 'eb1e89b47b8ff2f831ba718938f7b959'
|
||||
homepage 'http://qt.nokia.com/products/qt-addons/mobility'
|
||||
url 'git://gitorious.org/qt-mobility/qt-mobility.git', :revision => '1ccbeab'
|
||||
version '1.2.0-1ccbeab'
|
||||
|
||||
depends_on 'qt'
|
||||
|
||||
def patches
|
||||
# Fixes build on case sensitive filesystems
|
||||
'http://lists.qt.nokia.com/pipermail/qt-mobility-feedback/attachments/20120220/be90dd45/attachment.obj'
|
||||
end
|
||||
|
||||
def install
|
||||
system "./configure", "-release", "-prefix", prefix
|
||||
system "./configure", "-release", "-prefix", prefix, "-qmake-exec", "#{HOMEBREW_PREFIX}/bin/qmake"
|
||||
system "make install"
|
||||
|
||||
# Move all .apps out of the "bin/" and into the prefix (like qt formula)
|
||||
Pathname.glob(bin + '*.app').each do |path|
|
||||
mv path, prefix
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue