commit:     d6677d5548a0c421fb40b7986d296c8c1c4464a6
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 21 23:38:30 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 21 23:38:30 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6677d55

media-video/mpv: rebase 0.34.1 on 0.34.0 changes for nvenc

Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-video/mpv/mpv-0.34.1.ebuild | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/media-video/mpv/mpv-0.34.1.ebuild 
b/media-video/mpv/mpv-0.34.1.ebuild
index dd43d1178adb..e0f0ee5c96cf 100644
--- a/media-video/mpv/mpv-0.34.1.ebuild
+++ b/media-video/mpv/mpv-0.34.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -29,20 +29,20 @@ DOCS+=( README.md DOCS/{client-api,interface}-changes.rst )
 # See Copyright in sources and Gentoo bug 506946. Waf is BSD, libmpv is ISC.
 LICENSE="LGPL-2.1+ GPL-2+ BSD ISC"
 SLOT="0"
-IUSE="+alsa aqua archive bluray cdda +cli coreaudio cplugins cuda debug doc 
drm dvb
+IUSE="+alsa aqua archive bluray cdda +cli coreaudio cplugins debug doc drm dvb
        dvd +egl gamepad gbm +iconv jack javascript jpeg lcms libcaca libmpv 
+lua
-       openal +opengl pulseaudio raspberry-pi rubberband sdl
+       nvenc openal +opengl pulseaudio raspberry-pi rubberband sdl
        selinux test tools +uchardet vaapi vdpau vulkan wayland +X +xv zlib 
zimg"
 
 REQUIRED_USE="
        || ( cli libmpv )
        aqua? ( opengl )
-       cuda? ( opengl )
        egl? ( || ( gbm X wayland ) )
        gamepad? ( sdl )
        gbm? ( drm egl opengl )
        lcms? ( opengl )
        lua? ( ${LUA_REQUIRED_USE} )
+       nvenc? ( opengl )
        opengl? ( || ( aqua egl X raspberry-pi !cli ) )
        raspberry-pi? ( opengl )
        test? ( opengl )
@@ -118,11 +118,11 @@ COMMON_DEPEND="
 "
 DEPEND="${COMMON_DEPEND}
        ${PYTHON_DEPS}
-       cuda? ( >=media-libs/nv-codec-headers-8.2.15.7 )
        dvb? ( virtual/linuxtv-dvb-headers )
+       nvenc? ( >=media-libs/nv-codec-headers-8.2.15.7 )
 "
 RDEPEND="${COMMON_DEPEND}
-       cuda? ( x11-drivers/nvidia-drivers[X] )
+       nvenc? ( x11-drivers/nvidia-drivers[X] )
        selinux? ( sec-policy/selinux-mplayer )
        tools? ( ${PYTHON_DEPS} )
 "
@@ -224,8 +224,8 @@ src_configure() {
 
                # HWaccels:
                # Automagic Video Toolbox HW acceleration. See Gentoo bug 
577332.
-               $(use_enable cuda cuda-hwaccel)
-               $(use_enable cuda cuda-interop)
+               $(use_enable nvenc cuda-hwaccel)
+               $(use_enable nvenc cuda-interop)
 
                # TV features:
                $(use_enable dvb dvbin)

Reply via email to