From: | "Michael Januszewski (spock)" <spock@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-util/nvidia-cuda-toolkit: ChangeLog nvidia-cuda-toolkit-3.2.ebuild |
Date: | Wed, 01 Dec 2010 21:58:07 |
Message-Id: | 20101201215752.B073020054@flycatcher.gentoo.org |
1 | spock 10/12/01 21:57:52 |
2 | |
3 | Modified: ChangeLog |
4 | Added: nvidia-cuda-toolkit-3.2.ebuild |
5 | Log: |
6 | Version bump. |
7 | |
8 | (Portage version: 2.1.9.25/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.32 dev-util/nvidia-cuda-toolkit/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog?rev=1.32&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog?rev=1.32&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog?r1=1.31&r2=1.32 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v |
20 | retrieving revision 1.31 |
21 | retrieving revision 1.32 |
22 | diff -u -r1.31 -r1.32 |
23 | --- ChangeLog 6 Oct 2010 09:09:28 -0000 1.31 |
24 | +++ ChangeLog 1 Dec 2010 21:57:52 -0000 1.32 |
25 | @@ -1,6 +1,12 @@ |
26 | # ChangeLog for dev-util/nvidia-cuda-toolkit |
27 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v 1.31 2010/10/06 09:09:28 ssuominen Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v 1.32 2010/12/01 21:57:52 spock Exp $ |
30 | + |
31 | +*nvidia-cuda-toolkit-3.2 (01 Dec 2010) |
32 | + |
33 | + 01 Dec 2010; MichaĆ Januszewski <spock@g.o> |
34 | + +nvidia-cuda-toolkit-3.2.ebuild: |
35 | + Version bump. |
36 | |
37 | 06 Oct 2010; Samuli Suominen <ssuominen@g.o> |
38 | nvidia-cuda-toolkit-3.1.ebuild: |
39 | |
40 | |
41 | |
42 | 1.1 dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-3.2.ebuild |
43 | |
44 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-3.2.ebuild?rev=1.1&view=markup |
45 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-3.2.ebuild?rev=1.1&content-type=text/plain |
46 | |
47 | Index: nvidia-cuda-toolkit-3.2.ebuild |
48 | =================================================================== |
49 | # Copyright 1999-2010 Gentoo Foundation |
50 | # Distributed under the terms of the GNU General Public License v2 |
51 | # $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-3.2.ebuild,v 1.1 2010/12/01 21:57:52 spock Exp $ |
52 | |
53 | EAPI=2 |
54 | |
55 | inherit eutils multilib |
56 | |
57 | DESCRIPTION="NVIDIA CUDA Toolkit" |
58 | HOMEPAGE="http://developer.nvidia.com/cuda" |
59 | RESTRICT="binchecks" |
60 | |
61 | CUDA_V=${PV//_/-} |
62 | DIR_V=${CUDA_V//./_} |
63 | DIR_V=${DIR_V//beta/Beta} |
64 | |
65 | BASE_URI="http://developer.download.nvidia.com/compute/cuda/${DIR_V}_prod/toolkit" |
66 | SRC_URI="amd64? ( ${BASE_URI}/cudatoolkit_${CUDA_V}.16_linux_64_ubuntu10.04.run ) |
67 | x86? ( ${BASE_URI}/cudatoolkit_${CUDA_V}.16_linux_32_ubuntu10.04.run )" |
68 | |
69 | LICENSE="NVIDIA" |
70 | SLOT="0" |
71 | KEYWORDS="~amd64 ~x86" |
72 | IUSE="debugger doc profiler" |
73 | |
74 | DEPEND="!dev-util/nvidia-cuda-profiler" |
75 | RDEPEND="${DEPEND} |
76 | >=sys-devel/binutils-2.20 |
77 | >=sys-devel/gcc-4.0 |
78 | profiler? ( x86? ( |
79 | x11-libs/qt-gui |
80 | x11-libs/qt-core |
81 | x11-libs/qt-assistant |
82 | x11-libs/qt-sql[sqlite] ) |
83 | media-libs/libpng:1.2 |
84 | ) |
85 | debugger? ( >=sys-libs/libtermcap-compat-2.0.8-r2 )" |
86 | |
87 | S="${WORKDIR}" |
88 | |
89 | #QA_DT_HASH_x86="opt/cuda/.*" |
90 | #QA_DT_HASH_amd64="opt/cuda/.*" |
91 | |
92 | src_unpack() { |
93 | for f in ${A} ; do |
94 | if [ "${f//*.run/}" == "" ]; then |
95 | unpack_makeself ${f} |
96 | fi |
97 | done |
98 | } |
99 | |
100 | src_install() { |
101 | local DEST=/opt/cuda |
102 | |
103 | into ${DEST} |
104 | dobin bin/* |
105 | dolib $(get_libdir)/* |
106 | |
107 | if ! use debugger; then |
108 | rm -f "${D}/${DEST}/bin/cuda-gdb" |
109 | fi |
110 | |
111 | chmod a-x "${D}/${DEST}/bin/nvcc.profile" |
112 | |
113 | # TODO: Manuals are missing from this release. Remove the following |
114 | # commented-out lines if they are not restored in the next releases. |
115 | # doman does not respect DESTTREE |
116 | #insinto ${DEST}/man/man1 |
117 | #doins man/man1/* |
118 | #insinto ${DEST}/man/man3 |
119 | #doins man/man3/* |
120 | #prepman ${DEST} |
121 | |
122 | insinto ${DEST}/include |
123 | doins -r include/* |
124 | |
125 | insinto ${DEST}/src |
126 | doins src/* |
127 | |
128 | if use doc ; then |
129 | insinto ${DEST}/doc |
130 | doins -r doc/* |
131 | fi |
132 | |
133 | cat > "${T}/env" << EOF |
134 | PATH=${DEST}/bin |
135 | ROOTPATH=${DEST}/bin |
136 | LDPATH=${DEST}/$(get_libdir) |
137 | MANPATH=${DEST}/man |
138 | EOF |
139 | newenvd "${T}/env" 99cuda |
140 | |
141 | if use profiler; then |
142 | local target="computeprof" |
143 | |
144 | into ${DEST}/${target} |
145 | dobin ${target}/bin/${target} |
146 | |
147 | cat > "${T}/env" << EOF |
148 | PATH=${DEST}/${target}/bin |
149 | ROOTPATH=${DEST}/${target}/bin |
150 | EOF |
151 | if use x86 ; then |
152 | dosym /usr/bin/assistant ${DEST}/${target}/bin |
153 | |
154 | insinto ${DEST}/${target}/bin |
155 | doins ${target}/bin/cudaapitrace.so |
156 | else |
157 | dobin ${target}/bin/assistant |
158 | insinto ${DEST}/${target}/bin |
159 | doins ${target}/bin/*.so* |
160 | insinto ${DEST}/${target}/bin/sqldrivers |
161 | doins ${target}/bin/sqldrivers/* |
162 | |
163 | cat >> "${T}/env" << EOF |
164 | LDPATH=${DEST}/${target}/bin |
165 | EOF |
166 | fi |
167 | |
168 | newenvd "${T}/env" 99${target} |
169 | |
170 | if use doc; then |
171 | insinto ${DEST}/${target} |
172 | doins ${target}/*.txt |
173 | insinto ${DEST}/${target}/doc |
174 | doins ${target}/doc/* |
175 | insinto ${DEST}/${target}/projects |
176 | doins ${target}/projects/* |
177 | fi |
178 | |
179 | make_desktop_entry /opt/cuda/computeprof/bin/computeprof "NVIDIA Compute Visual Profiler" |
180 | fi |
181 | |
182 | export CONF_LIBDIR_OVERRIDE="lib" |
183 | # HACK: temporary workaround until CONF_LIBDIR_OVERRIDE is respected. |
184 | export LIBDIR_amd64="lib" |
185 | |
186 | into ${DEST}/open64 |
187 | dobin open64/bin/* |
188 | libopts -m0755 |
189 | dolib open64/lib/* |
190 | } |
191 | |
192 | pkg_postinst() { |
193 | env-update |
194 | elog "If you want to natively run the code generated by this version of the" |
195 | elog "CUDA toolkit, you will need >=x11-drivers/nvidia-drivers-260.19.21." |
196 | elog "" |
197 | elog "Run '. /etc/profile' before using the CUDA toolkit. " |
198 | } |