1 |
commit: fa28eacdcea52608e6a29f6e3538f02017eae331 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 29 10:29:38 2016 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 29 10:29:38 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=fa28eacd |
7 |
|
8 |
dev-util/nvidia-cuda-sdk: In main tree now |
9 |
|
10 |
dev-util/nvidia-cuda-sdk/metadata.xml | 16 --- |
11 |
.../nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.27.ebuild | 153 --------------------- |
12 |
2 files changed, 169 deletions(-) |
13 |
|
14 |
diff --git a/dev-util/nvidia-cuda-sdk/metadata.xml b/dev-util/nvidia-cuda-sdk/metadata.xml |
15 |
deleted file mode 100644 |
16 |
index 9ab4f58..0000000 |
17 |
--- a/dev-util/nvidia-cuda-sdk/metadata.xml |
18 |
+++ /dev/null |
19 |
@@ -1,16 +0,0 @@ |
20 |
-<?xml version="1.0" encoding="UTF-8"?> |
21 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
22 |
-<pkgmetadata> |
23 |
- <maintainer type="project"> |
24 |
- <email>sci@g.o</email> |
25 |
- <name>Gentoo Science Project</name> |
26 |
- </maintainer> |
27 |
- <use> |
28 |
- <flag name="opencl"> |
29 |
- Build OpenCL binaries. |
30 |
- </flag> |
31 |
- <flag name="cuda"> |
32 |
- Build CUDA binaries. |
33 |
- </flag> |
34 |
- </use> |
35 |
-</pkgmetadata> |
36 |
|
37 |
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.27.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.27.ebuild |
38 |
deleted file mode 100644 |
39 |
index 2ae29c4..0000000 |
40 |
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.27.ebuild |
41 |
+++ /dev/null |
42 |
@@ -1,153 +0,0 @@ |
43 |
-# Copyright 1999-2016 Gentoo Foundation |
44 |
-# Distributed under the terms of the GNU General Public License v2 |
45 |
-# $Id$ |
46 |
- |
47 |
-EAPI=6 |
48 |
- |
49 |
-inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator |
50 |
- |
51 |
-MYD=$(get_version_component_range 1-2) |
52 |
- |
53 |
-DESCRIPTION="NVIDIA CUDA Software Development Kit" |
54 |
-HOMEPAGE="https://developer.nvidia.com/cuda-downloads" |
55 |
-CURI="https://developer.nvidia.com/cuda-release-candidate-download" |
56 |
-SRC_URI="cuda_${PV}_linux.run" |
57 |
- |
58 |
-LICENSE="CUDPP" |
59 |
-SLOT="0" |
60 |
-KEYWORDS="~amd64 ~amd64-linux" |
61 |
-IUSE="debug +doc +examples opencl +cuda" |
62 |
- |
63 |
-RDEPEND=" |
64 |
- ~dev-util/nvidia-cuda-toolkit-${PV} |
65 |
- media-libs/freeglut |
66 |
- examples? ( |
67 |
- media-libs/freeimage |
68 |
- media-libs/glew |
69 |
- virtual/mpi |
70 |
- >=x11-drivers/nvidia-drivers-361.42[uvm] |
71 |
- )" |
72 |
-DEPEND="${RDEPEND}" |
73 |
- |
74 |
-RESTRICT="test fetch" |
75 |
- |
76 |
-S=${WORKDIR}/samples |
77 |
- |
78 |
-QA_EXECSTACK=( |
79 |
- opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint |
80 |
- opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort |
81 |
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint |
82 |
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort |
83 |
- ) |
84 |
- |
85 |
-pkg_nofetch() { |
86 |
- einfo "Please download the RHEL 7 \"runfile (local)\" installer" |
87 |
- einfo " - cuda_${P}_linux.run" |
88 |
- einfo "from ${CURI} and place it in ${DISTDIR}" |
89 |
-} |
90 |
- |
91 |
-src_unpack() { |
92 |
- unpacker |
93 |
- unpacker run_files/cuda-samples*run |
94 |
-} |
95 |
- |
96 |
-pkg_setup() { |
97 |
- if use cuda || use opencl; then |
98 |
- cuda_pkg_setup |
99 |
- fi |
100 |
-} |
101 |
- |
102 |
-src_prepare() { |
103 |
- export RAWLDFLAGS="$(raw-ldflags)" |
104 |
-# epatch "${FILESDIR}"/${P}-asneeded.patch |
105 |
- |
106 |
- sed \ |
107 |
- -e 's:-O2::g' \ |
108 |
- -e 's:-O3::g' \ |
109 |
- -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \ |
110 |
- -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \ |
111 |
- -e "/CC/s:gcc:$(tc-getCC):g" \ |
112 |
- -e "/GCC/s:g++:$(tc-getCXX):g" \ |
113 |
- -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \ |
114 |
- -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \ |
115 |
- -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \ |
116 |
- -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \ |
117 |
- -e 's:-Wimplicit::g' \ |
118 |
- -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \ |
119 |
- -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \ |
120 |
- -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \ |
121 |
- -i $(find . -type f -name "Makefile") || die |
122 |
- |
123 |
-# -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \ |
124 |
- find common/inc/GL -delete || die |
125 |
- find . -type f -name "*\.a" -delete || die |
126 |
- |
127 |
- default |
128 |
-} |
129 |
- |
130 |
-src_compile() { |
131 |
- use examples || return |
132 |
- local myopts verbose="verbose=1" |
133 |
- use debug && myopts+=" dbg=1" |
134 |
- export FAKEROOTKEY=1 # Workaround sandbox issue in #462602 |
135 |
- emake \ |
136 |
- cuda-install="${EPREFIX}/opt/cuda" \ |
137 |
- CUDA_PATH="${EPREFIX}/opt/cuda/" \ |
138 |
- MPI_GCC=10 \ |
139 |
- ${myopts} ${verbose} |
140 |
-} |
141 |
- |
142 |
-src_test() { |
143 |
- local _dir _subdir |
144 |
- |
145 |
- addwrite /dev/nvidiactl |
146 |
- addwrite /dev/nvidia0 |
147 |
- |
148 |
- for _dir in {0..9}*; do |
149 |
- pushd ${_dir} > /dev/null |
150 |
- for _subdir in *; do |
151 |
- emake -C ${_subdir} run |
152 |
- done |
153 |
- popd > /dev/null |
154 |
- done |
155 |
-} |
156 |
- |
157 |
-src_install() { |
158 |
- local i j f t crap="" |
159 |
- |
160 |
- if use doc; then |
161 |
- ebegin "Installing docs ..." |
162 |
- treecopy $(find -type f \( -name readme.txt -o -name "*.pdf" \)) "${ED}"/usr/share/doc/${PF}/ |
163 |
- docompress -x $(find "${ED}"/usr/share/doc/${PF}/ -type f -name readme.txt | sed -e "s:${ED}::") |
164 |
- eend |
165 |
- fi |
166 |
- |
167 |
- crap+=" *.txt Samples.htm*" |
168 |
- |
169 |
- ebegin "Cleaning before installation..." |
170 |
- for i in ${crap}; do |
171 |
- if [[ -e ${i} ]]; then |
172 |
- find ${i} -delete || die |
173 |
- fi |
174 |
- done |
175 |
- find -type f \( -name "*.o" -o -name "*.pdf" -o -name "readme.txt" \) -delete || die |
176 |
- eend |
177 |
- |
178 |
- ebegin "Moving files..." |
179 |
- for f in $(find .); do |
180 |
- local t="$(dirname ${f})" |
181 |
- if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then |
182 |
- continue |
183 |
- fi |
184 |
- if [[ ! -d ${f} ]]; then |
185 |
- if [[ -x ${f} ]]; then |
186 |
- exeinto /opt/cuda/sdk/${t} |
187 |
- doexe ${f} |
188 |
- else |
189 |
- insinto /opt/cuda/sdk/${t} |
190 |
- doins ${f} |
191 |
- fi |
192 |
- fi |
193 |
- done |
194 |
- eend |
195 |
-} |