--- /usr/portage/dev-qt/qtgui/qtgui-5.3.2.ebuild 2014-10-16 15:01:08.000000000 -0400 +++ /usr/local/portage/dev-qt/qtgui/qtgui-5.3.2.ebuild 2014-10-25 21:47:01.666019608 -0400 @@ -18,7 +18,7 @@ # TODO: directfb, linuxfb, offscreen (auto-depends on X11) -IUSE="accessibility egl eglfs evdev +gif gles2 harfbuzz ibus jpeg kms +opengl +png udev +xcb" +IUSE="accessibility egl eglfs evdev +gif gles2 gtkstyle harfbuzz ibus jpeg kms +opengl +png udev +xcb" REQUIRED_USE=" egl? ( evdev opengl ) eglfs? ( egl ) @@ -63,6 +63,7 @@ " DEPEND="${RDEPEND} evdev? ( sys-kernel/linux-headers ) + gtkstyle? ( x11-libs/gtk+:2 ) test? ( ~dev-qt/qtnetwork-${PV}[debug=] ) " PDEPEND=" @@ -111,6 +112,9 @@ ) pkg_setup() { + use gtkstyle && QT5_TARGET_SUBDIRS+=(src/plugins/platformthemes/gtk2) \ + || QT5_GENTOO_CONFIG+=(gtkstyle:gtkstyle) \ + || QT5_GENTOO_CONFIG+=(gtkstyle:gtk2) use opengl && QT5_TARGET_SUBDIRS+=(src/openglextensions) use ibus && QT5_TARGET_SUBDIRS+=(src/plugins/platforminputcontexts/ibus) use xcb && QT5_TARGET_SUBDIRS+=(src/plugins/platforminputcontexts/compose) @@ -138,6 +142,7 @@ -system-freetype $(use gif || echo -no-gif) ${gl} + $(qt_use gtkstyle) $(qt_use harfbuzz harfbuzz system) $(qt_use jpeg libjpeg system) $(qt_use kms)