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'
|
2013-01-21 16:21:25 +00:00
|
|
|
url 'git://gitorious.org/qt-mobility/qt-mobility.git', :revision => '6a75140'
|
|
|
|
version '1.2.0-6a75140'
|
2011-01-04 22:17:34 +00:00
|
|
|
|
|
|
|
depends_on 'qt'
|
|
|
|
|
|
|
|
def install
|
2012-05-24 21:38:08 +00:00
|
|
|
system "./configure", "-release", "-prefix", prefix, "-qmake-exec", "#{HOMEBREW_PREFIX}/bin/qmake"
|
2013-01-21 16:21:25 +00:00
|
|
|
system "make"
|
|
|
|
ENV.j1
|
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
|