diff options
author | Rick Farina <zerochaos@gentoo.org> | 2012-07-31 07:37:19 +0000 |
---|---|---|
committer | Rick Farina <zerochaos@gentoo.org> | 2012-07-31 07:37:19 +0000 |
commit | c2d252a18ed37c1c7a50a646a7737c234de2ad50 (patch) | |
tree | ec6d2cb25464b8c85cd4c70294e99cde9f5ab318 /dev-util/nvidia-cuda-sdk | |
parent | Lastrite dev-util/pkg-config-lite wrt #425292 (diff) | |
download | gentoo-2-c2d252a18ed37c1c7a50a646a7737c234de2ad50.tar.gz gentoo-2-c2d252a18ed37c1c7a50a646a7737c234de2ad50.tar.bz2 gentoo-2-c2d252a18ed37c1c7a50a646a7737c234de2ad50.zip |
bump to 4.2 with a few style improvements ;-)
(Portage version: 2.1.11.9/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/nvidia-cuda-sdk')
-rw-r--r-- | dev-util/nvidia-cuda-sdk/ChangeLog | 9 | ||||
-rw-r--r-- | dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.02.0807.1535.ebuild | 4 | ||||
-rw-r--r-- | dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.ebuild | 87 |
3 files changed, 96 insertions, 4 deletions
diff --git a/dev-util/nvidia-cuda-sdk/ChangeLog b/dev-util/nvidia-cuda-sdk/ChangeLog index ace56d6f92a9..964d4aeab350 100644 --- a/dev-util/nvidia-cuda-sdk/ChangeLog +++ b/dev-util/nvidia-cuda-sdk/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-util/nvidia-cuda-sdk # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v 1.30 2012/02/05 16:39:02 spock Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/ChangeLog,v 1.31 2012/07/31 07:37:19 zerochaos Exp $ + +*nvidia-cuda-sdk-4.2 (31 Jul 2012) + + 31 Jul 2012; Rick Farina <zerochaos@gentoo.org> +nvidia-cuda-sdk-4.2.ebuild, + nvidia-cuda-sdk-2.02.0807.1535.ebuild: + bump to 4.2 with a few style improvements ;-) 05 Feb 2012; Michał Januszewski <spock@gentoo.org> nvidia-cuda-sdk-4.1.ebuild: @@ -168,4 +174,3 @@ +files/nvidia-cuda-sdk-2.02.0807.1535-make_cpp_fix.patch, +metadata.xml, +nvidia-cuda-sdk-2.02.0807.1535.ebuild: Initial commit. - diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.02.0807.1535.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.02.0807.1535.ebuild index bc7fb56968bb..796654fd746d 100644 --- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.02.0807.1535.ebuild +++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.02.0807.1535.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2012 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-2.02.0807.1535.ebuild,v 1.11 2012/02/05 06:27:23 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.02.0807.1535.ebuild,v 1.12 2012/07/31 07:37:19 zerochaos Exp $ inherit eutils unpacker toolchain-funcs diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.ebuild new file mode 100644 index 000000000000..bb2ed9da440c --- /dev/null +++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2012 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.2.ebuild,v 1.1 2012/07/31 07:37:19 zerochaos Exp $ + +EAPI=2 + +inherit unpacker 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}/rel/sdk/gpucomputingsdk_${CUDA_V}.9_linux.run" +LICENSE="CUDPP" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug +doc +examples opencl +cuda" + +RDEPEND=">=dev-util/nvidia-cuda-toolkit-${PV} + examples? ( >=x11-drivers/nvidia-drivers-260.19.21 ) + media-libs/freeglut" +DEPEND="${RDEPEND}" + +S="${WORKDIR}" + +QA_EXECSTACK="opt/cuda/sdk/C/common/lib/linux/libGLEW.a:glew.o + opt/cuda/sdk/shared/lib/linux/libGLEW.a:glew.o + opt/cuda/sdk/CUDALibraries/common/lib/linux/libGLEW.a:glew.o" +QA_FLAGS_IGNORED="opt/cuda/sdk/C/bin/linux/release/.* + opt/cuda/sdk/OpenCL/bin/linux/release/.*" + +pkg_setup() { + if use cuda || use opencl && [ $(gcc-major-version) -lt 4 -o $(gcc-minor-version) -lt 5 ]; then + eerror "This package requires >=sys-devel/gcc-4.5 to build sucessfully." + eerror "Please use gcc-config to switch to a compatible GCC version." + die ">=sys-devel/gcc-4.4 required" + fi + echo $(gcc-major-version) $(gcc-minor-version) +} + +src_compile() { + if ! use examples; then + return + fi + local myopts="" + + if use debug; then + myopts="${myopts} dbg=1" + fi + + cd "${S}/sdk" + + use cuda && emake -C C cuda-install=/opt/cuda ${myopts} || die + use opencl && emake -C OpenCL || die +} + +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 +} |