* [gentoo-commits] gentoo-x86 commit in dev-util/nvidia-cuda-sdk: ChangeLog nvidia-cuda-sdk-4.0.ebuild
@ 2011-05-29 20:26 Michael Januszewski (spock)
0 siblings, 0 replies; only message in thread
From: Michael Januszewski (spock) @ 2011-05-29 20:26 UTC (permalink / raw
To: gentoo-commits
spock 11/05/29 20:26:10
Modified: ChangeLog
Added: nvidia-cuda-sdk-4.0.ebuild
Log:
Add NVIDIA CUDA SDK v4.0.
(Portage version: 2.1.9.50/cvs/Linux x86_64)
Revision Changes Path
1.26 dev-util/nvidia-cuda-sdk/ChangeLog
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog?rev=1.26&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog?rev=1.26&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog?r1=1.25&r2=1.26
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- ChangeLog 12 Dec 2010 14:51:29 -0000 1.25
+++ ChangeLog 29 May 2011 20:26:10 -0000 1.26
@@ -1,6 +1,12 @@
# ChangeLog for dev-util/nvidia-cuda-sdk
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v 1.25 2010/12/12 14:51:29 spock Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v 1.26 2011/05/29 20:26:10 spock Exp $
+
+*nvidia-cuda-sdk-4.0 (29 May 2011)
+
+ 29 May 2011; Michał Januszewski <spock@gentoo.org>
+ +nvidia-cuda-sdk-4.0.ebuild:
+ Add NVIDIA CUDA SDK v4.0.
12 Dec 2010; Michał Januszewski <spock@gentoo.org>
nvidia-cuda-sdk-3.2.ebuild:
1.1 dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.0.ebuild
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.0.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.0.ebuild?rev=1.1&content-type=text/plain
Index: nvidia-cuda-sdk-4.0.ebuild
===================================================================
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.0.ebuild,v 1.1 2011/05/29 20:26:10 spock Exp $
EAPI=2
inherit eutils toolchain-funcs
DESCRIPTION="NVIDIA CUDA Software Development Kit"
HOMEPAGE="http://developer.nvidia.com/cuda"
CUDA_V=${PV//_/-}
DIR_V=${CUDA_V//./_}
DIR_V=${DIR_V//beta/Beta}
SRC_URI="http://developer.download.nvidia.com/compute/cuda/${DIR_V}/sdk/gpucomputingsdk_${CUDA_V}.17_linux.run"
LICENSE="CUDPP"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug +doc +examples opencl +cuda"
RDEPEND=">=dev-util/nvidia-cuda-toolkit-4.0
examples? ( >=x11-drivers/nvidia-drivers-260.19.21 )
media-libs/freeglut"
DEPEND="${RDEPEND}"
S="${WORKDIR}"
RESTRICT="binchecks"
pkg_setup() {
if use cuda || use opencl && [ "$(gcc-major-version)" == "4" -a $(gcc-minor-version) -ge 5 ]; then
eerror "This package requires <=sys-devel/gcc-4.4 to build sucessfully."
eerror "Please use gcc-config to switch to a compatible GCC version."
die "<=sys-devel/gcc-4.4 required"
fi
}
src_unpack() {
unpack_makeself
}
src_compile() {
if ! use examples; then
return
fi
local myopts=""
if use debug; then
myopts="${myopts} dbg=1"
fi
cd "${S}/sdk"
if use cuda; then
cd C
emake cuda-install=/opt/cuda ${myopts} || die
cd ..
fi
if use opencl; then
cd OpenCL
emake || die
cd ..
fi
}
src_install() {
cd "${S}/sdk"
if ! use doc; then
rm -rf *.txt doc */doc */Samples.htm */releaseNotesData
fi
if ! use examples; then
rm -rf bin */bin */tools
fi
for f in $(find .); do
local t="$(dirname ${f})"
if [[ "${t/obj\/}" != "${t}" || "${t##*.}" == "a" ]]; then
continue
fi
if [[ ! -d "${f}" ]]; then
if [[ -x "${f}" ]]; then
exeinto "/opt/cuda/sdk/${t}"
doexe "${f}"
else
insinto "/opt/cuda/sdk/${t}"
doins "${f}"
fi
fi
done
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-29 20:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-29 20:26 [gentoo-commits] gentoo-x86 commit in dev-util/nvidia-cuda-sdk: ChangeLog nvidia-cuda-sdk-4.0.ebuild Michael Januszewski (spock)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox