# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit flag-o-matic multilib-minimal portability toolchain-funcs unpacker NV_URI="https://us.download.nvidia.com/XFree86/" AMD64_NV_PACKAGE="NVIDIA-Linux-x86_64-${PV}" DESCRIPTION="NVIDIA Accelerated Graphics Driver" SRC_URI="amd64? ( ${NV_URI}Linux-x86_64/${PV}/${AMD64_NV_PACKAGE}.run )" EMULTILIB_PKG="true" KEYWORDS="-* ~amd64" LICENSE="GPL-2 NVIDIA-r2" SLOT="0" IUSE="acpi +dkms multilib +tools wayland +X" REQUIRED_USE="tools? ( X )" COMMON=" acct-group/video acct-user/nvpd net-libs/libtirpc X? ( >=x11-libs/libvdpau-1.0[${MULTILIB_USEDEP}] media-libs/libglvnd[X,${MULTILIB_USEDEP}] ) " DEPEND="${COMMON}" RDEPEND=" ${COMMON} >=virtual/opencl-3 !!x11-drivers/nvidia-drivers-legacy acpi? ( sys-power/acpid ) dkms? ( ~sys-kernel/${PN}-dkms-${PV}:${SLOT} ) wayland? ( ~gui-libs/egl-wayland-1.1.7 ) X? ( >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] sys-libs/zlib[${MULTILIB_USEDEP}] ) " PDEPEND="tools? ( ~x11-misc/nvidia-settings-${PV}:${SLOT} ) X? (