fix qmake bug
This commit is contained in:
parent
4fb82c2e7c
commit
01b1fcce16
@ -3,7 +3,6 @@ require 'rubygems/version'
|
||||
|
||||
module Qt
|
||||
class NotInstalledError < StandardError; end
|
||||
|
||||
class Qmake
|
||||
class << self
|
||||
QMAKES = %w{qmake-qt4 qmake}
|
||||
@ -17,14 +16,13 @@ module Qt
|
||||
end
|
||||
|
||||
def command(project_file = nil)
|
||||
|
||||
spec = (case platform
|
||||
when :linux
|
||||
"#{path} -spec linux-g++"
|
||||
"linux-g++"
|
||||
when :freebsd
|
||||
"#{path} -spec freebsd-g++"
|
||||
"freebsd-g++"
|
||||
when :mac_os_x
|
||||
"#{path} -spec macx-g++"
|
||||
"macx-g++"
|
||||
end)
|
||||
|
||||
command = "#{path} -spec #{spec}"
|
||||
@ -99,7 +97,7 @@ module Qt
|
||||
%{sudo apt-get install make or sudo yum install make}
|
||||
when :freebsd
|
||||
%{install /usr/ports/devel/gmake}
|
||||
when :darwin
|
||||
when :mac_os_x
|
||||
%{Install XCode, and/or sudo port install make}
|
||||
end
|
||||
)
|
||||
@ -125,7 +123,7 @@ MSG
|
||||
<<-MSG
|
||||
Install /usr/ports/www/qt4-webkit and /usr/ports/devel/qmake4.
|
||||
MSG
|
||||
when :darwin
|
||||
when :mac_os_x
|
||||
<<-MSG
|
||||
sudo port install qt4-mac (for the patient) or downloading Nokia's pre-built binary
|
||||
at http://qt.nokia.com/downloads/
|
||||
|
Loading…
Reference in New Issue
Block a user