Fix: issue #34, compiling on Arch linux

This commit is contained in:
petrushka 2011-05-22 18:51:11 +04:00 committed by Joe Ferris
parent 0a075704ee
commit 304de8804d
1 changed files with 6 additions and 1 deletions

View File

@ -6,7 +6,12 @@ module CapybaraWebkitBuilder
def makefile
qmake_binaries = ['qmake', 'qmake-qt4']
qmake = qmake_binaries.detect { |qmake| system("which #{qmake}") }
system("#{qmake} -spec macx-g++")
case RUBY_PLATFORM
when /linux/
system("#{qmake} -spec linux-g++")
else
system("#{qmake} -spec macx-g++")
end
end
def qmake