Readd USE=uvm (bug #557016).
authorJeroen Roovers <jer@gentoo.org>
Thu, 13 Aug 2015 04:03:58 +0000 (06:03 +0200)
committerJeroen Roovers <jer@gentoo.org>
Thu, 13 Aug 2015 04:03:58 +0000 (06:03 +0200)
Package-Manager: portage-2.2.20.1

x11-drivers/nvidia-drivers/nvidia-drivers-355.06.ebuild

index 8391d8443eb3ee69f8166d2802ce32e01ea693d3..bc779a04a1391cc8adeafa4be2d9362c71a55463 100644 (file)
@@ -28,7 +28,7 @@ KEYWORDS="-* ~amd64 ~x86 ~amd64-fbsd ~x86-fbsd"
 RESTRICT="bindist mirror strip"
 EMULTILIB_PKG="true"
 
-IUSE="acpi multilib kernel_FreeBSD kernel_linux pax_kernel +tools gtk2 gtk3 +X"
+IUSE="acpi multilib kernel_FreeBSD kernel_linux pax_kernel +tools gtk2 gtk3 +X uvm"
 REQUIRED_USE="
        tools? ( X || ( gtk2 gtk3 ) )
 "
@@ -113,6 +113,7 @@ pkg_setup() {
 
        if use kernel_linux; then
                MODULE_NAMES="nvidia(video:${S}/kernel)"
+               use uvm && MODULE_NAMES+=" nvidia-uvm(video:${S}/kernel)"
 
                # This needs to run after MODULE_NAMES (so that the eclass checks
                # whether the kernel supports loadable modules) but before BUILD_PARAMS
@@ -241,6 +242,7 @@ src_install() {
                # pkg_preinst, see bug #491414
                insinto /etc/modprobe.d
                newins "${FILESDIR}"/nvidia-169.07 nvidia.conf
+               use uvm && doins "${FILESDIR}"/nvidia-uvm.conf
 
                # Ensures that our device nodes are created when not using X
                exeinto "$(get_udevdir)"