summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhaarp <main.haarp@gmail.com>2019-12-18 16:56:50 +0100
committerhaarp <main.haarp@gmail.com>2019-12-18 16:56:50 +0100
commitbacd06d17f1633381d808ddf792ef596ac9da020 (patch)
tree475547ef5456770f88f6d6b03afe79b3ace28e44 /x11-misc
parentUpdate dbeaver to 6.3.0, old download was gone (diff)
downloadhaarp-bacd06d17f1633381d808ddf792ef596ac9da020.tar.gz
haarp-bacd06d17f1633381d808ddf792ef596ac9da020.tar.bz2
haarp-bacd06d17f1633381d808ddf792ef596ac9da020.zip
Add nvidia-xrun, but barely-tested
Signed-off-by: haarp <main.haarp@gmail.com>
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/nvidia-xrun/Manifest1
-rw-r--r--x11-misc/nvidia-xrun/nvidia-xrun-9999.ebuild37
2 files changed, 38 insertions, 0 deletions
diff --git a/x11-misc/nvidia-xrun/Manifest b/x11-misc/nvidia-xrun/Manifest
new file mode 100644
index 0000000..b10983b
--- /dev/null
+++ b/x11-misc/nvidia-xrun/Manifest
@@ -0,0 +1 @@
+EBUILD nvidia-xrun-9999.ebuild 867 BLAKE2B c9d414f9ce8b65e5a7b819460876ffee02d47fef7ea8bb4bc35aba304a3dc9167efad6b369987d4a3bddfc25cc67ca62ca71f1030c3f232e37d5c007d1bb7343 SHA512 77ecd98efa144e72f6e607ceb6082530586e75df69f7ab4092de737bc32dbba427af7473c4b0576b4a43728963af6c1f3426ac78c0e78edf46d1e89d8d32efad
diff --git a/x11-misc/nvidia-xrun/nvidia-xrun-9999.ebuild b/x11-misc/nvidia-xrun/nvidia-xrun-9999.ebuild
new file mode 100644
index 0000000..9357146
--- /dev/null
+++ b/x11-misc/nvidia-xrun/nvidia-xrun-9999.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit eutils 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="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="media-libs/mesa
+ 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
+ insinto /etc/default
+ doins config/nvidia-xrun
+}