On 04/14/2014 09:15 AM, Elias Probst wrote:
> In kde-base/kinfocenter/kinfocenter-9999.ebuild:
> 
>> +IUSE="egl gles ieee1394 +opengl +pci samba nfs server wayland X"
>> +REQUIRED_USE="egl? ( || ( gles opengl ) )"
>> +
>> +RDEPEND="
>> +	$(add_frameworks_dep kcmutils)
>> +	$(add_frameworks_dep kcompletion)
>> +	$(add_frameworks_dep kconfig)
>> +	$(add_frameworks_dep kdelibs4support)
>> +	$(add_frameworks_dep kdoctools)
>> +	$(add_frameworks_dep ki18n)
>> +	$(add_frameworks_dep kio)
>> +	$(add_frameworks_dep kwindowsystem)
>> +	$(add_frameworks_dep kxmlgui)
>> +	$(add_frameworks_dep plasma)
>> +	$(add_frameworks_dep solid)
>> +	dev-qt/qtgui:5
> 
> Fixed.
> As kinfocenter has |USE="gles"| in contrast to kwin which has
> |USE="gles1 gles2"| I implemented this dependency in this way:
> 
> dev-qt/qtgui:5[opengl=]
> gles? ( dev-qt/qtgui:5[gles2] )
> 
> Is there a better approach to do this?
> 
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/gentoo/kde/pull/18/files#r11568541>.
> 

qtgui[opengl=] can probably be changed to qtgui[opengl?] since the
package can be built with opengl turned off even if qtgui[opengl] is on.

For kwin I'll admit I went with gles2 so I could be lazy and do
qtgui[gles2=] :P. I don't really know enough about opengl to say what
the 'correct' thing to do is.