public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-gdk/
Date: Wed, 19 Nov 2014 08:30:49 +0000 (UTC)	[thread overview]
Message-ID: <1416318062.8800be09d1a4420ae05a79b41ce66eacb20b0d53.jlec@gentoo> (raw)

commit:     8800be09d1a4420ae05a79b41ce66eacb20b0d53
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Tue Nov 18 13:41:02 2014 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Tue Nov 18 13:41:02 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=8800be09

Fix nvidia-cuda-gdk

---
 .../nvidia-cuda-gdk/nvidia-cuda-gdk-340.29.ebuild  | 75 +++++++++++-----------
 1 file changed, 36 insertions(+), 39 deletions(-)

diff --git a/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-340.29.ebuild b/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-340.29.ebuild
index f5f50f8..080f8e9 100644
--- a/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-340.29.ebuild
+++ b/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-340.29.ebuild
@@ -4,7 +4,7 @@
 
 EAPI=5
 
-inherit eutils toolchain-funcs portability unpacker versionator
+inherit eutils portability toolchain-funcs unpacker versionator
 
 MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
 
@@ -21,10 +21,9 @@ KEYWORDS="~amd64"
 IUSE="+healthmon +nvml +doc examples"
 
 RDEPEND="
->=dev-util/nvidia-cuda-toolkit-6.5
-examples? ( >=x11-drivers/nvidia-drivers-340.32[uvm] )
-media-libs/freeglut
-"
+	>=dev-util/nvidia-cuda-toolkit-6.5
+	examples? ( >=x11-drivers/nvidia-drivers-340.32[uvm] )
+	media-libs/freeglut"
 DEPEND="${RDEPEND}"
 
 S="${WORKDIR}/payload"
@@ -37,13 +36,11 @@ src_unpack() {
 
 src_compile() {
 	use examples || return
-	cd "${S}"/nvml/example
+	cd "${S}"/nvml/example || die
 	emake || die
 }
 
 src_install() {
-	cd "${S}/"
-
 	local i j f t
 
 	if use doc; then
@@ -60,10 +57,10 @@ src_install() {
 		if use healthmon ; then
 			ebegin "Installing nvml docs..."
 				doman nvml/doc/man/man3/*.3
-				cd "${S}/nvml/"
+				cd "${S}/nvml/" || die
 				treecopy $(find -type f \( -name README.txt -name COPYRIGHT.txt -o -name "*.pdf" \)) "${ED}"/usr/share/doc/${PF}/nvml/
 				docompress -x $(find "${ED}"/usr/share/doc/${PF}/nvml/ -type f -name readme.txt | sed -e "s:${ED}::")
-				cd "${S}/"
+				cd "${S}/" || die
 			eend
 		fi
 	fi
@@ -74,40 +71,40 @@ src_install() {
 
 	if use healthmon; then
 		ebegin "Installing nvidia-healthmon"
-		exeinto "/opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon-tests/"
-		doexe "nvidia-healthmon/nvidia-healthmon-amd64-${PV}/bin"/gpu_rdma_bw
-		doexe "nvidia-healthmon/nvidia-healthmon-amd64-${PV}/bin"/ibv_rdma_bw
-		doexe "nvidia-healthmon/nvidia-healthmon-amd64-${PV}/bin"/rdma_test.sh
-		exeinto "/opt/cuda/gdk/nvidia-healthmon/"
-		doexe "nvidia-healthmon/nvidia-healthmon-amd64-${PV}"/nvidia-healthmon
-		insinto "/etc/nvidia-healthmon/"
-		doins "nvidia-healthmon/nvidia-healthmon-amd64-${PV}"/nvidia-healthmon.conf
-
-		# install launch script
-		exeinto /opt/bin
-		doexe "${FILESDIR}"/nvidia-healthmon
+			exeinto "/opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon-tests/"
+			doexe "nvidia-healthmon/nvidia-healthmon-amd64-${PV}/bin"/{*,*.*}
+			exeinto "/opt/cuda/gdk/nvidia-healthmon/"
+			doexe "nvidia-healthmon/nvidia-healthmon-amd64-${PV}"/nvidia-healthmon
+			insinto "/etc/nvidia-healthmon/"
+			doins "nvidia-healthmon/nvidia-healthmon-amd64-${PV}"/nvidia-healthmon.conf
+
+			# install launch script
+			exeinto /opt/bin
+			doexe "${FILESDIR}"/nvidia-healthmon
+		eend
 	fi
 
 	if use nvml; then
 		ebegin "Installing nvml"
-		cd "${S}/nvml"
-		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/gdk/nvml/${t}"
-					doexe "${f}"
-				else
-					insinto "/opt/cuda/gdk/nvml/${t}"
-					doins "${f}"
+			cd "${S}/nvml" || die
+			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/gdk/nvml/${t}"
+						doexe "${f}"
+					else
+						insinto "/opt/cuda/gdk/nvml/${t}"
+						doins "${f}"
+					fi
 				fi
-			fi
-		done
-		cd "${S}/"
+			done
+			cd "${S}/" || die
+		eend
 	fi
 
 }


             reply	other threads:[~2014-11-19  8:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-19  8:30 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-11-19  8:30 [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-gdk/ Justin Lecher
2014-11-24 16:20 Christoph Junghans
2014-11-30 13:34 Justin Lecher
2014-11-30 13:34 Justin Lecher
2014-12-01  9:28 Justin Lecher
2015-01-19 17:59 Justin Lecher
2015-01-22  0:09 Christoph Junghans
2015-02-02 12:06 Justin Lecher
2015-03-20  4:31 Christoph Junghans
2015-07-23 21:06 Jauhien Piatlicki
2015-09-13 18:34 Justin Lecher
2015-09-23 12:48 Justin Lecher
2016-05-30  8:11 Marius Brehler
2017-11-18 19:49 Justin Lecher
2018-10-27 16:05 Justin Lecher

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=1416318062.8800be09d1a4420ae05a79b41ce66eacb20b0d53.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