media-video/mpv: Simplify REQUIRED_USE
authorMichał Górny <mgorny@gentoo.org>
Mon, 12 Jun 2017 21:41:07 +0000 (23:41 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 21 Jun 2017 19:02:29 +0000 (21:02 +0200)
Replace the redundant '!cli? ( libmpv )' inside ||. Per the initial
'|| ( cli libmpv )', if the cli flag is disabled, libmpv is always
enabled. It is therefore unnecessary to check both flags. Removing
USE-conditional groups from || makes it possible for the REQUIRED_USE
to be solved and verified using a simpler algorithm.

media-video/mpv/mpv-0.25.0-r1.ebuild
media-video/mpv/mpv-9999.ebuild

index 0bab14bcdf567812a107134e3cf97db18b35ec0b..6030435b78e94c66f732b4d87f60d4a1f61e4298 100644 (file)
@@ -45,7 +45,7 @@ REQUIRED_USE="
        gbm? ( drm egl opengl )
        lcms? ( opengl )
        luajit? ( lua )
-       opengl? ( || ( aqua egl X raspberry-pi !cli? ( libmpv ) ) )
+       opengl? ( || ( aqua egl X raspberry-pi !cli ) )
        raspberry-pi? ( opengl )
        test? ( opengl )
        tools? ( cli )
index 51104143d7602a84d7c7f0e1e0844a2cc2905041..495c3b58b025e90412e2d93aa18881e2c91aa557 100644 (file)
@@ -41,7 +41,7 @@ REQUIRED_USE="
        gbm? ( drm egl opengl )
        lcms? ( opengl )
        luajit? ( lua )
-       opengl? ( || ( aqua egl X raspberry-pi !cli? ( libmpv ) ) )
+       opengl? ( || ( aqua egl X raspberry-pi !cli ) )
        raspberry-pi? ( opengl )
        test? ( opengl )
        tools? ( cli )