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-4.1.ebuild |
Date: | Sun, 29 Jan 2012 16:51:02 |
Message-Id: | 20120129165052.707BC2004B@flycatcher.gentoo.org |
1 | spock 12/01/29 16:50:52 |
2 | |
3 | Modified: ChangeLog |
4 | Added: nvidia-cuda-toolkit-4.1.ebuild |
5 | Log: |
6 | Version bump. |
7 | |
8 | (Portage version: 2.1.10.44/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.43 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.43&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog?rev=1.43&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog?r1=1.42&r2=1.43 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v |
20 | retrieving revision 1.42 |
21 | retrieving revision 1.43 |
22 | diff -u -r1.42 -r1.43 |
23 | --- ChangeLog 4 Sep 2011 10:08:12 -0000 1.42 |
24 | +++ ChangeLog 29 Jan 2012 16:50:52 -0000 1.43 |
25 | @@ -1,6 +1,12 @@ |
26 | # ChangeLog for dev-util/nvidia-cuda-toolkit |
27 | -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v 1.42 2011/09/04 10:08:12 maekke Exp $ |
29 | +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 | +# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v 1.43 2012/01/29 16:50:52 spock Exp $ |
31 | + |
32 | +*nvidia-cuda-toolkit-4.1 (29 Jan 2012) |
33 | + |
34 | + 29 Jan 2012; MichaĆ Januszewski <spock@g.o> |
35 | + +nvidia-cuda-toolkit-4.1.ebuild: |
36 | + Version bump. |
37 | |
38 | 04 Sep 2011; Markus Meier <maekke@g.o> nvidia-cuda-toolkit-4.0.ebuild: |
39 | x86 stable, bug #378545 |
40 | |
41 | |
42 | |
43 | 1.1 dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.1.ebuild |
44 | |
45 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.1.ebuild?rev=1.1&view=markup |
46 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.1.ebuild?rev=1.1&content-type=text/plain |
47 | |
48 | Index: nvidia-cuda-toolkit-4.1.ebuild |
49 | =================================================================== |
50 | # Copyright 1999-2012 Gentoo Foundation |
51 | # Distributed under the terms of the GNU General Public License v2 |
52 | # $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.1.ebuild,v 1.1 2012/01/29 16:50:52 spock Exp $ |
53 | |
54 | EAPI=2 |
55 | |
56 | inherit eutils multilib |
57 | |
58 | DESCRIPTION="NVIDIA CUDA Toolkit" |
59 | HOMEPAGE="http://developer.nvidia.com/cuda" |
60 | RESTRICT="binchecks" |
61 | |
62 | CUDA_V=${PV//_/-} |
63 | DIR_V=${CUDA_V//./_} |
64 | DIR_V=${DIR_V//beta/Beta} |
65 | |
66 | BASE_URI="http://developer.download.nvidia.com/compute/cuda/${DIR_V}/rel/toolkit" |
67 | SRC_URI="amd64? ( ${BASE_URI}/cudatoolkit_${CUDA_V}.28_linux_64_ubuntu11.04.run ) |
68 | x86? ( ${BASE_URI}/cudatoolkit_${CUDA_V}.28_linux_32_ubuntu11.04.run )" |
69 | |
70 | LICENSE="NVIDIA" |
71 | SLOT="0" |
72 | KEYWORDS="~amd64 ~x86" |
73 | IUSE="debugger doc profiler" |
74 | |
75 | RDEPEND="${DEPEND} |
76 | >=sys-devel/binutils-2.20 |
77 | debugger? ( >=sys-libs/libtermcap-compat-2.0.8-r2 ) |
78 | !<=x11-drivers/nvidia-drivers-270.41" |
79 | |
80 | S="${WORKDIR}" |
81 | |
82 | #QA_DT_HASH_x86="opt/cuda/.*" |
83 | #QA_DT_HASH_amd64="opt/cuda/.*" |
84 | |
85 | src_unpack() { |
86 | for f in ${A} ; do |
87 | if [ "${f//*.run/}" == "" ]; then |
88 | unpack_makeself ${f} |
89 | fi |
90 | done |
91 | } |
92 | |
93 | src_install() { |
94 | local DEST=/opt/cuda |
95 | |
96 | into ${DEST} |
97 | dobin bin/* |
98 | dobin nvvm/* |
99 | dolib $(get_libdir)/* |
100 | |
101 | if ! use debugger; then |
102 | rm -f "${D}/${DEST}/bin/cuda-gdb" |
103 | else |
104 | insinto ${DEST}/extras |
105 | doins -r extras/Debugger |
106 | fi |
107 | |
108 | if use profiler; then |
109 | # TODO: Use system JRE for the profiler? |
110 | insinto ${DEST} |
111 | doins -r libnvvp |
112 | fperms a+x ${DEST}/libnvvp/nvvp ${DEST}/libnvvp/jre/bin/* |
113 | |
114 | cat > "${T}/nvv" << EOF |
115 | #!/bin/sh |
116 | LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:${DEST}/lib:${DEST}/lib64 ${DEST}/libnvvp/nvvp |
117 | EOF |
118 | dobin ${T}/nvv |
119 | insinto ${DEST}/extras |
120 | doins -r extras/CUPTI |
121 | fi |
122 | |
123 | chmod a-x "${D}/${DEST}/bin/nvcc.profile" |
124 | chmod a-x "${D}/${DEST}/bin/ci_include.h" |
125 | |
126 | # TODO: Manuals are missing from this release. Remove the following |
127 | # commented-out lines if they are not restored in the next releases. |
128 | # doman does not respect DESTTREE |
129 | #insinto ${DEST}/man/man1 |
130 | #doins man/man1/* |
131 | #insinto ${DEST}/man/man3 |
132 | #doins man/man3/* |
133 | #prepman ${DEST} |
134 | |
135 | insinto ${DEST}/include |
136 | doins -r include/* |
137 | |
138 | insinto ${DEST}/src |
139 | doins src/* |
140 | |
141 | if use doc ; then |
142 | insinto ${DEST}/doc |
143 | doins -r doc/* |
144 | fi |
145 | |
146 | cat > "${T}/env" << EOF |
147 | PATH=${DEST}/bin |
148 | ROOTPATH=${DEST}/bin |
149 | LDPATH=${DEST}/$(get_libdir) |
150 | MANPATH=${DEST}/man |
151 | EOF |
152 | newenvd "${T}/env" 99cuda |
153 | |
154 | |
155 | export CONF_LIBDIR_OVERRIDE="lib" |
156 | # HACK: temporary workaround until CONF_LIBDIR_OVERRIDE is respected. |
157 | export LIBDIR_amd64="lib" |
158 | |
159 | into ${DEST}/open64 |
160 | dobin open64/bin/* |
161 | libopts -m0755 |
162 | dolib open64/lib/* |
163 | |
164 | # TODO: ideally, there would be multiple OpenCL implementations available in |
165 | # the tree and an eselect module would allow to switch between them. |
166 | into / |
167 | dosym /opt/cuda/include/CL usr/include/CL |
168 | } |
169 | |
170 | pkg_postinst() { |
171 | env-update |
172 | elog "If you want to natively run the code generated by this version of the" |
173 | elog "CUDA toolkit, you will need >=x11-drivers/nvidia-drivers-260.19.21." |
174 | elog "" |
175 | elog "Run '. /etc/profile' before using the CUDA toolkit. " |
176 | } |