1 |
commit: 0fbf4ff901a3abef16f79d40db0330fbe1e46608 |
2 |
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de> |
3 |
AuthorDate: Tue Jul 21 08:07:14 2015 +0000 |
4 |
Commit: Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 21 08:07:14 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=0fbf4ff9 |
7 |
|
8 |
dev-util/nvidia-cuda-gdk: Version bump |
9 |
|
10 |
Package-Manager: portage-2.2.20 |
11 |
|
12 |
dev-util/nvidia-cuda-gdk/ChangeLog | 6 + |
13 |
dev-util/nvidia-cuda-gdk/metadata.xml | 3 + |
14 |
.../nvidia-cuda-gdk/nvidia-cuda-gdk-352.07.ebuild | 183 +++++++++++++++++++++ |
15 |
3 files changed, 192 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/nvidia-cuda-gdk/ChangeLog b/dev-util/nvidia-cuda-gdk/ChangeLog |
18 |
index a338fa4..7e01133 100644 |
19 |
--- a/dev-util/nvidia-cuda-gdk/ChangeLog |
20 |
+++ b/dev-util/nvidia-cuda-gdk/ChangeLog |
21 |
@@ -2,6 +2,12 @@ |
22 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
23 |
# $Header: $ |
24 |
|
25 |
+*nvidia-cuda-gdk-352.07 (21 Jul 2015) |
26 |
+ |
27 |
+ 21 Jul 2015; Marius Brehler <marbre@××××××××××××××.de> |
28 |
+ +nvidia-cuda-gdk-352.07.ebuild, metadata.xml: |
29 |
+ dev-util/nvidia-cuda-gdk: Version bump |
30 |
+ |
31 |
*nvidia-cuda-gdk-346.46 (19 Mar 2015) |
32 |
|
33 |
19 Mar 2015; Marius Brehler <marbre@××××××××××××××.de> |
34 |
|
35 |
diff --git a/dev-util/nvidia-cuda-gdk/metadata.xml b/dev-util/nvidia-cuda-gdk/metadata.xml |
36 |
index 74c0292..73b4e6c 100644 |
37 |
--- a/dev-util/nvidia-cuda-gdk/metadata.xml |
38 |
+++ b/dev-util/nvidia-cuda-gdk/metadata.xml |
39 |
@@ -18,5 +18,8 @@ |
40 |
<flag name="nvml"> |
41 |
Install the NVIDIA Managment Library. |
42 |
</flag> |
43 |
+ <flag name="nvvs"> |
44 |
+ Install the NVIDIA Validation Suite. |
45 |
+ </flag> |
46 |
</use> |
47 |
</pkgmetadata> |
48 |
|
49 |
diff --git a/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-352.07.ebuild b/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-352.07.ebuild |
50 |
new file mode 100644 |
51 |
index 0000000..d090b22 |
52 |
--- /dev/null |
53 |
+++ b/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-352.07.ebuild |
54 |
@@ -0,0 +1,183 @@ |
55 |
+# Copyright 1999-2015 Gentoo Foundation |
56 |
+# Distributed under the terms of the GNU General Public License v2 |
57 |
+# $Header: $ |
58 |
+ |
59 |
+EAPI=5 |
60 |
+ |
61 |
+inherit eutils portability toolchain-funcs unpacker versionator |
62 |
+ |
63 |
+MYD=$(get_version_component_range 1)_$(get_version_component_range 2) |
64 |
+ |
65 |
+HEALTMON_PV="352.06" |
66 |
+NVVS_PV="352.06" |
67 |
+ |
68 |
+DESCRIPTION="NVIDIA GPU Deployment Kit" |
69 |
+HOMEPAGE="http://developer.nvidia.com/cuda" |
70 |
+CURI="https://developer.nvidia.com/rdp/cuda-75-release-candidate" |
71 |
+SRC_URI="cuda_${MYD}_rc_gdk_linux.run" |
72 |
+ |
73 |
+LICENSE="NVIDIA-gdk" |
74 |
+SLOT="0" |
75 |
+KEYWORDS="-* ~amd64" |
76 |
+IUSE="+healthmon +nvml +doc examples +nvvs" |
77 |
+ |
78 |
+RDEPEND=" |
79 |
+ >=dev-util/nvidia-cuda-toolkit-7.5 |
80 |
+ media-libs/freeglut |
81 |
+ examples? ( >=x11-drivers/nvidia-drivers-352.07[uvm] ) |
82 |
+ " |
83 |
+DEPEND="${RDEPEND}" |
84 |
+ |
85 |
+S="${WORKDIR}/payload" |
86 |
+ |
87 |
+QA_PREBUILT="/opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon |
88 |
+ /opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon-tests/gpu_rdma_bw |
89 |
+ /opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon-tests/ibv_rdma_bw |
90 |
+ /opt/cuda/gdk/nvml/lib/libnvidia-ml.so.1 |
91 |
+ /opt/cuda/gdk/nvvs/plugins/libMemory.so.1 |
92 |
+ /opt/cuda/gdk/nvvs/plugins/libDeployment.so.1 |
93 |
+ /opt/cuda/gdk/nvvs/plugins/libPcie.so.1 |
94 |
+ /opt/cuda/gdk/nvvs/nvvs |
95 |
+ " |
96 |
+ |
97 |
+RESTRICT="fetch" |
98 |
+ |
99 |
+pkg_nofetch() { |
100 |
+ einfo "Please download the RHEL 7 \"runfile (local)\" installer" |
101 |
+ einfo " - cuda_${MYD}_rc_gdk_linux.run" |
102 |
+ einfo "from ${CURI} and place it in ${DISTDIR}" |
103 |
+} |
104 |
+ |
105 |
+src_unpack() { |
106 |
+ unpacker |
107 |
+} |
108 |
+ |
109 |
+src_compile() { |
110 |
+ use examples || return |
111 |
+ cd "${S}"/nvml/example || die |
112 |
+ emake |
113 |
+} |
114 |
+ |
115 |
+src_install() { |
116 |
+ local i j f t |
117 |
+ |
118 |
+ if use doc; then |
119 |
+ if use healthmon ; then |
120 |
+ ebegin "Installing healthmon docs..." |
121 |
+ doman nvidia-healthmon/docs/man/man8/nvidia-healthmon.8 |
122 |
+ cd "${S}/nvidia-healthmon/nvidia-healthmon-amd64-${HEALTMON_PV}" || die |
123 |
+ treecopy \ |
124 |
+ $(find -type f \( -name README.txt -name COPYING.txt -o -name "*.pdf" \)) \ |
125 |
+ "${ED}"/usr/share/doc/${PF}/nvidia-healthmon/ |
126 |
+ docompress -x \ |
127 |
+ $(find "${ED}"/usr/share/doc/${PF}/nvidia-healthmon/ -type f -name readme.txt | sed -e "s:${ED}::") |
128 |
+ cd "${S}/" || die |
129 |
+ eend |
130 |
+ fi |
131 |
+ |
132 |
+ if use nvml ; then |
133 |
+ ebegin "Installing nvml docs..." |
134 |
+ doman nvml/doc/man/man3/*.3 |
135 |
+ cd "${S}/nvml/" || die |
136 |
+ treecopy \ |
137 |
+ $(find -type f \( -name README.txt -name COPYRIGHT.txt -o -name "*.pdf" \)) \ |
138 |
+ "${ED}"/usr/share/doc/${PF}/nvml/ |
139 |
+ docompress -x \ |
140 |
+ $(find "${ED}"/usr/share/doc/${PF}/nvml/ -type f -name readme.txt | sed -e "s:${ED}::") |
141 |
+ cd "${S}/" || die |
142 |
+ eend |
143 |
+ fi |
144 |
+ |
145 |
+ if use nvvs ; then |
146 |
+ ebegin "Installing validation suite docs..." |
147 |
+ doman "nvidia-validation-suite/nvidia-validation-suite-amd64-${NVVS_PV}/docs/man/man8/nvvs.8" |
148 |
+ eend |
149 |
+ fi |
150 |
+ |
151 |
+ fi |
152 |
+ |
153 |
+ ebegin "Cleaning before installation..." |
154 |
+ find -type f \ |
155 |
+ \( -name "*.o" -o -name "*.pdf" -o -name "*.txt" -o -name "*.3" -o -name "*.8" \) -delete \ |
156 |
+ || die |
157 |
+ rm -f "${S}"/nvml/lib/libnvidia-ml.so |
158 |
+ rm -f "${S}/nvidia-validation-suite/nvidia-validation-suite-amd64-${NVVS_PV}/plugins"/libDeployment.so |
159 |
+ rm -f "${S}/nvidia-validation-suite/nvidia-validation-suite-amd64-${NVVS_PV}/plugins"/libMemory.so |
160 |
+ rm -f "${S}/nvidia-validation-suite/nvidia-validation-suite-amd64-${NVVS_PV}/plugins"/libPcie.so |
161 |
+ rm -f "${S}/nvidia-validation-suite/nvidia-validation-suite-amd64-${NVVS_PV}"/nvidia-vs |
162 |
+ eend |
163 |
+ |
164 |
+ if use healthmon; then |
165 |
+ ebegin "Installing nvidia-healthmon" |
166 |
+ exeinto /opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon-tests/ |
167 |
+ doexe "nvidia-healthmon/nvidia-healthmon-amd64-${HEALTMON_PV}/bin"/{*,*.*} |
168 |
+ exeinto /opt/cuda/gdk/nvidia-healthmon/ |
169 |
+ doexe "nvidia-healthmon/nvidia-healthmon-amd64-${HEALTMON_PV}"/nvidia-healthmon |
170 |
+ insinto /etc/nvidia-healthmon/ |
171 |
+ doins "nvidia-healthmon/nvidia-healthmon-amd64-${HEALTMON_PV}"/nvidia-healthmon.conf |
172 |
+ |
173 |
+ # install launch script |
174 |
+ exeinto /opt/bin |
175 |
+ doexe "${FILESDIR}"/nvidia-healthmon |
176 |
+ eend |
177 |
+ fi |
178 |
+ |
179 |
+ if use nvml; then |
180 |
+ ebegin "Installing nvml" |
181 |
+ cd "${S}/nvml" || die |
182 |
+ for f in $(find .); do |
183 |
+ local t="$(dirname ${f})" |
184 |
+ if [[ "${t/obj\/}" != "${t}" || "${t##*.}" == "a" ]]; then |
185 |
+ continue |
186 |
+ fi |
187 |
+ |
188 |
+ if [[ ! -d "${f}" ]]; then |
189 |
+ if [[ -x "${f}" ]]; then |
190 |
+ exeinto "/opt/cuda/gdk/nvml/${t}" |
191 |
+ doexe "${f}" |
192 |
+ else |
193 |
+ insinto "/opt/cuda/gdk/nvml/${t}" |
194 |
+ doins "${f}" |
195 |
+ fi |
196 |
+ fi |
197 |
+ done |
198 |
+ |
199 |
+ dosym libnvidia-ml.so.1 /opt/cuda/gdk/nvml/lib/libnvidia-ml.so |
200 |
+ cd "${S}/" || die |
201 |
+ eend |
202 |
+ fi |
203 |
+ |
204 |
+ if use nvvs; then |
205 |
+ ebegin "Installing validation suite" |
206 |
+ cd "${S}/nvidia-validation-suite/nvidia-validation-suite-amd64-${NVVS_PV}/" || die |
207 |
+ |
208 |
+ insinto /etc/nvidia-validation-suite/ |
209 |
+ doins nvvs.conf |
210 |
+ rm nvvs.conf || die |
211 |
+ |
212 |
+ for f in $(find .); do |
213 |
+ local t="$(dirname ${f})" |
214 |
+ if [[ "${t/obj\/}" != "${t}" || "${t##*.}" == "a" ]]; then |
215 |
+ continue |
216 |
+ fi |
217 |
+ |
218 |
+ if [[ ! -d "${f}" ]]; then |
219 |
+ if [[ -x "${f}" ]]; then |
220 |
+ exeinto "/opt/cuda/gdk/nvvs/${t}" |
221 |
+ doexe "${f}" |
222 |
+ else |
223 |
+ insinto "/opt/cuda/gdk/nvvs/${t}" |
224 |
+ doins "${f}" |
225 |
+ fi |
226 |
+ fi |
227 |
+ done |
228 |
+ |
229 |
+ dosym libDeployment.so.1 /opt/cuda/gdk/nvvs/plugins/libDeployment.so |
230 |
+ dosym libMemory.so.1 /opt/cuda/gdk/nvvs/plugins/libMemory.so |
231 |
+ dosym libPcie.so.1 /opt/cuda/gdk/nvvs/plugins/libPcie.so |
232 |
+ |
233 |
+ dosym /opt/cuda/gdk/nvvs/nvvs /opt/bin/nvidia-vs |
234 |
+ cd "${S}/" || die |
235 |
+ eend |
236 |
+ fi |
237 |
+} |