summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x11-misc/nvidia-settings/Manifest1
-rw-r--r--x11-misc/nvidia-settings/nvidia-settings-384.98.ebuild73
2 files changed, 74 insertions, 0 deletions
diff --git a/x11-misc/nvidia-settings/Manifest b/x11-misc/nvidia-settings/Manifest
new file mode 100644
index 00000000..6c00b54b
--- /dev/null
+++ b/x11-misc/nvidia-settings/Manifest
@@ -0,0 +1 @@
+DIST nvidia-settings-384.98.tar.gz 2136346 SHA256 7ff2d6c31581a15acb25c6a2b04379bb32f545dbdedd0e2234315d953611dc6a SHA512 c4427241b15ffe5ecb0355d3e512c517d5ad1a5f5335c187dcde379074021a4990db9c048502e62a7ce9dda651b017e06d8117fb7c724bd3a08f6fbd10b49e26 WHIRLPOOL 0a023d349e084264da4f0816069949145dcf20d744a229dc35834f631d83077ed2aba40d9e6ae71449acf5f2b356ae372768dda8393b7814c0899d7aadf770c3
diff --git a/x11-misc/nvidia-settings/nvidia-settings-384.98.ebuild b/x11-misc/nvidia-settings/nvidia-settings-384.98.ebuild
new file mode 100644
index 00000000..475cd90a
--- /dev/null
+++ b/x11-misc/nvidia-settings/nvidia-settings-384.98.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="NVIDIA Linux X11 Settings Utility"
+HOMEPAGE="http://www.nvidia.com/"
+SRC_URI="https://github.com/NVIDIA/nvidia-settings/archive/${PV}.tar.gz -> nvidia-settings-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* amd64"
+IUSE="gtk3"
+
+QA_PREBUILT=
+
+COMMON_DEPEND="
+ x11-libs/gtk+:2
+ gtk3? ( x11-libs/gtk+:3 )
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXxf86vm
+ x11-libs/gdk-pixbuf[X]
+ media-libs/mesa
+ x11-libs/pango[X]
+ x11-libs/libXv
+ x11-libs/libXrandr
+ dev-libs/glib:2
+ dev-libs/jansson
+ x11-libs/cairo
+ >=x11-libs/libvdpau-1.0"
+
+RDEPEND="${COMMON_DEPEND}
+ x11-drivers/nvidia-drivers"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ x11-proto/xproto"
+
+src_compile() {
+ einfo "Building libXNVCtrl..."
+ emake -C src/ \
+ CC="$(tc-getCC)" \
+ AR="$(tc-getAR)" \
+ RANLIB="$(tc-getRANLIB)" \
+ build-xnvctrl
+
+ einfo "Building nvidia-settings..."
+ emake -C src/ \
+ CC="$(tc-getCC)" \
+ LD="$(tc-getLD)" \
+ STRIP_CMD="$(type -P true)" \
+ NV_VERBOSE=1 \
+ NV_USE_BUNDLED_LIBJANSSON=0 \
+ NVML_AVAILABLE=0 \
+ GTK3_AVAILABLE=$(usex gtk3 1 0)
+}
+
+src_install() {
+ emake -C src/ DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" NV_USE_BUNDLED_LIBJANSSON=0 GTK3_AVAILABLE=$(usex gtk3 1 0) PREFIX=/usr DO_STRIP= install
+
+ insinto /usr/$(get_libdir)
+ doins src/libXNVCtrl/libXNVCtrl.a
+
+ insinto /usr/include/NVCtrl
+ doins src/libXNVCtrl/*.h
+
+ doicon doc/${PN}.png
+ make_desktop_entry ${PN} "NVIDIA X Server Settings" ${PN} Settings
+
+ dodoc doc/*.txt
+}