...
This commit is contained in:
39
x11-misc/nvidia-xrun/nvidia-xrun-9999.ebuild
Normal file
39
x11-misc/nvidia-xrun/nvidia-xrun-9999.ebuild
Normal file
@@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit git-r3
|
||||
|
||||
DESCRIPTION="Script to run dedicated X server with discrete nvidia graphics"
|
||||
HOMEPAGE="https://github.com/Witko/nvidia-xrun"
|
||||
EGIT_REPO_URI="https://github.com/Witko/nvidia-xrun.git"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS=""
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
media-libs/mesa
|
||||
sys-power/bbswitch
|
||||
x11-apps/xinit
|
||||
x11-base/xorg-server[xorg]
|
||||
x11-drivers/nvidia-drivers[X,driver]
|
||||
x11-libs/libXrandr"
|
||||
|
||||
src_prepare() {
|
||||
sed -in -e "/\/nvidia\/xorg\/modules/d" -e "s/\/nvidia/\/opengl\/nvidia/g" nvidia-xorg.conf
|
||||
sed -in -e "s/\/nvidia/\/opengl\/nvidia\/lib/g" nvidia-xinitrc
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin nvidia-xrun
|
||||
insinto /etc/X11
|
||||
doins nvidia-xorg.conf
|
||||
insinto /etc/X11/xinit
|
||||
doins nvidia-xinitrc
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user