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.1.ebuild |
Date: | Sat, 03 Jul 2010 22:54:12 |
Message-Id: | 20100703225410.2215B2CE15@corvid.gentoo.org |
1 | spock 10/07/03 22:54:09 |
2 | |
3 | Modified: ChangeLog |
4 | Added: nvidia-cuda-toolkit-3.1.ebuild |
5 | Log: |
6 | Version bump (bug #325831). Thanks to Clemens Rabe for the updated ebuild. |
7 | (Portage version: 2.1.8.3/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.28 dev-util/nvidia-cuda-toolkit/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog?rev=1.28&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog?rev=1.28&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog?r1=1.27&r2=1.28 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v |
19 | retrieving revision 1.27 |
20 | retrieving revision 1.28 |
21 | diff -u -r1.27 -r1.28 |
22 | --- ChangeLog 24 Jun 2010 11:02:37 -0000 1.27 |
23 | +++ ChangeLog 3 Jul 2010 22:54:09 -0000 1.28 |
24 | @@ -1,6 +1,13 @@ |
25 | # ChangeLog for dev-util/nvidia-cuda-toolkit |
26 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v 1.27 2010/06/24 11:02:37 spock Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v 1.28 2010/07/03 22:54:09 spock Exp $ |
29 | + |
30 | +*nvidia-cuda-toolkit-3.1 (03 Jul 2010) |
31 | + |
32 | + 03 Jul 2010; Michał Januszewski <spock@g.o> |
33 | + +nvidia-cuda-toolkit-3.1.ebuild, |
34 | + +files/nvidia-cuda-toolkit-3.1-enum_fix.patch: |
35 | + Version bump (bug #325831). Thanks to Clemens Rabe for the updated ebuild. |
36 | |
37 | 24 Jun 2010; Michał Januszewski <spock@g.o> |
38 | nvidia-cuda-toolkit-3.0.ebuild: |
39 | |
40 | |
41 | |
42 | 1.1 dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-3.1.ebuild |
43 | |
44 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-3.1.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.1.ebuild?rev=1.1&content-type=text/plain |
46 | |
47 | Index: nvidia-cuda-toolkit-3.1.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.1.ebuild,v 1.1 2010/07/03 22:54:09 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_ubuntu9.10.run ) |
66 | x86? ( ${BASE_URI}/cudatoolkit_${CUDA_V}_linux_32_ubuntu9.10.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/binutils-2.20 |
76 | >=sys-devel/gcc-4.0 |
77 | profiler? ( x86? ( |
78 | x11-libs/qt-gui |
79 | x11-libs/qt-core |
80 | x11-libs/qt-assistant |
81 | x11-libs/qt-sql[sqlite] ) |
82 | >=media-libs/libpng-1.2.43-r2 |
83 | ) |
84 | debugger? ( >=sys-libs/libtermcap-compat-2.0.8-r2 )" |
85 | RESTRICT="strip binchecks" |
86 | |
87 | S="${WORKDIR}" |
88 | |
89 | src_unpack() { |
90 | for f in ${A} ; do |
91 | if [ "${f//*.run/}" == "" ]; then |
92 | unpack_makeself ${f} |
93 | fi |
94 | done |
95 | } |
96 | |
97 | src_prepare() { |
98 | epatch "${FILESDIR}"/${P}-enum_fix.patch |
99 | } |
100 | |
101 | src_install() { |
102 | local DEST=/opt/cuda |
103 | |
104 | into ${DEST} |
105 | dobin bin/* |
106 | dolib $(get_libdir)/* |
107 | |
108 | if ! use debugger; then |
109 | rm -f "${D}/${DEST}/bin/cuda-gdb" |
110 | fi |
111 | |
112 | chmod a-x "${D}/${DEST}/bin/nvcc.profile" |
113 | |
114 | # doman does not respect DESTTREE |
115 | insinto ${DEST}/man/man1 |
116 | doins man/man1/* |
117 | insinto ${DEST}/man/man3 |
118 | doins man/man3/* |
119 | prepman ${DEST} |
120 | |
121 | insinto ${DEST}/include |
122 | doins -r include/* |
123 | |
124 | insinto ${DEST}/src |
125 | doins src/* |
126 | |
127 | if use doc ; then |
128 | insinto ${DEST}/doc |
129 | doins -r doc/* |
130 | fi |
131 | |
132 | cat > "${T}/env" << EOF |
133 | PATH=${DEST}/bin |
134 | ROOTPATH=${DEST}/bin |
135 | LDPATH=${DEST}/$(get_libdir) |
136 | MANPATH=${DEST}/man |
137 | EOF |
138 | newenvd "${T}/env" 99cuda |
139 | |
140 | if use profiler; then |
141 | local target="computeprof" |
142 | |
143 | into ${DEST}/${target} |
144 | dobin ${target}/bin/${target} |
145 | |
146 | cat > "${T}/env" << EOF |
147 | PATH=${DEST}/${target}/bin |
148 | ROOTPATH=${DEST}/${target}/bin |
149 | EOF |
150 | if use x86 ; then |
151 | dosym /usr/bin/assistant ${DEST}/${target}/bin |
152 | |
153 | insinto ${DEST}/${target}/bin |
154 | doins ${target}/bin/cudaapitrace.so |
155 | else |
156 | dobin ${target}/bin/assistant |
157 | insinto ${DEST}/${target}/bin |
158 | doins ${target}/bin/*.so* |
159 | insinto ${DEST}/${target}/bin/sqldrivers |
160 | doins ${target}/bin/sqldrivers/* |
161 | |
162 | cat >> "${T}/env" << EOF |
163 | LDPATH=${DEST}/${target}/bin |
164 | EOF |
165 | fi |
166 | |
167 | newenvd "${T}/env" 99${target} |
168 | |
169 | if use doc; then |
170 | insinto ${DEST}/${target} |
171 | doins ${target}/*.txt |
172 | insinto ${DEST}/${target}/doc |
173 | doins ${target}/doc/* |
174 | insinto ${DEST}/${target}/projects |
175 | doins ${target}/projects/* |
176 | fi |
177 | |
178 | make_desktop_entry /opt/cuda/computeprof/bin/computeprof "NVIDIA Compute Visual Profiler" |
179 | fi |
180 | |
181 | export CONF_LIBDIR_OVERRIDE="lib" |
182 | # HACK: temporary workaround until CONF_LIBDIR_OVERRIDE is respected. |
183 | export LIBDIR_amd64="lib" |
184 | |
185 | into ${DEST}/open64 |
186 | dobin open64/bin/* |
187 | libopts -m0755 |
188 | dolib open64/lib/* |
189 | } |
190 | |
191 | pkg_postinst() { |
192 | elog "If you want to natively run the code generated by this version of the" |
193 | elog "CUDA toolkit, you will need >=x11-drivers/nvidia-drivers-256.22." |
194 | elog "" |
195 | elog "Run '. /etc/profile' before using the CUDA toolkit. " |
196 | } |