dev-python/pygame: Add opengl USE flag
authorJames Le Cuirot <chewi@gentoo.org>
Mon, 20 Apr 2020 21:53:10 +0000 (22:53 +0100)
committerJames Le Cuirot <chewi@gentoo.org>
Mon, 20 Apr 2020 21:53:10 +0000 (22:53 +0100)
Consumers of pygame sometimes require SDL to have OpenGL support.

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
dev-python/pygame/pygame-1.9.6-r1.ebuild

index 93b619f76aef302e744a865905cb530844f28384..16595400043262d49c6f334ee59667cf3fce0e68 100644 (file)
@@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~sparc ~x86"
-IUSE="doc examples midi X"
+IUSE="doc examples midi opengl X"
 
 DEPEND="dev-python/numpy[${PYTHON_USEDEP}]
        >=media-libs/sdl-image-1.2.2[png,jpeg]
@@ -21,7 +21,7 @@ DEPEND="dev-python/numpy[${PYTHON_USEDEP}]
        >=media-libs/sdl-ttf-2.0.6
        >=media-libs/smpeg-0.4.4-r1
        midi? ( media-libs/portmidi )
-       X? ( >=media-libs/libsdl-1.2.5[X,video] )
+       X? ( >=media-libs/libsdl-1.2.5[opengl?,video,X] )
        !X? ( >=media-libs/libsdl-1.2.5 )"
 RDEPEND="${DEPEND}"