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.0_beta1.ebuild |
Date: | Fri, 08 Jan 2010 19:53:05 |
Message-Id: | E1NTKtJ-0001MZ-Gf@stork.gentoo.org |
1 | spock 10/01/08 19:53:01 |
2 | |
3 | Modified: ChangeLog |
4 | Added: nvidia-cuda-toolkit-3.0_beta1.ebuild |
5 | Log: |
6 | Version bump (bug #298914). |
7 | (Portage version: 2.2_rc61/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.18 dev-util/nvidia-cuda-toolkit/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog?rev=1.18&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog?rev=1.18&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog?r1=1.17&r2=1.18 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v |
19 | retrieving revision 1.17 |
20 | retrieving revision 1.18 |
21 | diff -u -r1.17 -r1.18 |
22 | --- ChangeLog 1 Dec 2009 19:05:24 -0000 1.17 |
23 | +++ ChangeLog 8 Jan 2010 19:53:01 -0000 1.18 |
24 | @@ -1,6 +1,12 @@ |
25 | # ChangeLog for dev-util/nvidia-cuda-toolkit |
26 | -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v 1.17 2009/12/01 19:05:24 fauli Exp $ |
28 | +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 | +# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v 1.18 2010/01/08 19:53:01 spock Exp $ |
30 | + |
31 | +*nvidia-cuda-toolkit-3.0_beta1 (08 Jan 2010) |
32 | + |
33 | + 08 Jan 2010; MichaĆ Januszewski <spock@g.o> |
34 | + +nvidia-cuda-toolkit-3.0_beta1.ebuild: |
35 | + Version bump (bug #298914). |
36 | |
37 | 01 Dec 2009; Christian Faulhammer <fauli@g.o> |
38 | nvidia-cuda-toolkit-2.2-r2.ebuild: |
39 | |
40 | |
41 | |
42 | 1.1 dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-3.0_beta1.ebuild |
43 | |
44 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-3.0_beta1.ebuild?rev=1.1&view=markup |
45 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-3.0_beta1.ebuild?rev=1.1&content-type=text/plain |
46 | |
47 | Index: nvidia-cuda-toolkit-3.0_beta1.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.0_beta1.ebuild,v 1.1 2010/01/08 19:53:01 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 | |
60 | CUDA_V=${PV//_/-} |
61 | DIR_V=${CUDA_V//./_} |
62 | DIR_V=${DIR_V//beta/Beta} |
63 | |
64 | BASE_URI="http://developer.download.nvidia.com/compute/cuda/${DIR_V}/toolkit" |
65 | SRC_URI="amd64? ( ${BASE_URI}/cudatoolkit_${CUDA_V}_linux_64_rhel5.3.run ) |
66 | x86? ( ${BASE_URI}/cudatoolkit_${CUDA_V}_linux_32_rhel5.3.run )" |
67 | |
68 | LICENSE="NVIDIA" |
69 | SLOT="0" |
70 | KEYWORDS="~amd64 ~x86" |
71 | IUSE="debugger doc profiler" |
72 | |
73 | DEPEND="!dev-util/nvidia-cuda-profiler" |
74 | RDEPEND="${DEPEND} |
75 | >=sys-devel/gcc-4.0 |
76 | profiler? ( x86? ( |
77 | x11-libs/qt-gui |
78 | x11-libs/qt-core |
79 | x11-libs/qt-assistant |
80 | x11-libs/qt-sql[sqlite] ) |
81 | ) |
82 | debugger? ( >=sys-libs/libtermcap-compat-2.0.8-r2 )" |
83 | RESTRICT="strip binchecks" |
84 | |
85 | S="${WORKDIR}" |
86 | |
87 | src_unpack() { |
88 | for f in ${A} ; do |
89 | if [ "${f//*.run/}" == "" ]; then |
90 | unpack_makeself ${f} |
91 | fi |
92 | done |
93 | } |
94 | |
95 | src_install() { |
96 | local DEST=/opt/cuda |
97 | |
98 | into ${DEST} |
99 | dobin bin/* |
100 | dolib $(get_libdir)/* |
101 | |
102 | if ! use debugger; then |
103 | rm -f "${D}/${DEST}/bin/cuda-gdb" |
104 | fi |
105 | |
106 | chmod a-x "${D}/${DEST}/bin/nvcc.profile" |
107 | |
108 | # doman does not respect DESTTREE |
109 | insinto ${DEST}/man/man1 |
110 | doins man/man1/* |
111 | insinto ${DEST}/man/man3 |
112 | doins man/man3/* |
113 | prepman ${DEST} |
114 | |
115 | insinto ${DEST}/include |
116 | doins include/*.h |
117 | insinto ${DEST}/include/crt |
118 | doins include/crt/*.h |
119 | |
120 | insinto ${DEST}/src |
121 | doins src/* |
122 | |
123 | if use doc ; then |
124 | insinto ${DEST}/doc |
125 | doins -r doc/* |
126 | fi |
127 | |
128 | cat > "${T}/env" << EOF |
129 | PATH=${DEST}/bin |
130 | ROOTPATH=${DEST}/bin |
131 | LDPATH=${DEST}/$(get_libdir) |
132 | MANPATH=${DEST}/man |
133 | EOF |
134 | newenvd "${T}/env" 99cuda |
135 | |
136 | if use profiler; then |
137 | into ${DEST}/cudaprof |
138 | dobin cudaprof/bin/cudaprof |
139 | |
140 | cat > "${T}/env" << EOF |
141 | PATH=${DEST}/cudaprof/bin |
142 | ROOTPATH=${DEST}/cudaprof/bin |
143 | EOF |
144 | if use x86 ; then |
145 | dosym /usr/bin/assistant ${DEST}/cudaprof/bin |
146 | else |
147 | dobin cudaprof/bin/assistant |
148 | insinto ${DEST}/cudaprof/bin |
149 | doins cudaprof/bin/*.so* |
150 | insinto ${DEST}/cudaprof/bin/sqldrivers |
151 | doins cudaprof/bin/sqldrivers/* |
152 | |
153 | cat >> "${T}/env" << EOF |
154 | LDPATH=${DEST}/cudaprof/bin |
155 | EOF |
156 | fi |
157 | |
158 | newenvd "${T}/env" 99cudaprof |
159 | |
160 | if use doc; then |
161 | insinto ${DEST}/cudaprof |
162 | doins cudaprof/CUDA_Visual_Profiler_Release_Notes.txt |
163 | insinto ${DEST}/cudaprof/doc |
164 | doins cudaprof/doc/* |
165 | insinto ${DEST}/cudaprof/projects |
166 | doins cudaprof/projects/* |
167 | fi |
168 | fi |
169 | |
170 | export CONF_LIBDIR_OVERRIDE="lib" |
171 | # HACK: temporary workaround until CONF_LIBDIR_OVERRIDE is respected. |
172 | export LIBDIR_amd64="lib" |
173 | |
174 | into ${DEST}/open64 |
175 | dobin open64/bin/* |
176 | libopts -m0755 |
177 | dolib open64/lib/* |
178 | } |
179 | |
180 | pkg_postinst() { |
181 | elog "If you want to natively run the code generated by this version of the" |
182 | elog "CUDA toolkit, you will need >=x11-drivers/nvidia-drivers-190.38." |
183 | elog "" |
184 | elog "Run '. /etc/profile' before using the CUDA toolkit. " |
185 | } |