dev-python/PyQt5: add several missing REQUIRED_USE
authorDavide Pesavento <pesa@gentoo.org>
Thu, 3 Dec 2015 18:38:50 +0000 (19:38 +0100)
committerDavide Pesavento <pesa@gentoo.org>
Thu, 3 Dec 2015 18:39:34 +0000 (19:39 +0100)
Apparently configure.py does not list all these dependencies, and
does not check if they are satisfied at build time. But their lack
causes ImportErrors at runtime.

Gentoo-Bug: 567394

Package-Manager: portage-2.2.26

dev-python/PyQt5/PyQt5-5.5.1.ebuild
dev-python/PyQt5/PyQt5-5.5.ebuild

index 24b724f0cd406ab4dd8fa8a3a1742b760a78f91e..b0d903df96d92ac2673e3156ddc95983a2f0e337 100644 (file)
@@ -29,14 +29,28 @@ KEYWORDS="~amd64 ~arm ~x86"
 IUSE="dbus debug declarative designer doc examples gles2 gui help multimedia
        network opengl positioning printsupport sensors serialport sql svg
        testlib webchannel webkit websockets widgets x11extras xmlpatterns"
+
+# The requirements below were extracted from configure.py
+# and from the output of 'grep -r "%Import " "${S}"/sip'
 REQUIRED_USE="
        ${PYTHON_REQUIRED_USE}
+       declarative? ( gui network )
+       designer? ( widgets )
+       help? ( gui widgets )
+       multimedia? ( gui network )
+       opengl? ( gui widgets )
        positioning? ( gui )
+       printsupport? ( widgets )
        sensors? ( gui )
        serialport? ( gui )
        sql? ( widgets )
+       svg? ( gui widgets )
        testlib? ( widgets )
        webchannel? ( network )
+       webkit? ( gui network printsupport widgets )
+       websockets? ( network )
+       widgets? ( gui )
+       xmlpatterns? ( network )
 "
 
 # Minimal supported version of Qt.
index 6ce5a5116fa44474ef4c7c5a0e22209865350bc7..f7a2f64f7056dccc3a236e7e0f5e8fddd917a3a7 100644 (file)
@@ -29,6 +29,8 @@ KEYWORDS="amd64 arm ~x86"
 IUSE="dbus debug declarative designer doc examples gles2 gui help multimedia
        network opengl positioning printsupport sensors serialport sql svg
        testlib webchannel webkit websockets widgets x11extras xmlpatterns"
+
+# The requirements below were extracted from configure.py
 REQUIRED_USE="
        ${PYTHON_REQUIRED_USE}
        positioning? ( gui )