media-tv/kodi: Latest git now requires GBM_RENDER_SYSTEM set
authorJames Le Cuirot <chewi@gentoo.org>
Wed, 22 Aug 2018 21:11:23 +0000 (22:11 +0100)
committerCraig Andrews <candrews@gentoo.org>
Wed, 22 Aug 2018 23:35:25 +0000 (19:35 -0400)
usex is simpler and shorter than if/else.

Package-Manager: Portage-2.3.48, Repoman-2.3.10

media-tv/kodi/kodi-9999.ebuild

index a7b9f962f7d9cf751e80a4871fc81742d3a9332b..1fe5998a2b010848dff0d1985c4ca7231bce906e 100644 (file)
@@ -31,7 +31,6 @@ SLOT="0"
 IUSE="airplay alsa bluetooth bluray caps cec +css dbus debug dvd gbm gles lcms libressl libusb lirc mysql nfs +opengl pulseaudio samba systemd +system-ffmpeg test +udev udisks upnp upower vaapi vdpau wayland webserver +X +xslt zeroconf"
 REQUIRED_USE="
        ${PYTHON_REQUIRED_USE}
-       gbm? ( gles )
        || ( gles opengl )
        ^^ ( gbm wayland X )
        udev? ( !libusb )
@@ -266,16 +265,17 @@ src_configure() {
        fi
 
        if use gbm; then
-               mycmakeargs+=( -DCORE_PLATFORM_NAME="gbm" )
+               mycmakeargs+=(
+                       -DCORE_PLATFORM_NAME="gbm"
+                       -DGBM_RENDER_SYSTEM="$(usex opengl gl gles)"
+               )
        fi
 
        if use wayland; then
-               mycmakeargs+=( -DCORE_PLATFORM_NAME="wayland" )
-               if use opengl; then
-                       mycmakeargs+=( -DWAYLAND_RENDER_SYSTEM="gl" )
-               else
-                       mycmakeargs+=( -DWAYLAND_RENDER_SYSTEM="gles" )
-               fi
+               mycmakeargs+=(
+                       -DCORE_PLATFORM_NAME="wayland"
+                       -DWAYLAND_RENDER_SYSTEM="$(usex opengl gl gles)"
+               )
        fi
 
        if use X; then