2011-01-04 22:17:34 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class QtMobility < Formula
|
2012-05-24 21:38:08 +00:00
|
|
|
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'
|
2011-01-04 22:17:34 +00:00
|
|
|
|
|
|
|
depends_on 'qt'
|
|
|
|
|
2012-05-24 21:38:08 +00:00
|
|
|
def patches
|
|
|
|
# Fixes build on case sensitive filesystems
|
|
|
|
'http://lists.qt.nokia.com/pipermail/qt-mobility-feedback/attachments/20120220/be90dd45/attachment.obj'
|
|
|
|
end
|
|
|
|
|
2011-01-04 22:17:34 +00:00
|
|
|
def install
|
2012-05-24 21:38:08 +00:00
|
|
|
system "./configure", "-release", "-prefix", prefix, "-qmake-exec", "#{HOMEBREW_PREFIX}/bin/qmake"
|
2011-01-04 22:17:34 +00:00
|
|
|
system "make install"
|
2012-05-24 21:38:08 +00:00
|
|
|
|
|
|
|
# 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
|
2011-01-04 22:17:34 +00:00
|
|
|
end
|
|
|
|
end
|