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