Looking at the source code Ruby is only required for LLInt (that the ebuild does not enable anyway) and some dev tools. It builds fine without ruby installed so please make it an optional dependency. Reproducible: Always
Bug 540124 disagrees... besides, configure.prf checks that ruby is installed, and I see a ruby dependency in LLIntOffsetsExtractor.pro, which appears to be required by JavaScriptCore. Would you mind explaining why you think that ruby is not needed?
The reason why I thought that ruby was not needed is that I removed dev-lang/ruby from DEPEND and qtwebkit "built" without it. But apparently without ruby an error will be printed by qmake that nothing will be built even though it returns success. And because of that emerge will generate an empty packet. But, everything that I have installed that depends on qtwebkit:5 (dev-qt/designer-5.4.0 and dev-qt/qtquick1-5.4.0) built fine like that. BTW, when I said that ruby is only a dependency if llint is explicitly enabled I was looking at the cmake files. Those do not enable llint by default. But qmake does enable it and it is indeed required.