commit:     e757802cb8a7292e98da694ff4943eb315e7ee9a
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Tue Nov 18 12:16:43 2014 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Tue Nov 18 12:16:43 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=e757802c

New ebuild: nvidia-cuda-gdk

---
 dev-util/nvidia-cuda-gdk/ChangeLog                 |   9 ++
 dev-util/nvidia-cuda-gdk/files/nvidia-healthmon    |   9 ++
 dev-util/nvidia-cuda-gdk/metadata.xml              |  17 ++++
 .../nvidia-cuda-gdk/nvidia-cuda-gdk-340.29.ebuild  | 113 +++++++++++++++++++++
 licenses/NVIDIA-gdk                                |  32 ++++++
 5 files changed, 180 insertions(+)

diff --git a/dev-util/nvidia-cuda-gdk/ChangeLog 
b/dev-util/nvidia-cuda-gdk/ChangeLog
new file mode 100644
index 0000000..6e289bb
--- /dev/null
+++ b/dev-util/nvidia-cuda-gdk/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-util/nvidia-cuda-gdk
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*nvidia-cuda-gdk-340.29 (18 Nov 2014)
+
+  18 Nov 2014; Marius Brehler <[email protected]>
+  +files/nvidia-healthmon, +metadata.xml, +nvidia-cuda-gdk-340.29.ebuild:
+  Inital commit.

diff --git a/dev-util/nvidia-cuda-gdk/files/nvidia-healthmon 
b/dev-util/nvidia-cuda-gdk/files/nvidia-healthmon
new file mode 100644
index 0000000..007c9dc
--- /dev/null
+++ b/dev-util/nvidia-cuda-gdk/files/nvidia-healthmon
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+while getopts "c" opt
+do
+       case $opt in
+               c) exec /opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon "$@";;
+               *) exec /opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon -c 
/etc/nvidia-healtmon/nvidia-healtmon.conf "$@";;
+       esac
+done
\ No newline at end of file

diff --git a/dev-util/nvidia-cuda-gdk/metadata.xml 
b/dev-util/nvidia-cuda-gdk/metadata.xml
new file mode 100644
index 0000000..d8e7e3d
--- /dev/null
+++ b/dev-util/nvidia-cuda-gdk/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <herd>sci</herd>
+  <maintainer>
+    <email>[email protected]</email>
+    <name>Marius Brehler</name>
+  </maintainer>
+  <use>
+    <flag name="healthmon">
+                       Install nvidia-healthmon.
+               </flag>
+    <flag name="nvml">
+                       Install the NVIDIA Managment Library.
+               </flag>
+  </use>
+</pkgmetadata>

diff --git a/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-340.29.ebuild 
b/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-340.29.ebuild
new file mode 100644
index 0000000..f5f50f8
--- /dev/null
+++ b/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-340.29.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils toolchain-funcs portability unpacker versionator
+
+MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
+
+DESCRIPTION="NVIDIA GPU Deployment Kit"
+HOMEPAGE="https://developer.nvidia.com/gpu-deployment-kit";
+CURI="http://developer.download.nvidia.com/compute/cuda/6_5/rel/installers";
+SRC_URI="
+       amd64? ( ${CURI}/cuda_${MYD}_gdk_linux_64.run )
+       x86? ( ${CURI}/cuda_${MYD}_gdk_linux_32.run )"
+
+LICENSE="NVIDIA-gdk"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+healthmon +nvml +doc examples"
+
+RDEPEND="
+>=dev-util/nvidia-cuda-toolkit-6.5
+examples? ( >=x11-drivers/nvidia-drivers-340.32[uvm] )
+media-libs/freeglut
+"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/payload"
+
+RESTRICT="binchecks"
+
+src_unpack() {
+       unpacker
+}
+
+src_compile() {
+       use examples || return
+       cd "${S}"/nvml/example
+       emake || die
+}
+
+src_install() {
+       cd "${S}/"
+
+       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-${PV}"
+                               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}/"
+                       eend
+               fi
+
+               if use healthmon ; then
+                       ebegin "Installing nvml docs..."
+                               doman nvml/doc/man/man3/*.3
+                               cd "${S}/nvml/"
+                               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}/"
+                       eend
+               fi
+       fi
+
+       ebegin "Cleaning before installation..."
+               find -type f \( -name "*.o" -o -name "*.pdf" -o -name "*.txt" 
-o -name "*.3" \) -delete || die
+       eend
+
+       if use healthmon; then
+               ebegin "Installing nvidia-healthmon"
+               exeinto "/opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon-tests/"
+               doexe 
"nvidia-healthmon/nvidia-healthmon-amd64-${PV}/bin"/gpu_rdma_bw
+               doexe 
"nvidia-healthmon/nvidia-healthmon-amd64-${PV}/bin"/ibv_rdma_bw
+               doexe 
"nvidia-healthmon/nvidia-healthmon-amd64-${PV}/bin"/rdma_test.sh
+               exeinto "/opt/cuda/gdk/nvidia-healthmon/"
+               doexe 
"nvidia-healthmon/nvidia-healthmon-amd64-${PV}"/nvidia-healthmon
+               insinto "/etc/nvidia-healthmon/"
+               doins 
"nvidia-healthmon/nvidia-healthmon-amd64-${PV}"/nvidia-healthmon.conf
+
+               # install launch script
+               exeinto /opt/bin
+               doexe "${FILESDIR}"/nvidia-healthmon
+       fi
+
+       if use nvml; then
+               ebegin "Installing nvml"
+               cd "${S}/nvml"
+               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
+               cd "${S}/"
+       fi
+
+}

diff --git a/licenses/NVIDIA-gdk b/licenses/NVIDIA-gdk
new file mode 100644
index 0000000..769c505
--- /dev/null
+++ b/licenses/NVIDIA-gdk
@@ -0,0 +1,32 @@
+Copyright 1993-2014 NVIDIA Corporation.  All rights reserved.
+
+NOTICE TO USER:   
+
+This source code is subject to NVIDIA ownership rights under U.S. and 
+international Copyright laws.  Users and possessors of this source code 
+are hereby granted a nonexclusive, royalty-free license to use this code 
+in individual and commercial software.
+
+NVIDIA MAKES NO REPRESENTATION ABOUT THE SUITABILITY OF THIS SOURCE 
+CODE FOR ANY PURPOSE.  IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR 
+IMPLIED WARRANTY OF ANY KIND.  NVIDIA DISCLAIMS ALL WARRANTIES WITH 
+REGARD TO THIS SOURCE CODE, INCLUDING ALL IMPLIED WARRANTIES OF 
+MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
+IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL, 
+OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 
+OF USE, DATA OR PROFITS,  WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 
+OR OTHER TORTIOUS ACTION,  ARISING OUT OF OR IN CONNECTION WITH THE USE 
+OR PERFORMANCE OF THIS SOURCE CODE.  
+
+U.S. Government End Users.   This source code is a "commercial item" as 
+that term is defined at  48 C.F.R. 2.101 (OCT 1995), consisting  of 
+"commercial computer  software"  and "commercial computer software 
+documentation" as such terms are  used in 48 C.F.R. 12.212 (SEPT 1995) 
+and is provided to the U.S. Government only as a commercial end item.  
+Consistent with 48 C.F.R.12.212 and 48 C.F.R. 227.7202-1 through 
+227.7202-4 (JUNE 1995), all U.S. Government End Users acquire the 
+source code with only those rights set forth herein. 
+
+Any use of this source code in individual and commercial software must 
+include, in the user documentation and internal comments to the code,
+the above Disclaimer and U.S. Government End Users Notice.

Reply via email to