Gentoo Archives: gentoo-commits

From: Aisha Tammy <gentoo@×××××.cc>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-gdk/files/, dev-util/nvidia-cuda-gdk/
Date: Wed, 30 Dec 2020 21:13:24
Message-Id: 1609362063.7bf2736e491bc6d0d978b66d2e6277fdf451c026.epsilon-0@gentoo
1 commit: 7bf2736e491bc6d0d978b66d2e6277fdf451c026
2 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
3 AuthorDate: Wed Dec 30 21:01:03 2020 +0000
4 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
5 CommitDate: Wed Dec 30 21:01:03 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=7bf2736e
7
8 dev-util/nvidia-cuda-gdk: now part of NVIDIA CUDA SDK
9
10 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
11
12 dev-util/nvidia-cuda-gdk/files/nvidia-healthmon | 9 -
13 dev-util/nvidia-cuda-gdk/metadata.xml | 24 ---
14 .../nvidia-cuda-gdk/nvidia-cuda-gdk-352.79.ebuild | 187 ---------------------
15 3 files changed, 220 deletions(-)
16
17 diff --git a/dev-util/nvidia-cuda-gdk/files/nvidia-healthmon b/dev-util/nvidia-cuda-gdk/files/nvidia-healthmon
18 deleted file mode 100644
19 index caf1b004e..000000000
20 --- a/dev-util/nvidia-cuda-gdk/files/nvidia-healthmon
21 +++ /dev/null
22 @@ -1,9 +0,0 @@
23 -#!/bin/bash
24 -
25 -while getopts ":c" opt
26 -do
27 - case $opt in
28 - c) exec /opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon "$@";;
29 - *) exec /opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon -c /etc/nvidia-healthmon/nvidia-healthmon.conf "$@";;
30 - esac
31 -done
32 \ No newline at end of file
33
34 diff --git a/dev-util/nvidia-cuda-gdk/metadata.xml b/dev-util/nvidia-cuda-gdk/metadata.xml
35 deleted file mode 100644
36 index d335675d1..000000000
37 --- a/dev-util/nvidia-cuda-gdk/metadata.xml
38 +++ /dev/null
39 @@ -1,24 +0,0 @@
40 -<?xml version="1.0" encoding="UTF-8"?>
41 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
42 -<pkgmetadata>
43 - <maintainer type="person">
44 - <email>marbre@××××××××××××××.de</email>
45 - <name>Marius Brehler</name>
46 - </maintainer>
47 - <maintainer type="project">
48 - <email>sci@g.o</email>
49 - <name>Gentoo Science Project</name>
50 - </maintainer>
51 - <longdescription>
52 -The GPU Deployment Kit (previously known as the Tesla Deployment
53 -Kit) is a set of tools provided for the NVIDIA Tesla™, GRID™ and
54 -Quadro™ GPUs.
55 -</longdescription>
56 - <use>
57 - <flag name="healthmon">Install nvidia-healthmon.</flag>
58 - <flag name="nvml">Install the NVIDIA Managment Library.</flag>
59 - <flag name="nvvs">
60 -Install the NVIDIA Validation Suite.
61 -</flag>
62 - </use>
63 -</pkgmetadata>
64
65 diff --git a/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-352.79.ebuild b/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-352.79.ebuild
66 deleted file mode 100644
67 index 6a815da47..000000000
68 --- a/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-352.79.ebuild
69 +++ /dev/null
70 @@ -1,187 +0,0 @@
71 -# Copyright 1999-2018 Gentoo Foundation
72 -# Distributed under the terms of the GNU General Public License v2
73 -
74 -EAPI=6
75 -
76 -inherit eutils portability toolchain-funcs unpacker versionator
77 -
78 -MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
79 -
80 -HEALTMON_PV="${PV}"
81 -NVVS_PV="${PV}"
82 -
83 -DESCRIPTION="NVIDIA GPU Deployment Kit"
84 -HOMEPAGE="http://developer.nvidia.com/cuda"
85 -SRC_URI="http://developer.download.nvidia.com/compute/cuda/7.5/Prod/local_installers/cuda_${MYD}_gdk_linux.run"
86 -
87 -LICENSE="NVIDIA-gdk"
88 -SLOT="0"
89 -KEYWORDS="-* ~amd64"
90 -IUSE="+healthmon +nvml +doc examples +nvvs"
91 -
92 -RDEPEND="
93 - >=dev-util/nvidia-cuda-toolkit-7.5
94 - media-libs/freeglut
95 - examples? ( >=x11-drivers/nvidia-drivers-352.79[uvm] )
96 - nvvs? ( >=x11-drivers/nvidia-drivers-352.79[uvm] )
97 - "
98 -DEPEND="${RDEPEND}"
99 -
100 -S="${WORKDIR}/payload"
101 -
102 -QA_PREBUILT=(
103 - /opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon
104 - /opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon-tests/gpu_rdma_bw
105 - /opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon-tests/ibv_rdma_bw
106 - /opt/cuda/gdk/nvml/lib/libnvidia-ml.so.1
107 - /opt/cuda/gdk/nvvs/plugins/libPcie.so.1
108 - /opt/cuda/gdk/nvvs/plugins/libSmPerformance.so.1
109 - /opt/cuda/gdk/nvvs/plugins/libPerformance.so
110 - /opt/cuda/gdk/nvvs/plugins/libPower.so.1
111 - /opt/cuda/gdk/nvvs/plugins/libMemory.so.1
112 - /opt/cuda/gdk/nvvs/plugins/libPerformance.so.1
113 - /opt/cuda/gdk/nvvs/plugins/libDeployment.so.1
114 - /opt/cuda/gdk/nvvs/plugins/libSmPerformance.so
115 - /opt/cuda/gdk/nvvs/plugins/libPower.so
116 - /opt/cuda/gdk/nvvs/nvvs
117 -)
118 -
119 -src_unpack() {
120 - unpacker
121 -}
122 -
123 -src_compile() {
124 - use examples || return
125 - cd "${S}"/nvml/example || die
126 - default
127 -}
128 -
129 -src_install() {
130 - local i j f t
131 -
132 - if use doc; then
133 - if use healthmon ; then
134 - ebegin "Installing healthmon docs..."
135 - doman nvidia-healthmon/docs/man/man8/nvidia-healthmon.8
136 - cd "${S}/nvidia-healthmon/nvidia-healthmon-amd64-${HEALTMON_PV}" || die
137 - treecopy \
138 - $(find -type f \( -name README.txt -name COPYING.txt -o -name "*.pdf" \)) \
139 - "${ED}"/usr/share/doc/${PF}/nvidia-healthmon/
140 - docompress -x \
141 - $(find "${ED}"/usr/share/doc/${PF}/nvidia-healthmon/ -type f -name readme.txt | sed -e "s:${ED}::")
142 - cd "${S}/" || die
143 - eend
144 - fi
145 -
146 - if use nvml ; then
147 - ebegin "Installing nvml docs..."
148 - doman nvml/doc/man/man3/*.3
149 - cd "${S}/nvml/" || die
150 - treecopy \
151 - $(find -type f \( -name README.txt -name COPYRIGHT.txt -o -name "*.pdf" \)) \
152 - "${ED}"/usr/share/doc/${PF}/nvml/
153 - docompress -x \
154 - $(find "${ED}"/usr/share/doc/${PF}/nvml/ -type f -name readme.txt | sed -e "s:${ED}::")
155 - cd "${S}/" || die
156 - eend
157 - fi
158 -
159 - if use nvvs ; then
160 - ebegin "Installing validation suite docs..."
161 - dodoc "nvidia-validation-suite/nvidia-validation-suite-amd64-${NVVS_PV}/docs/NVIDIA_Validation_Suite_User_Guide.pdf"
162 - doman "nvidia-validation-suite/nvidia-validation-suite-amd64-${NVVS_PV}/docs/man/man8/nvvs.8"
163 - eend
164 - fi
165 -
166 - fi
167 -
168 - ebegin "Cleaning before installation..."
169 - find -type f \
170 - \( -name "*.o" -o -name "*.pdf" -o -name "*.txt" -o -name "*.3" -o -name "*.8" \) -delete \
171 - || die
172 - rm -f "${S}"/nvml/lib/libnvidia-ml.so
173 - rm -f "${S}/nvidia-validation-suite/nvidia-validation-suite-amd64-${NVVS_PV}/plugins"/libDeployment.so
174 - rm -f "${S}/nvidia-validation-suite/nvidia-validation-suite-amd64-${NVVS_PV}/plugins"/libMemory.so
175 - rm -f "${S}/nvidia-validation-suite/nvidia-validation-suite-amd64-${NVVS_PV}/plugins"/libPcie.so
176 - rm -f "${S}/nvidia-validation-suite/nvidia-validation-suite-amd64-${NVVS_PV}/plugins"/libPerformance.so
177 - rm -f "${S}/nvidia-validation-suite/nvidia-validation-suite-amd64-${NVVS_PV}/plugins"/libPower.so
178 - rm -f "${S}/nvidia-validation-suite/nvidia-validation-suite-amd64-${NVVS_PV}/plugins"/libSmPerformance.so
179 - rm -f "${S}/nvidia-validation-suite/nvidia-validation-suite-amd64-${NVVS_PV}"/nvidia-vs
180 - eend
181 -
182 - if use healthmon; then
183 - ebegin "Installing nvidia-healthmon"
184 - exeinto /opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon-tests/
185 - doexe "nvidia-healthmon/nvidia-healthmon-amd64-${HEALTMON_PV}/bin"/{*,*.*}
186 - exeinto /opt/cuda/gdk/nvidia-healthmon/
187 - doexe "nvidia-healthmon/nvidia-healthmon-amd64-${HEALTMON_PV}"/nvidia-healthmon
188 - insinto /etc/nvidia-healthmon/
189 - doins "nvidia-healthmon/nvidia-healthmon-amd64-${HEALTMON_PV}"/nvidia-healthmon.conf
190 -
191 - # install launch script
192 - exeinto /opt/bin
193 - doexe "${FILESDIR}"/nvidia-healthmon
194 - eend
195 - fi
196 -
197 - if use nvml; then
198 - ebegin "Installing nvml"
199 - cd "${S}/nvml" || die
200 - for f in $(find .); do
201 - local t="$(dirname ${f})"
202 - if [[ "${t/obj\/}" != "${t}" || "${t##*.}" == "a" ]]; then
203 - continue
204 - fi
205 -
206 - if [[ ! -d "${f}" ]]; then
207 - if [[ -x "${f}" ]]; then
208 - exeinto "/opt/cuda/gdk/nvml/${t}"
209 - doexe "${f}"
210 - else
211 - insinto "/opt/cuda/gdk/nvml/${t}"
212 - doins "${f}"
213 - fi
214 - fi
215 - done
216 -
217 - dosym libnvidia-ml.so.1 /opt/cuda/gdk/nvml/lib/libnvidia-ml.so
218 - cd "${S}/" || die
219 - eend
220 - fi
221 -
222 - if use nvvs; then
223 - ebegin "Installing validation suite"
224 - cd "${S}/nvidia-validation-suite/nvidia-validation-suite-amd64-${NVVS_PV}/" || die
225 -
226 - insinto /etc/nvidia-validation-suite/
227 - doins nvvs.conf
228 - rm nvvs.conf || die
229 -
230 - for f in $(find .); do
231 - local t="$(dirname ${f})"
232 - if [[ "${t/obj\/}" != "${t}" || "${t##*.}" == "a" ]]; then
233 - continue
234 - fi
235 -
236 - if [[ ! -d "${f}" ]]; then
237 - if [[ -x "${f}" ]]; then
238 - exeinto "/opt/cuda/gdk/nvvs/${t}"
239 - doexe "${f}"
240 - else
241 - insinto "/opt/cuda/gdk/nvvs/${t}"
242 - doins "${f}"
243 - fi
244 - fi
245 - done
246 -
247 - dosym libDeployment.so.1 /opt/cuda/gdk/nvvs/plugins/libDeployment.so
248 - dosym libMemory.so.1 /opt/cuda/gdk/nvvs/plugins/libMemory.so
249 - dosym libPcie.so.1 /opt/cuda/gdk/nvvs/plugins/libPcie.so
250 - dosym libPerformance.so.1 /opt/cuda/gdk/nvvs/plugins/libPerformance.so
251 - dosym libPower.so.1 /opt/cuda/gdk/nvvs/plugins/libPower.so
252 - dosym libSmPerformance.so.1 /opt/cuda/gdk/nvvs/plugins/libSmPerformance.so
253 -
254 - dosym ../cuda/gdk/nvvs/nvvs /opt/bin/nvidia-vs
255 - eend
256 - fi
257 -}