1 |
zerochaos 12/07/31 05:57:22 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: nvidia-cuda-toolkit-4.2.ebuild |
5 |
Log: |
6 |
bump to 4.2 and cleanup QA warnings in ebuild and from repoman |
7 |
|
8 |
(Portage version: 2.1.11.9/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.6 dev-util/nvidia-cuda-toolkit/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/metadata.xml?rev=1.6&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/metadata.xml?rev=1.6&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/metadata.xml?r1=1.5&r2=1.6 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/metadata.xml,v |
20 |
retrieving revision 1.5 |
21 |
retrieving revision 1.6 |
22 |
diff -u -r1.5 -r1.6 |
23 |
--- metadata.xml 24 Sep 2011 08:55:05 -0000 1.5 |
24 |
+++ metadata.xml 31 Jul 2012 05:57:22 -0000 1.6 |
25 |
@@ -12,9 +12,6 @@ |
26 |
<flag name='debugger'> |
27 |
Installs the CUDA debugger. |
28 |
</flag> |
29 |
- <flag name='opencl'> |
30 |
- Installs OpenCL utilities. |
31 |
- </flag> |
32 |
</use> |
33 |
</pkgmetadata> |
34 |
|
35 |
|
36 |
|
37 |
|
38 |
1.51 dev-util/nvidia-cuda-toolkit/ChangeLog |
39 |
|
40 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog?rev=1.51&view=markup |
41 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog?rev=1.51&content-type=text/plain |
42 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog?r1=1.50&r2=1.51 |
43 |
|
44 |
Index: ChangeLog |
45 |
=================================================================== |
46 |
RCS file: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v |
47 |
retrieving revision 1.50 |
48 |
retrieving revision 1.51 |
49 |
diff -u -r1.50 -r1.51 |
50 |
--- ChangeLog 21 Feb 2012 22:44:39 -0000 1.50 |
51 |
+++ ChangeLog 31 Jul 2012 05:57:22 -0000 1.51 |
52 |
@@ -1,6 +1,12 @@ |
53 |
# ChangeLog for dev-util/nvidia-cuda-toolkit |
54 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
55 |
-# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v 1.50 2012/02/21 22:44:39 spock Exp $ |
56 |
+# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v 1.51 2012/07/31 05:57:22 zerochaos Exp $ |
57 |
+ |
58 |
+*nvidia-cuda-toolkit-4.2 (31 Jul 2012) |
59 |
+ |
60 |
+ 31 Jul 2012; Rick Farina <zerochaos@g.o> |
61 |
+ +nvidia-cuda-toolkit-4.2.ebuild, metadata.xml: |
62 |
+ bump to 4.2 and cleanup QA warnings in ebuild and from repoman |
63 |
|
64 |
21 Feb 2012; MichaĆ Januszewski <spock@g.o> |
65 |
+nvidia-cuda-toolkit-3.2.ebuild: |
66 |
@@ -263,4 +269,3 @@ |
67 |
+nvidia-cuda-toolkit-2.0.ebuild: |
68 |
Initial commit. Thanks to everyone participating in bug #167685 for the |
69 |
previous versions of the ebuild. |
70 |
- |
71 |
|
72 |
|
73 |
|
74 |
1.1 dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.ebuild |
75 |
|
76 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.ebuild?rev=1.1&view=markup |
77 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.ebuild?rev=1.1&content-type=text/plain |
78 |
|
79 |
Index: nvidia-cuda-toolkit-4.2.ebuild |
80 |
=================================================================== |
81 |
# Copyright 1999-2012 Gentoo Foundation |
82 |
# Distributed under the terms of the GNU General Public License v2 |
83 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.ebuild,v 1.1 2012/07/31 05:57:22 zerochaos Exp $ |
84 |
|
85 |
EAPI=2 |
86 |
|
87 |
inherit eutils multilib unpacker |
88 |
|
89 |
DESCRIPTION="NVIDIA CUDA Toolkit" |
90 |
HOMEPAGE="http://developer.nvidia.com/cuda" |
91 |
|
92 |
CUDA_V=${PV//_/-} |
93 |
DIR_V=${CUDA_V//./_} |
94 |
DIR_V=${DIR_V//beta/Beta} |
95 |
|
96 |
BASE_URI="http://developer.download.nvidia.com/compute/cuda/${DIR_V}/rel/toolkit" |
97 |
SRC_URI="amd64? ( ${BASE_URI}/cudatoolkit_${CUDA_V}.9_linux_64_ubuntu11.04.run ) |
98 |
x86? ( ${BASE_URI}/cudatoolkit_${CUDA_V}.9_linux_32_ubuntu11.04.run )" |
99 |
|
100 |
LICENSE="NVIDIA" |
101 |
SLOT="0" |
102 |
KEYWORDS="~amd64 ~x86" |
103 |
IUSE="debugger doc profiler" |
104 |
|
105 |
RDEPEND="${DEPEND} |
106 |
>=sys-devel/binutils-2.20 |
107 |
>=sys-devel/gcc-4.5 |
108 |
debugger? ( >=sys-libs/libtermcap-compat-2.0.8-r2 ) |
109 |
!<=x11-drivers/nvidia-drivers-270.41" |
110 |
|
111 |
S="${WORKDIR}" |
112 |
|
113 |
QA_PREBUILT="opt/cuda/.*" |
114 |
QA_EXECSTACK="opt/cuda/bin/cicc" |
115 |
|
116 |
src_install() { |
117 |
local DEST=/opt/cuda |
118 |
|
119 |
into ${DEST} |
120 |
dobin bin/* |
121 |
dobin nvvm/* |
122 |
dolib $(get_libdir)/* |
123 |
|
124 |
if ! use debugger; then |
125 |
rm -f "${D}/${DEST}/bin/cuda-gdb" |
126 |
else |
127 |
insinto ${DEST}/extras |
128 |
doins -r extras/Debugger |
129 |
fi |
130 |
|
131 |
if use profiler; then |
132 |
# TODO: Use system JRE for the profiler? |
133 |
insinto ${DEST} |
134 |
doins -r libnvvp |
135 |
fperms a+x ${DEST}/libnvvp/nvvp ${DEST}/libnvvp/jre/bin/* ${DEST}/libnvvp/*.so |
136 |
|
137 |
cat > "${T}/nvv" << EOF |
138 |
#!/bin/sh |
139 |
LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:${DEST}/lib:${DEST}/lib64 ${DEST}/libnvvp/nvvp |
140 |
EOF |
141 |
dobin "${T}/nvv" |
142 |
insinto ${DEST}/extras |
143 |
doins -r extras/CUPTI |
144 |
fi |
145 |
|
146 |
chmod a-x "${D}/${DEST}/bin/nvcc.profile" |
147 |
chmod a-x "${D}/${DEST}/bin/ci_include.h" |
148 |
|
149 |
# TODO: Manuals are missing from this release. Remove the following |
150 |
# commented-out lines if they are not restored in the next releases. |
151 |
# doman does not respect DESTTREE |
152 |
#insinto ${DEST}/man/man1 |
153 |
#doins man/man1/* |
154 |
#insinto ${DEST}/man/man3 |
155 |
#doins man/man3/* |
156 |
#prepman ${DEST} |
157 |
|
158 |
insinto ${DEST}/include |
159 |
doins -r include/* |
160 |
|
161 |
insinto ${DEST}/src |
162 |
doins src/* |
163 |
|
164 |
if use doc ; then |
165 |
insinto ${DEST}/doc |
166 |
doins -r doc/* |
167 |
fi |
168 |
|
169 |
cat > "${T}/env" << EOF |
170 |
PATH=${DEST}/bin |
171 |
ROOTPATH=${DEST}/bin |
172 |
LDPATH=${DEST}/$(get_libdir) |
173 |
MANPATH=${DEST}/man |
174 |
EOF |
175 |
newenvd "${T}/env" 99cuda |
176 |
|
177 |
export CONF_LIBDIR_OVERRIDE="lib" |
178 |
# HACK: temporary workaround until CONF_LIBDIR_OVERRIDE is respected. |
179 |
export LIBDIR_amd64="lib" |
180 |
|
181 |
into ${DEST}/open64 |
182 |
dobin open64/bin/* |
183 |
libopts -m0755 |
184 |
dolib open64/lib/* |
185 |
} |
186 |
|
187 |
pkg_postinst() { |
188 |
elog "If you want to natively run the code generated by this version of the" |
189 |
elog "CUDA toolkit, you will need >=x11-drivers/nvidia-drivers-260.19.21." |
190 |
elog "" |
191 |
elog "Run '. /etc/profile' before using the CUDA toolkit. " |
192 |
} |