commit:     42d510f4cadba3e7602c67cd64f0f2321a72f6d9
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Thu Mar 19 07:44:46 2015 +0000
Commit:     Christoph Junghans <ottxor <AT> gentoo <DOT> org>
CommitDate: Thu Mar 19 07:44:46 2015 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=42d510f4

dev-util/nvidia-cuda-gdk: Version bump

Package-Manager: portage-2.2.14

 dev-util/nvidia-cuda-gdk/ChangeLog                 |   6 +
 .../nvidia-cuda-gdk/nvidia-cuda-gdk-346.46.ebuild  | 121 +++++++++++++++++++++
 2 files changed, 127 insertions(+)

diff --git a/dev-util/nvidia-cuda-gdk/ChangeLog 
b/dev-util/nvidia-cuda-gdk/ChangeLog
index be83b87..a338fa4 100644
--- a/dev-util/nvidia-cuda-gdk/ChangeLog
+++ b/dev-util/nvidia-cuda-gdk/ChangeLog
@@ -2,6 +2,12 @@
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+*nvidia-cuda-gdk-346.46 (19 Mar 2015)
+
+  19 Mar 2015; Marius Brehler <[email protected]>
+  +nvidia-cuda-gdk-346.46.ebuild:
+  Version bump
+
   19 Jan 2015; Marius Brehler <[email protected]>
   nvidia-cuda-gdk-340.29.ebuild:
   Fix /opt/bin/nvidia-healthmon

diff --git a/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-346.46.ebuild 
b/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-346.46.ebuild
new file mode 100644
index 0000000..0fa56ca
--- /dev/null
+++ b/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-346.46.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils portability toolchain-funcs unpacker versionator
+
+HEALTMON_PV="346.45"
+
+DESCRIPTION="NVIDIA GPU Deployment Kit"
+HOMEPAGE="https://developer.nvidia.com/gpu-deployment-kit";
+SRC_URI="http://developer.download.nvidia.com/compute/cuda/7_0/Prod/local_installers/cuda_${PV}_gdk_linux.run";
+
+LICENSE="NVIDIA-gdk"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+IUSE="+healthmon +nvml +doc examples"
+
+RDEPEND="
+       >=dev-util/nvidia-cuda-toolkit-7.0
+       media-libs/freeglut
+       examples? ( >=x11-drivers/nvidia-drivers-346.47[uvm] )
+       "
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/payload"
+
+QA_PREBUILT="/opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon
+       /opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon-tests/gpu_rdma_bw
+       /opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon-tests/ibv_rdma_bw
+       /opt/cuda/gdk/nvml/lib/libnvidia-ml.so.1"
+
+src_unpack() {
+       unpacker
+}
+
+src_compile() {
+       use examples || return
+       cd "${S}"/nvml/example || die
+       emake
+}
+
+src_install() {
+       local i j f t
+
+       if use doc; then
+               if use healthmon ; then
+                       ebegin "Installing healthmon docs..."
+                               doman 
nvidia-healthmon/docs/man/man8/nvidia-healthmon.8
+                               cd 
"${S}/nvidia-healthmon/nvidia-healthmon-amd64-${HEALTMON_PV}" || die
+                               treecopy \
+                                       $(find -type f \( -name README.txt 
-name COPYING.txt -o -name "*.pdf" \)) \
+                                       
"${ED}"/usr/share/doc/${PF}/nvidia-healthmon/
+                               docompress -x \
+                                       $(find 
"${ED}"/usr/share/doc/${PF}/nvidia-healthmon/ -type f -name readme.txt | sed -e 
"s:${ED}::")
+                               cd "${S}/" || die
+                       eend
+               fi
+
+               if use nvml ; then
+                       ebegin "Installing nvml docs..."
+                               doman nvml/doc/man/man3/*.3
+                               cd "${S}/nvml/" || die
+                               treecopy \
+                                       $(find -type f \( -name README.txt 
-name COPYRIGHT.txt -o -name "*.pdf" \)) \
+                                       "${ED}"/usr/share/doc/${PF}/nvml/
+                               docompress -x \
+                                       $(find 
"${ED}"/usr/share/doc/${PF}/nvml/ -type f -name readme.txt | sed -e "s:${ED}::")
+                               cd "${S}/" || die
+                       eend
+               fi
+       fi
+
+       ebegin "Cleaning before installation..."
+               find -type f \
+                       \( -name "*.o" -o -name "*.pdf" -o -name "*.txt" -o 
-name "*.3" \) -delete \
+                       || die
+               rm -f "${S}"/nvml/lib/libnvidia-ml.so
+       eend
+
+       if use healthmon; then
+               ebegin "Installing nvidia-healthmon"
+                       exeinto 
/opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon-tests/
+                       doexe 
"nvidia-healthmon/nvidia-healthmon-amd64-${HEALTMON_PV}/bin"/{*,*.*}
+                       exeinto /opt/cuda/gdk/nvidia-healthmon/
+                       doexe 
"nvidia-healthmon/nvidia-healthmon-amd64-${HEALTMON_PV}"/nvidia-healthmon
+                       insinto /etc/nvidia-healthmon/
+                       doins 
"nvidia-healthmon/nvidia-healthmon-amd64-${HEALTMON_PV}"/nvidia-healthmon.conf
+
+                       # install launch script
+                       exeinto /opt/bin
+                       doexe "${FILESDIR}"/nvidia-healthmon
+               eend
+       fi
+
+       if use nvml; then
+               ebegin "Installing nvml"
+                       cd "${S}/nvml" || die
+                       for f in $(find .); do
+                               local t="$(dirname ${f})"
+                               if [[ "${t/obj\/}" != "${t}" || "${t##*.}" == 
"a" ]]; then
+                                       continue
+                               fi
+
+                               if [[ ! -d "${f}" ]]; then
+                                       if [[ -x "${f}" ]]; then
+                                               exeinto 
"/opt/cuda/gdk/nvml/${t}"
+                                               doexe "${f}"
+                                       else
+                                               insinto 
"/opt/cuda/gdk/nvml/${t}"
+                                               doins "${f}"
+                                       fi
+                               fi
+                       done
+
+                       dosym libnvidia-ml.so.1 
/opt/cuda/gdk/nvml/lib/libnvidia-ml.so
+                       cd "${S}/" || die
+               eend
+       fi
+}

Reply via email to