From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-sdk/
Date: Mon, 26 Nov 2012 22:02:02 +0000 (UTC) [thread overview]
Message-ID: <1353940869.901dc926ba61055a5c4ef978a85daa8f39393858.jlec@gentoo> (raw)
commit: 901dc926ba61055a5c4ef978a85daa8f39393858
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 16 15:50:31 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=901dc926
dev-util/nvidia-cuda-sdk: Preparing Version Bump
Package-Manager: portage-2.2.0_alpha142
---
dev-util/nvidia-cuda-sdk/ChangeLog | 5 +
.../nvidia-cuda-sdk/nvidia-cuda-sdk-5.0.35.ebuild | 119 ++++++++++++++++++++
2 files changed, 124 insertions(+), 0 deletions(-)
diff --git a/dev-util/nvidia-cuda-sdk/ChangeLog b/dev-util/nvidia-cuda-sdk/ChangeLog
index 09af82d..c81719f 100644
--- a/dev-util/nvidia-cuda-sdk/ChangeLog
+++ b/dev-util/nvidia-cuda-sdk/ChangeLog
@@ -2,6 +2,11 @@
# 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 $
+*nvidia-cuda-sdk-5.0.35 (16 Nov 2012)
+
+ 16 Nov 2012; Justin Lecher <jlec@gentoo.org> +nvidia-cuda-sdk-5.0.35.ebuild:
+ Preparing Version Bump
+
*nvidia-cuda-sdk-4.2.9-r1 (16 Nov 2012)
16 Nov 2012; Justin Lecher <jlec@gentoo.org> nvidia-cuda-sdk-4.2.9.ebuild,
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-5.0.35.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-5.0.35.ebuild
new file mode 100644
index 0000000..d81d0b8
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-5.0.35.ebuild
@@ -0,0 +1,119 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit cuda eutils unpacker toolchain-funcs versionator
+
+MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
+DISTRO=fedora16-1
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="http://developer.nvidia.com/cuda"
+CURI="http://developer.download.nvidia.com/compute/cuda/${MYD}/rel-update-1/installers/"
+SRC_URI="
+ amd64? ( ${CURI}/cuda_${PV}_linux_64_${DISTRO}.run )
+ x86? ( ${CURI}/cuda_${PV}_linux_32_${DISTRO}.run )"
+
+LICENSE="CUDPP"
+SLOT="0"
+#KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+KEYWORDS=""
+IUSE="debug +doc +examples opencl +cuda"
+
+RDEPEND="
+ >=dev-util/nvidia-cuda-toolkit-${PV}
+ media-libs/freeglut
+ examples? (
+ >=x11-drivers/nvidia-drivers-304.54
+ media-libs/glew
+ )"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}
+
+src_unpack() {
+ unpacker
+ unpacker run_files/cuda-samples*run
+}
+
+src_prepare() {
+# epatch "${FILESDIR}"/${PN}-4.2.9-asneeded.patch
+ sed \
+ -e 's:-O2::g' \
+ -e 's:-O3::g' \
+ -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
+ -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
+ -e "/LINKFLAGS/s:=:= ${LDFLAGS} :g" \
+ -e "/CC/s:gcc:$(tc-getCC):g" \
+ -e "/GCC/s:g++:$(tc-getCXX):g" \
+ -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+ -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+ -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+ -e 's:-Wimplicit::g' \
+ -e 's:GLEW_x86_64:GLEW:g' \
+ -i $(find . -type f -name "Makefile") || die
+
+ find sdk/common/inc/GL -delete || die
+ find sdk -type f -name "*\.a" -delete || die
+}
+
+src_compile() {
+ use examples || return
+ local myopts verbose="verbose=1"
+ use debug && myopts+=" dbg=1"
+ cd sdk
+ emake \
+ cuda-install="${EPREFIX}/opt/cuda" \
+ CUDA_PATH="${EPREFIX}/opt/cuda/" \
+ ${myopts} ${verbose}
+}
+
+src_install() {
+ local i j f t crap=""
+ cd sdk
+ if use doc; then
+ ebegin "Installing docs ..."
+ for i in *; do
+ if [[ -d ${i} ]]; then
+ for j in doc releaseNotesData; do
+ docinto ${i}
+ [[ -d ${i}/${j} ]] && dodoc -r ${i}/${j}
+ done
+ fi
+ done
+ dodoc -r doc
+ dohtml {.,*}/*htm*
+ eend
+ fi
+
+ crap+=" *.txt doc */doc */Samples.htm* */releaseNotesData"
+
+ if ! use examples; then
+ crap+=" */bin */tools"
+ fi
+
+ ebegin "Cleaning before installation..."
+ find ${crap} -delete || die
+ find . \( -name Makefile -o -name "*.mk" \) -delete || die
+ eend
+
+ ebegin "Moving files..."
+ 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
+ eend
+}
next reply other threads:[~2012-11-26 22:04 UTC|newest]
Thread overview: 17+ 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-10-30 15:47 [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-sdk/ Justin Lecher
2016-09-15 14:18 Marius Brehler
2016-05-30 8:52 Marius Brehler
2015-09-09 8:11 Justin Lecher
2015-07-10 3:59 Nicolas Bock
2015-03-20 4:31 Christoph Junghans
2015-01-18 2:16 Christoph Junghans
2015-01-18 2:16 Christoph Junghans
2014-11-17 7:12 Justin Lecher
2014-08-21 8:32 Justin Lecher
2014-07-10 8:53 Justin Lecher
2014-07-10 8:53 Justin Lecher
2012-11-26 22:02 Justin Lecher
2012-07-11 9:09 Honza Macháček
2012-07-04 18:51 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.901dc926ba61055a5c4ef978a85daa8f39393858.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