From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-toolkit/
Date: Mon, 26 Nov 2012 22:02:03 +0000 (UTC) [thread overview]
Message-ID: <1353940869.d60beb928c2b6018b7574224a07316f6434b0ff0.jlec@gentoo> (raw)
commit: d60beb928c2b6018b7574224a07316f6434b0ff0
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 25 17:09:05 2012 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Mon Nov 26 14:41:09 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=d60beb92
dev-util/nvidia-cuda-toolkit: Merge change in both versions; fix whitespace error
Package-Manager: portage-2.2.0_alpha142
---
dev-util/nvidia-cuda-toolkit/ChangeLog | 4 ++
.../nvidia-cuda-toolkit-4.2.9-r1.ebuild | 39 +++++++++++++++-----
.../nvidia-cuda-toolkit-5.0.35.ebuild | 24 ++++++------
3 files changed, 45 insertions(+), 22 deletions(-)
diff --git a/dev-util/nvidia-cuda-toolkit/ChangeLog b/dev-util/nvidia-cuda-toolkit/ChangeLog
index 16f1d05..8bdd993 100644
--- a/dev-util/nvidia-cuda-toolkit/ChangeLog
+++ b/dev-util/nvidia-cuda-toolkit/ChangeLog
@@ -2,6 +2,10 @@
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v 1.50 2012/02/21 22:44:39 spock Exp $
+ 25 Nov 2012; Justin Lecher <jlec@gentoo.org>
+ nvidia-cuda-toolkit-4.2.9-r1.ebuild, nvidia-cuda-toolkit-5.0.35.ebuild:
+ Merge change in both versions; fix whitespace error
+
16 Nov 2012; Justin Lecher <jlec@gentoo.org> files/cuda-config.in:
Enhancing cuda-config
diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.9-r1.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.9-r1.ebuild
index 6e71b8a..5c304e5 100644
--- a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.9-r1.ebuild
+++ b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-4.2.9-r1.ebuild
@@ -19,7 +19,7 @@ SRC_URI="
SLOT="0"
LICENSE="NVIDIA"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="debugger doc profiler"
+IUSE="debugger doc eclipse profiler"
DEPEND=""
RDEPEND="${DEPEND}
@@ -36,6 +36,11 @@ S="${WORKDIR}"
QA_PREBUILT="opt/cuda/*"
+pkg_setup() {
+ # We don't like to run cuda_pkg_setup as it depends on us
+ :
+}
+
src_prepare() {
local cuda_supported_gcc
@@ -44,29 +49,30 @@ src_prepare() {
sed \
-e "s:CUDA_SUPPORTED_GCC:${cuda_supported_gcc}:g" \
"${FILESDIR}"/cuda-config.in > "${T}"/cuda-config || die
+
+ find cuda-installer.pl install-linux.pl libnvvp/jre run_files -delete || die
}
src_install() {
local cudadir=/opt/cuda
- local prefix="${EPREFIX}"${cudadir}
- rm install-linux.pl
- # use system jre
- rm -r libnvvp/jre
+ local ecudadir="${EPREFIX}"${cudadir}
if use doc; then
dodoc doc/*{txt,pdf}
dohtml -r doc/html/*
fi
+
find doc -delete || die
use debugger || rm -r bin/cuda-gdb extras/Debugger
+ use eclipse || find libnsight -delete
if use profiler; then
# hack found in install-linux.pl
cat > bin/nvvp <<- EOF
#!${EPREFIX}bin/sh
- LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}:${prefix}/lib:${prefix}/lib64 \
- UBUNTU_MENUPROXY=0 LIBOVERLAY_SCROLLBAR=0 ${prefix}/libnvvp/nvvp
+ LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}:${ecudadir}/lib:${ecudadir}/lib64 \
+ UBUNTU_MENUPROXY=0 LIBOVERLAY_SCROLLBAR=0 ${ecudadir}/libnvvp/nvvp
EOF
chmod a+x bin/nvvp
else
@@ -77,11 +83,24 @@ src_install() {
mv * "${ED}"${cudadir}
cat > "${T}"/99cuda <<- EOF
- PATH=${prefix}/bin:${prefix}/libnvvp
- ROOTPATH=${prefix}/bin
- LDPATH=${prefix}/lib$(use amd64 && echo "64:${prefix}/lib")
+ PATH=${ecudadir}/bin:${ecudadir}/libnvvp
+ ROOTPATH=${ecudadir}/bin
+ LDPATH=${ecudadir}/lib$(use amd64 && echo "64:${ecudadir}/lib")
EOF
doenvd "${T}"/99cuda
dobin "${T}"/cuda-config
}
+
+pkg_postinst() {
+ local a
+ a="$(version_sort $(cuda-config -s))"; a=($a)
+ if [[ $(tc-getCC) == *gcc* ]] && \
+ version_is_at_least "$(gcc-version)" ${a[1]}; then
+ ewarn "gcc >= ${a[1]} will not work with CUDA"
+ ewarn "Make sure you set an earlier version of gcc with gcc-config"
+ ewarn "or append --compiler-bindir= pointing to a gcc bindir like"
+ ewarn "${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/gcc${a[1]}"
+ ewarn "to the nvcc compiler flags"
+ fi
+}
diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-5.0.35.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-5.0.35.ebuild
index e3acc1b..a17f442 100644
--- a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-5.0.35.ebuild
+++ b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-5.0.35.ebuild
@@ -37,8 +37,8 @@ S="${WORKDIR}"
QA_PREBUILT="opt/cuda/*"
pkg_setup() {
- # We don't like to run cuda_pkg_setup as it depends on us
- :
+ # We don't like to run cuda_pkg_setup as it depends on us
+ :
}
src_unpack() {
@@ -98,14 +98,14 @@ src_install() {
}
pkg_postinst() {
- local a
- a="$(version_sort $(cuda-config -s))"; a=($a)
- if [[ $(tc-getCC) == *gcc* ]] && \
- version_is_at_least "$(gcc-version)" ${a[1]}; then
- ewarn "gcc >= ${a[1]} will not work with CUDA"
- ewarn "Make sure you set an earlier version of gcc with gcc-config"
- ewarn "or append --compiler-bindir= pointing to a gcc bindir like"
- ewarn "${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/gcc${a[1]}"
- ewarn "to the nvcc compiler flags"
- fi
+ local a
+ a="$(version_sort $(cuda-config -s))"; a=($a)
+ if [[ $(tc-getCC) == *gcc* ]] && \
+ version_is_at_least "$(gcc-version)" ${a[1]}; then
+ ewarn "gcc >= ${a[1]} will not work with CUDA"
+ ewarn "Make sure you set an earlier version of gcc with gcc-config"
+ ewarn "or append --compiler-bindir= pointing to a gcc bindir like"
+ ewarn "${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/gcc${a[1]}"
+ ewarn "to the nvcc compiler flags"
+ fi
}
next reply other threads:[~2012-11-26 22:03 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-26 22:02 Justin Lecher [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-09-15 14:18 [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-toolkit/ Marius Brehler
2016-05-30 8:52 Marius Brehler
2015-09-09 8:11 Justin Lecher
2015-03-20 4:31 Christoph Junghans
2015-02-19 7:20 Justin Lecher
2015-01-22 10:14 Justin Lecher
2015-01-18 2:16 Christoph Junghans
2015-01-18 2:16 Christoph Junghans
2015-01-18 2:16 Christoph Junghans
2014-08-21 8:32 Justin Lecher
2013-08-12 21:28 Sebastien Fabbro
2013-08-12 21:28 Sebastien Fabbro
2013-06-05 14:54 Justin Lecher
2012-11-26 22:02 Justin Lecher
2012-11-26 22:02 Justin Lecher
2012-11-26 22:02 Justin Lecher
2012-07-04 18:37 Sebastien Fabbro
2012-07-04 7:43 Justin Lecher
2012-07-03 19:34 Sebastien Fabbro
2012-07-03 19:34 Sebastien Fabbro
2012-07-03 18:23 Sebastien Fabbro
2012-07-03 17:30 Sebastien Fabbro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1353940869.d60beb928c2b6018b7574224a07316f6434b0ff0.jlec@gentoo \
--to=jlec@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox