public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-sdk/
@ 2012-07-03 17:30 Sebastien Fabbro
  0 siblings, 0 replies; 17+ messages in thread
From: Sebastien Fabbro @ 2012-07-03 17:30 UTC (permalink / raw
  To: gentoo-commits

commit:     d60dc6f056a68e59cb646c7d1e77837eb7b98044
Author:     Sébastien Fabbro <sebfabbro <AT> gmail <DOT> com>
AuthorDate: Tue Jul  3 17:30:03 2012 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Tue Jul  3 17:30:03 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=d60dc6f0

dev-util/nvidia-cuda-sdk: import/clean/bump

---
 dev-util/nvidia-cuda-sdk/ChangeLog                 |  178 ++++++++++++++++++++
 dev-util/nvidia-cuda-sdk/metadata.xml              |   17 ++
 .../nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.ebuild     |   68 ++++++++
 3 files changed, 263 insertions(+), 0 deletions(-)

diff --git a/dev-util/nvidia-cuda-sdk/ChangeLog b/dev-util/nvidia-cuda-sdk/ChangeLog
new file mode 100644
index 0000000..8912130
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/ChangeLog
@@ -0,0 +1,178 @@
+# 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 $
+
+*nvidia-cuda-sdk-4.2 (03 Jul 2012)
+
+  03 Jul 2012; Sébastien Fabbro <bicatali@gentoo.org>
+  +nvidia-cuda-sdk-4.2.ebuild, +metadata.xml:
+  Version bumped. Switched to EAPI4, added prefix love, cleaned ebuild,
+  metadata love
+
+  05 Feb 2012; Michał Januszewski <spock@gentoo.org>
+  nvidia-cuda-sdk-4.1.ebuild:
+  Add a check for gcc-4.5+ (bug #401407).
+
+  05 Feb 2012; Mike Frysinger <vapier@gentoo.org>
+  nvidia-cuda-sdk-2.02.0807.1535.ebuild,
+  nvidia-cuda-sdk-2.1.1215.2015.ebuild, nvidia-cuda-sdk-2.2.ebuild,
+  nvidia-cuda-sdk-2.2-r1.ebuild, nvidia-cuda-sdk-2.3.ebuild,
+  nvidia-cuda-sdk-3.0_beta1.ebuild, nvidia-cuda-sdk-3.0.ebuild,
+  nvidia-cuda-sdk-3.1.ebuild, nvidia-cuda-sdk-3.2.ebuild,
+  nvidia-cuda-sdk-4.0.ebuild, nvidia-cuda-sdk-4.1.ebuild:
+  Move to new unpacker eclass for unpack_makeself.
+
+*nvidia-cuda-sdk-4.1 (29 Jan 2012)
+
+  29 Jan 2012; Michał Januszewski <spock@gentoo.org>
+  +nvidia-cuda-sdk-4.1.ebuild:
+  Version bump.
+
+*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:
+  Add a check for GCC 4.4, which is necessary to compile the examples (bug
+  #347497).
+
+*nvidia-cuda-sdk-3.2 (01 Dec 2010)
+
+  01 Dec 2010; Michał Januszewski <spock@gentoo.org>
+  +nvidia-cuda-sdk-3.2.ebuild:
+  Version bump.
+
+  28 Nov 2010; Michał Januszewski <spock@gentoo.org>
+  nvidia-cuda-sdk-3.1.ebuild:
+  Do not try to install directories with doins.
+
+  30 Sep 2010; Michał Januszewski <spock@gentoo.org>
+  nvidia-cuda-sdk-2.1.1215.2015.ebuild, nvidia-cuda-sdk-2.2.ebuild,
+  nvidia-cuda-sdk-2.2-r1.ebuild, nvidia-cuda-sdk-2.3.ebuild,
+  nvidia-cuda-sdk-3.0_beta1.ebuild, nvidia-cuda-sdk-3.0.ebuild:
+  Add a dependency on <gcc-4.4 (bug #339106).
+
+  16 Sep 2010; Tomáš Chvátal <scarabeus@gentoo.org>
+  nvidia-cuda-sdk-2.1.1215.2015.ebuild, nvidia-cuda-sdk-2.2.ebuild,
+  nvidia-cuda-sdk-2.2-r1.ebuild, nvidia-cuda-sdk-2.02.0807.1535.ebuild,
+  nvidia-cuda-sdk-2.3.ebuild, nvidia-cuda-sdk-3.0_beta1.ebuild,
+  nvidia-cuda-sdk-3.0.ebuild, nvidia-cuda-sdk-3.1.ebuild:
+  virtual/glut -> media-libs/glut
+
+*nvidia-cuda-sdk-3.1 (03 Jul 2010)
+
+  03 Jul 2010; Michał Januszewski <spock@gentoo.org>
+  +nvidia-cuda-sdk-3.1.ebuild:
+  Version bump (bug #325833). Thanks to Clemens Rabe for the updated ebuild.
+
+*nvidia-cuda-sdk-3.0 (21 Mar 2010)
+
+  21 Mar 2010; Michał Januszewski <spock@gentoo.org>
+  +nvidia-cuda-sdk-3.0.ebuild:
+  Version bump.
+
+*nvidia-cuda-sdk-3.0_beta1 (08 Feb 2010)
+
+  08 Feb 2010; Michał Januszewski <spock@gentoo.org>
+  +nvidia-cuda-sdk-3.0_beta1.ebuild, metadata.xml:
+  Add the 3.0 beta SDK.
+
+  01 Dec 2009; Christian Faulhammer <fauli@gentoo.org>
+  nvidia-cuda-sdk-2.2-r1.ebuild:
+  stable x86, bug 293641
+
+  07 Aug 2009; <chainsaw@gentoo.org> nvidia-cuda-sdk-2.02.0807.1535.ebuild:
+  Marked stable as requested by Michal "Spock" Januszewski
+  <spock@gentoo.org> in bug #276538. Arch-tested by Víctor "VQuicksilver"
+  Enríquez using K3d.
+
+  07 Aug 2009; <chainsaw@gentoo.org> nvidia-cuda-sdk-2.02.0807.1535.ebuild:
+  Marked stable as requested by Michal "Spock" Januszewski
+  <spock@gentoo.org> in bug #276538. Arch-tested by Víctor "VQuicksilver"
+  Enríquez using K3d & cuda-profiler.
+
+*nvidia-cuda-sdk-2.3 (29 Jul 2009)
+
+  29 Jul 2009; Michał Januszewski <spock@gentoo.org>
+  +nvidia-cuda-sdk-2.3.ebuild:
+  Version bump.
+
+  18 Jul 2009; Michał Januszewski <spock@gentoo.org>
+  nvidia-cuda-sdk-2.1.1215.2015.ebuild, nvidia-cuda-sdk-2.2.ebuild,
+  nvidia-cuda-sdk-2.2-r1.ebuild, nvidia-cuda-sdk-2.02.0807.1535.ebuild:
+  Add info about this package requiring <=gcc-4.3 to build (bug #278137).
+
+  08 Jul 2009; Christian Faulhammer <fauli@gentoo.org>
+  nvidia-cuda-sdk-2.02.0807.1535.ebuild:
+  stable x86, bug 276538
+
+  03 Jul 2009; Michał Januszewski <spock@gentoo.org>
+  nvidia-cuda-sdk-2.1.1215.2015.ebuild, nvidia-cuda-sdk-2.2.ebuild,
+  nvidia-cuda-sdk-2.02.0807.1535.ebuild:
+  Do not perform any binary checks as this package uses upstream binaries
+  (bug #274557).
+
+*nvidia-cuda-sdk-2.2-r1 (03 Jul 2009)
+
+  03 Jul 2009; Michał Januszewski <spock@gentoo.org>
+  +nvidia-cuda-sdk-2.2-r1.ebuild:
+  New, more configurable ebuild. It is not possible not to install the code
+  examples and documentation by disabling the 'examples' and 'doc' USE
+  flags.
+
+  16 May 2009; Michał Januszewski <spock@gentoo.org>
+  nvidia-cuda-sdk-2.1.1215.2015.ebuild, nvidia-cuda-sdk-2.2.ebuild,
+  nvidia-cuda-sdk-2.02.0807.1535.ebuild:
+  Ignore executable stacks in an upstream binary.
+
+  16 May 2009; Michał Januszewski <spock@gentoo.org>
+  nvidia-cuda-sdk-2.1.1215.2015.ebuild:
+  Force serial make (bug #266069, comment #25).
+
+*nvidia-cuda-sdk-2.2 (16 May 2009)
+
+  16 May 2009; Michał Januszewski <spock@gentoo.org>
+  +nvidia-cuda-sdk-2.2.ebuild:
+  Version bump (bug #269893).
+
+*nvidia-cuda-sdk-2.1.1215.2015 (16 May 2009)
+
+  16 May 2009; Michał Januszewski <spock@gentoo.org>
+  +nvidia-cuda-sdk-2.1.1215.2015.ebuild,
+  -nvidia-cuda-sdk-2.10.1215.2015.ebuild:
+  As NVIDIA changed the versioning scheme of their files, change the latest
+  version of the package so that it is not identified as newer than 2.2.
+
+  22 Mar 2009; Michał Januszewski <spock@gentoo.org>
+  +files/nvidia-cuda-sdk-2.10.1215.2015-vararg_inline_fix.patch,
+  nvidia-cuda-sdk-2.10.1215.2015.ebuild:
+  Fix bug #260744 (compilation problems with GCC 4.3.3+).
+
+*nvidia-cuda-sdk-2.10.1215.2015 (21 Jan 2009)
+
+  21 Jan 2009; Michał Januszewski <spock@gentoo.org>
+  +nvidia-cuda-sdk-2.10.1215.2015.ebuild:
+  Version bump.
+
+  13 Nov 2008; Michał Januszewski <spock@gentoo.org>
+  nvidia-cuda-sdk-2.02.0807.1535.ebuild:
+  Change the default CUDA path to /opt/cuda (bug #245621).
+
+  29 Oct 2008; Michał Januszewski <spock@gentoo.org>
+  nvidia-cuda-sdk-2.02.0807.1535.ebuild:
+  Add missing dependency on GLUT (bug #244182).
+
+  18 Oct 2008; Michał Januszewski <spock@gentoo.org>
+  nvidia-cuda-sdk-2.02.0807.1535.ebuild:
+  Fix the DESCRIPTION field in the ebuild. Remove a spurious RESTRICT.
+
+*nvidia-cuda-sdk-2.02.0807.1535 (18 Oct 2008)
+
+  18 Oct 2008; Michał Januszewski <spock@gentoo.org>
+  +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/metadata.xml b/dev-util/nvidia-cuda-sdk/metadata.xml
new file mode 100644
index 0000000..8016fc8
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<longdescription lang='en'>
+  The NVIDIA GPU Computing SDK provides hundreds of code samples,
+  white papers, to help getting started on the path of writing
+  software with CUDA C/C++ or DirectCompute.
+</longdescription>
+<use>
+  <flag name='emulation'>Build binaries for device emulation mode. These binaries will not require a CUDA-capable GPU to run.
+  </flag>
+  <flag name='opencl'>Build OpenCL binaries</flag>
+  <flag name='cuda'>Build CUDA binaries</flag>
+</use>
+</pkgmetadata>
+

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 0000000..6176d5f
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+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 ~amd64-linux ~x86-linux"
+IUSE="debug +doc +examples opencl +cuda"
+
+RDEPEND=">=dev-util/nvidia-cuda-toolkit-4.2
+	examples? ( >=x11-drivers/nvidia-drivers-260.19.21 )
+	media-libs/freeglut"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+	if use cuda || use opencl && [[ $(tc-getCXX) == *gcc* ]] && \
+		! version_is_at_least "4.5" "$(gcc-version)"; 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() {
+	use examples || return
+	local myopts=""
+	use debug && myopts+=" dbg=1"
+	cd sdk
+	use cuda && emake -C C cuda-install="${EPREFIX}"/opt/cuda ${myopts}
+	use opencl && emake -C opencl
+}
+
+src_install() {
+	cd sdk
+	use doc || rm -rf *.txt doc */doc */Samples.htm */releaseNotesData
+	use examples || rm -rf bin */bin */tools
+	local f
+	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 related	[flat|nested] 17+ messages in thread

* [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-sdk/
@ 2012-07-04 18:51 Sebastien Fabbro
  0 siblings, 0 replies; 17+ messages in thread
From: Sebastien Fabbro @ 2012-07-04 18:51 UTC (permalink / raw
  To: gentoo-commits

commit:     15c15ed6c16a2f60e480689aafa8960bcf80d480
Author:     Sebastien Fabbro <sfabbro <AT> uvic <DOT> ca>
AuthorDate: Wed Jul  4 18:50:20 2012 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Wed Jul  4 18:50:20 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=15c15ed6

dev-util/nvidia-cuda-sdk: Adapted to newer nvidia-cuda-sdk

(Portage version: 2.2.01.20430-prefix/git/Linux x86_64, unsigned Manifest commit)

---
 dev-util/nvidia-cuda-sdk/ChangeLog                 |    6 ++++++
 dev-util/nvidia-cuda-sdk/metadata.xml              |    2 --
 ...sdk-4.2.ebuild => nvidia-cuda-sdk-4.2.9.ebuild} |   13 +++++--------
 3 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/dev-util/nvidia-cuda-sdk/ChangeLog b/dev-util/nvidia-cuda-sdk/ChangeLog
index 8912130..7eba571 100644
--- a/dev-util/nvidia-cuda-sdk/ChangeLog
+++ b/dev-util/nvidia-cuda-sdk/ChangeLog
@@ -2,6 +2,12 @@
 # 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-4.2.9 (04 Jul 2012)
+
+  04 Jul 2012; Sébastien Fabbro <bicatali@gentoo.org>
+  +nvidia-cuda-sdk-4.2.9.ebuild, -nvidia-cuda-sdk-4.2.ebuild, metadata.xml:
+  dev-util/nvidia-cuda-sdk: Adapted to newer nvidia-cuda-sdk
+
 *nvidia-cuda-sdk-4.2 (03 Jul 2012)
 
   03 Jul 2012; Sébastien Fabbro <bicatali@gentoo.org>

diff --git a/dev-util/nvidia-cuda-sdk/metadata.xml b/dev-util/nvidia-cuda-sdk/metadata.xml
index 8016fc8..23cb88d 100644
--- a/dev-util/nvidia-cuda-sdk/metadata.xml
+++ b/dev-util/nvidia-cuda-sdk/metadata.xml
@@ -8,8 +8,6 @@
   software with CUDA C/C++ or DirectCompute.
 </longdescription>
 <use>
-  <flag name='emulation'>Build binaries for device emulation mode. These binaries will not require a CUDA-capable GPU to run.
-  </flag>
   <flag name='opencl'>Build OpenCL binaries</flag>
   <flag name='cuda'>Build CUDA binaries</flag>
 </use>

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.9.ebuild
similarity index 79%
rename from dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.ebuild
rename to dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.9.ebuild
index 6176d5f..6ce3153 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.9.ebuild
@@ -4,22 +4,20 @@
 
 EAPI=4
 
-inherit unpacker toolchain-funcs
+inherit unpacker toolchain-funcs versionator
 
 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}
+MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
 
-SRC_URI="http://developer.download.nvidia.com/compute/cuda/${DIR_V}/rel/sdk/gpucomputingsdk_${CUDA_V}.9_linux.run"
+SRC_URI="http://developer.download.nvidia.com/compute/cuda/${MYD}/rel/sdk/gpucomputingsdk_${PV}_linux.run"
 LICENSE="CUDPP"
 SLOT="0"
 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
 IUSE="debug +doc +examples opencl +cuda"
 
-RDEPEND=">=dev-util/nvidia-cuda-toolkit-4.2
+RDEPEND=">=dev-util/nvidia-cuda-toolkit-${PV}
 	examples? ( >=x11-drivers/nvidia-drivers-260.19.21 )
 	media-libs/freeglut"
 DEPEND="${RDEPEND}"
@@ -28,12 +26,11 @@ S="${WORKDIR}"
 
 pkg_setup() {
 	if use cuda || use opencl && [[ $(tc-getCXX) == *gcc* ]] && \
-		! version_is_at_least "4.5" "$(gcc-version)"; then
+		! version_is_at_least 4.5 "$(gcc-version)"; 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() {



^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-sdk/
@ 2012-07-11  9:09 Honza Macháček
  0 siblings, 0 replies; 17+ messages in thread
From: Honza Macháček @ 2012-07-11  9:09 UTC (permalink / raw
  To: gentoo-commits

commit:     6659689ff8f14bb1bf09395f4fde19c9e23ce7fe
Author:     Honza Macháček <Hloupy.Honza <AT> centrum <DOT> cz>
AuthorDate: Wed Jul 11 09:08:59 2012 +0000
Commit:     Honza Macháček <Hloupy.Honza <AT> centrum <DOT> cz>
CommitDate: Wed Jul 11 09:08:59 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=6659689f

Made dev-util/nvidia-cuda-sdk-4.2.9 compile with USE=opencl

---
 dev-util/nvidia-cuda-sdk/ChangeLog                 |    4 ++++
 .../nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.9.ebuild   |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/dev-util/nvidia-cuda-sdk/ChangeLog b/dev-util/nvidia-cuda-sdk/ChangeLog
index 7eba571..5e92775 100644
--- a/dev-util/nvidia-cuda-sdk/ChangeLog
+++ b/dev-util/nvidia-cuda-sdk/ChangeLog
@@ -2,6 +2,10 @@
 # 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 $
 
+  11 Jul 2012; Honza Macháček <Hloupy.Honza@centrum.cz>
+  nvidia-cuda-sdk-4.2.9.ebuild:
+  Corrected OpenCL spelling in `emake -C OpenCL`
+
 *nvidia-cuda-sdk-4.2.9 (04 Jul 2012)
 
   04 Jul 2012; Sébastien Fabbro <bicatali@gentoo.org>

diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.9.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.9.ebuild
index 6ce3153..188cfcd 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.9.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.9.ebuild
@@ -39,7 +39,7 @@ src_compile() {
 	use debug && myopts+=" dbg=1"
 	cd sdk
 	use cuda && emake -C C cuda-install="${EPREFIX}"/opt/cuda ${myopts}
-	use opencl && emake -C opencl
+	use opencl && emake -C OpenCL
 }
 
 src_install() {



^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-sdk/
@ 2012-11-26 22:02 Justin Lecher
  0 siblings, 0 replies; 17+ messages in thread
From: Justin Lecher @ 2012-11-26 22:02 UTC (permalink / raw
  To: gentoo-commits

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
+}


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-sdk/
@ 2012-11-26 22:02 Justin Lecher
  0 siblings, 0 replies; 17+ messages in thread
From: Justin Lecher @ 2012-11-26 22:02 UTC (permalink / raw
  To: gentoo-commits

commit:     1eaeeab8444bf3da8e09d76f0178e5516c82cc99
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 16 15:18:58 2012 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Mon Nov 26 14:41:08 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=1eaeeab8

dev-util/nvidia-cuda-sdk: Reverted changes to bicatalis commit; Moving to cuda.eclass

Package-Manager: portage-2.2.0_alpha142

---
 dev-util/nvidia-cuda-sdk/ChangeLog                 |    6 ++
 dev-util/nvidia-cuda-sdk/metadata.xml              |   13 ++--
 ....2.9.ebuild => nvidia-cuda-sdk-4.2.9-r1.ebuild} |   70 ++++++++++++--------
 .../nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.9.ebuild   |   20 ++++--
 4 files changed, 68 insertions(+), 41 deletions(-)

diff --git a/dev-util/nvidia-cuda-sdk/ChangeLog b/dev-util/nvidia-cuda-sdk/ChangeLog
index 5e92775..09af82d 100644
--- a/dev-util/nvidia-cuda-sdk/ChangeLog
+++ b/dev-util/nvidia-cuda-sdk/ChangeLog
@@ -2,6 +2,12 @@
 # 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-4.2.9-r1 (16 Nov 2012)
+
+  16 Nov 2012; Justin Lecher <jlec@gentoo.org> nvidia-cuda-sdk-4.2.9.ebuild,
+  +nvidia-cuda-sdk-4.2.9-r1.ebuild, metadata.xml:
+  Reverted changes to bicatalis commit; Moving to cuda.eclass
+
   11 Jul 2012; Honza Macháček <Hloupy.Honza@centrum.cz>
   nvidia-cuda-sdk-4.2.9.ebuild:
   Corrected OpenCL spelling in `emake -C OpenCL`

diff --git a/dev-util/nvidia-cuda-sdk/metadata.xml b/dev-util/nvidia-cuda-sdk/metadata.xml
index 23cb88d..1411995 100644
--- a/dev-util/nvidia-cuda-sdk/metadata.xml
+++ b/dev-util/nvidia-cuda-sdk/metadata.xml
@@ -1,15 +1,14 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-<herd>sci</herd>
-<longdescription lang='en'>
+	<herd>sci</herd>
+	<longdescription lang="en">
   The NVIDIA GPU Computing SDK provides hundreds of code samples,
   white papers, to help getting started on the path of writing
   software with CUDA C/C++ or DirectCompute.
 </longdescription>
-<use>
-  <flag name='opencl'>Build OpenCL binaries</flag>
-  <flag name='cuda'>Build CUDA binaries</flag>
-</use>
+	<use>
+		<flag name="opencl">Build OpenCL binaries</flag>
+		<flag name="cuda">Build CUDA binaries</flag>
+	</use>
 </pkgmetadata>
-

diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.9.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.9-r1.ebuild
similarity index 64%
copy from dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.9.ebuild
copy to dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.9-r1.ebuild
index de89788..f42f58b 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.9.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.9-r1.ebuild
@@ -27,40 +27,26 @@ DEPEND="${RDEPEND}"
 
 S=${WORKDIR}
 
-gcc_supported_installed() {
-	local gcc_bindir _ver
-	for _ver in $*; do
-		has_version sys-devel/gcc:${_ver} && \
-			gcc_bindir="$(ls -d ${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/${_ver}* | tail -n 1)" && \
-			break
-	done
-	if [[ -n ${gcc_bindir} ]]; then
-		echo "${gcc_bindir}"
-		return 0
-	else
-		eerror "Only gcc version(s) $* are supported"
-		die "Only gcc version(s) $* are supported"
-		return 1
+pkg_setup() {
+	if use cuda || use opencl; then
+		cuda_pkg_setup
 	fi
 }
 
 src_prepare() {
-	local nvcc_bindir
-
-	if use cuda || use opencl && [[ $(tc-getCXX) == *g++* ]]; then
-		nvcc_bindir="--compiler-bindir=\"$(gcc_supported_installed 4.6 4.5 4.4)\""
-	fi
-
 	epatch "${FILESDIR}"/${P}-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 "/CX/s:g++:$(tc-getCXX):g" \
-		-e "/NVCCFLAGS/s|\(:=\)|\1 ${nvcc_bindir} |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:-O2::g' \
 		-e 's:GLEW_x86_64:GLEW:g' \
 		-i $(find sdk -type f -name "*.mk") || die
 
@@ -70,18 +56,43 @@ src_prepare() {
 
 src_compile() {
 	use examples || return
-	local myopts="verbose=1"
+	local myopts verbose="verbose=1"
 	use debug && myopts+=" dbg=1"
 	cd sdk
-	use cuda && emake -C C cuda-install="${EPREFIX}/opt/cuda" ${myopts}
-	use opencl && emake -C OpenCL
+	use cuda && emake -C C cuda-install="${EPREFIX}/opt/cuda" ${myopts} ${verbose}
+	use opencl && emake -C OpenCL ${verbose}
 }
 
 src_install() {
+	local i j f t crap=""
 	cd sdk
-	use doc || rm -rf *.txt doc */doc */Samples.htm */releaseNotesData
-	use examples || rm -rf bin */bin */tools
-	local f
+	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
@@ -97,4 +108,5 @@ src_install() {
 			fi
 		fi
 	done
+	eend
 }

diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.9.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.9.ebuild
index de89788..514f943 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.9.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-4.2.9.ebuild
@@ -4,7 +4,7 @@
 
 EAPI=4
 
-inherit cuda eutils unpacker toolchain-funcs versionator
+inherit eutils unpacker toolchain-funcs versionator
 
 MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
 DESCRIPTION="NVIDIA CUDA Software Development Kit"
@@ -27,11 +27,20 @@ DEPEND="${RDEPEND}"
 
 S=${WORKDIR}
 
+pkg_setup() {
+	if use cuda || use opencl && [[ $(tc-getCXX) == *gcc* ]] && \
+		! version_is_at_least 4.5 "$(gcc-version)"; 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
+}
+
 gcc_supported_installed() {
 	local gcc_bindir _ver
 	for _ver in $*; do
 		has_version sys-devel/gcc:${_ver} && \
-			gcc_bindir="$(ls -d ${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/${_ver}* | tail -n 1)" && \
+			gcc_bindir="$(ls -d "${EPREFIX}"/usr/*pc-linux-gnu/gcc-bin/${_ver}* | tail -n 1)" && \
 			break
 	done
 	if [[ -n ${gcc_bindir} ]]; then
@@ -56,6 +65,7 @@ src_prepare() {
 	sed \
 		-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 "/CX/s:g++:$(tc-getCXX):g" \
 		-e "/NVCCFLAGS/s|\(:=\)|\1 ${nvcc_bindir} |g" \
@@ -70,11 +80,11 @@ src_prepare() {
 
 src_compile() {
 	use examples || return
-	local myopts="verbose=1"
+	local myopts verbose="verbose=1"
 	use debug && myopts+=" dbg=1"
 	cd sdk
-	use cuda && emake -C C cuda-install="${EPREFIX}/opt/cuda" ${myopts}
-	use opencl && emake -C OpenCL
+	use cuda && emake -C C cuda-install="${EPREFIX}/opt/cuda" ${myopts} ${verbose}
+	use opencl && emake -C OpenCL ${verbose}
 }
 
 src_install() {


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-sdk/
@ 2014-07-10  8:53 Justin Lecher
  0 siblings, 0 replies; 17+ messages in thread
From: Justin Lecher @ 2014-07-10  8:53 UTC (permalink / raw
  To: gentoo-commits

commit:     6cc1af5821f054eec2b74647b14e625226e27388
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Thu Jul 10 06:45:31 2014 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Thu Jul 10 06:45:31 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=6cc1af58

dev-util/nvidia-cuda-sdk: add version 6.5.11

Package-Manager: portage-2.2.8-r1

---
 dev-util/nvidia-cuda-sdk/ChangeLog                 |   9 ++
 dev-util/nvidia-cuda-sdk/metadata.xml              |  13 ++
 .../nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.11.ebuild  | 151 +++++++++++++++++++++
 3 files changed, 173 insertions(+)

diff --git a/dev-util/nvidia-cuda-sdk/ChangeLog b/dev-util/nvidia-cuda-sdk/ChangeLog
new file mode 100644
index 0000000..e5fbe11
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-util/nvidia-cuda-sdk
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*nvidia-cuda-sdk-6.5.11 (10 Jul 2014)
+
+  10 Jul 2014; Marius Brehler <marbre@linux.sungazer.de> +metadata.xml,
+  +nvidia-cuda-sdk-6.5.11.ebuild:
+  dev-util/nvidia-cuda-sdk: add version 6.5.11

diff --git a/dev-util/nvidia-cuda-sdk/metadata.xml b/dev-util/nvidia-cuda-sdk/metadata.xml
new file mode 100644
index 0000000..8bd8dab
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <herd>sci</herd>
+  <use>
+    <flag name="opencl">
+			Build OpenCL binaries.
+		</flag>
+    <flag name="cuda">
+			Build CUDA binaries.
+		</flag>
+  </use>
+</pkgmetadata>

diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.11.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.11.ebuild
new file mode 100644
index 0000000..4e76354
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.11.ebuild
@@ -0,0 +1,151 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
+
+MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="http://developer.nvidia.com/cuda"
+CURI="https://developer.nvidia.com/rdp/cuda-65-rc-toolkit-download"
+SRC_URI="amd64? ( cuda_${PV}_rc_linux_64.run )"
+
+LICENSE="CUDPP"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64-linux"
+#IUSE="debug +doc +examples opencl +cuda"
+IUSE="debug +examples opencl +cuda"
+
+RDEPEND="
+	~dev-util/nvidia-cuda-toolkit-${PV}
+	media-libs/freeglut
+	examples? (
+		media-libs/freeimage
+		media-libs/glew
+		virtual/mpi
+		>=x11-drivers/nvidia-drivers-340.21[uvm]
+		)"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test fetch"
+
+pkg_nofetch() {
+	einfo "Please download"
+	einfo "  - cuda_${P}_rc_linux64.run"
+	einfo "from ${CURI} and place it in ${DISTDIR}"
+}
+
+S=${WORKDIR}/cuda-samples
+
+QA_EXECSTACK=(
+	opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+	opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+	opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+	opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+	)
+
+src_unpack() {
+	unpacker
+	unpacker run_files/cuda-samples*run
+}
+
+pkg_setup() {
+	if use cuda || use opencl; then
+		cuda_pkg_setup
+	fi
+}
+
+src_prepare() {
+	export RAWLDFLAGS="$(raw-ldflags)"
+
+	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 "/CC/s:gcc:$(tc-getCC):g" \
+		-e "/GCC/s:g++:$(tc-getCXX):g" \
+		-e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+		-e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+		-e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+		-e 's:-Wimplicit::g' \
+		-e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
+		-e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$(pkg-config --libs glew)|g" \
+		-e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
+		-i $(find . -type f -name "Makefile") || die
+
+#		-e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
+	find common/inc/GL -delete || die
+	find . -type f -name "*\.a" -delete || die
+}
+
+src_compile() {
+	use examples || return
+	local myopts verbose="verbose=1"
+	use debug && myopts+=" dbg=1"
+	export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+	emake \
+		cuda-install="${EPREFIX}/opt/cuda" \
+		CUDA_PATH="${EPREFIX}/opt/cuda/" \
+		MPI_GCC=10 \
+		${myopts} ${verbose}
+}
+
+src_test() {
+	local _dir _subdir
+
+	addwrite /dev/nvidiactl
+	addwrite /dev/nvidia0
+
+	for _dir in {0..9}*; do
+		pushd ${_dir} > /dev/null
+		for _subdir in *; do
+			emake -C ${_subdir} run
+		done
+		popd > /dev/null
+	done
+}
+
+src_install() {
+	local i j f t crap=""
+	#if use doc; then
+	#	ebegin "Installing docs ..."
+	#		dodoc -r doc
+	#		dodoc *.txt */*.pdf
+	#		treecopy $(find -type f -name readme.txt) "${ED}"/usr/share/doc/${PF}/
+	#	eend
+	#fi
+
+	crap+=" *.txt doc Samples.htm* */*.pdf"
+
+	ebegin "Cleaning before installation..."
+		for i in ${crap}; do
+			if [[ -e ${i} ]]; then
+				find ${i} -delete || die
+			fi
+		done
+		find -type f -name "*.o" -delete
+		find -type f -name "readme.txt" -delete
+	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
+}


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-sdk/
@ 2014-07-10  8:53 Justin Lecher
  0 siblings, 0 replies; 17+ messages in thread
From: Justin Lecher @ 2014-07-10  8:53 UTC (permalink / raw
  To: gentoo-commits

commit:     e08c70542fc99abbfb4911a4be549141741cddfe
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Thu Jul 10 06:45:31 2014 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Thu Jul 10 08:53:32 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=e08c7054

dev-util/nvidia-cuda-sdk: add version 6.5.11

Package-Manager: portage-2.2.8-r1

---
 dev-util/nvidia-cuda-sdk/ChangeLog                 |   9 ++
 dev-util/nvidia-cuda-sdk/metadata.xml              |  13 ++
 .../nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.11.ebuild  | 151 +++++++++++++++++++++
 3 files changed, 173 insertions(+)

diff --git a/dev-util/nvidia-cuda-sdk/ChangeLog b/dev-util/nvidia-cuda-sdk/ChangeLog
new file mode 100644
index 0000000..e5fbe11
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-util/nvidia-cuda-sdk
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*nvidia-cuda-sdk-6.5.11 (10 Jul 2014)
+
+  10 Jul 2014; Marius Brehler <marbre@linux.sungazer.de> +metadata.xml,
+  +nvidia-cuda-sdk-6.5.11.ebuild:
+  dev-util/nvidia-cuda-sdk: add version 6.5.11

diff --git a/dev-util/nvidia-cuda-sdk/metadata.xml b/dev-util/nvidia-cuda-sdk/metadata.xml
new file mode 100644
index 0000000..8bd8dab
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <herd>sci</herd>
+  <use>
+    <flag name="opencl">
+			Build OpenCL binaries.
+		</flag>
+    <flag name="cuda">
+			Build CUDA binaries.
+		</flag>
+  </use>
+</pkgmetadata>

diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.11.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.11.ebuild
new file mode 100644
index 0000000..4e76354
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.11.ebuild
@@ -0,0 +1,151 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
+
+MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="http://developer.nvidia.com/cuda"
+CURI="https://developer.nvidia.com/rdp/cuda-65-rc-toolkit-download"
+SRC_URI="amd64? ( cuda_${PV}_rc_linux_64.run )"
+
+LICENSE="CUDPP"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64-linux"
+#IUSE="debug +doc +examples opencl +cuda"
+IUSE="debug +examples opencl +cuda"
+
+RDEPEND="
+	~dev-util/nvidia-cuda-toolkit-${PV}
+	media-libs/freeglut
+	examples? (
+		media-libs/freeimage
+		media-libs/glew
+		virtual/mpi
+		>=x11-drivers/nvidia-drivers-340.21[uvm]
+		)"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test fetch"
+
+pkg_nofetch() {
+	einfo "Please download"
+	einfo "  - cuda_${P}_rc_linux64.run"
+	einfo "from ${CURI} and place it in ${DISTDIR}"
+}
+
+S=${WORKDIR}/cuda-samples
+
+QA_EXECSTACK=(
+	opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+	opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+	opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+	opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+	)
+
+src_unpack() {
+	unpacker
+	unpacker run_files/cuda-samples*run
+}
+
+pkg_setup() {
+	if use cuda || use opencl; then
+		cuda_pkg_setup
+	fi
+}
+
+src_prepare() {
+	export RAWLDFLAGS="$(raw-ldflags)"
+
+	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 "/CC/s:gcc:$(tc-getCC):g" \
+		-e "/GCC/s:g++:$(tc-getCXX):g" \
+		-e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+		-e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+		-e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+		-e 's:-Wimplicit::g' \
+		-e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
+		-e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$(pkg-config --libs glew)|g" \
+		-e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
+		-i $(find . -type f -name "Makefile") || die
+
+#		-e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
+	find common/inc/GL -delete || die
+	find . -type f -name "*\.a" -delete || die
+}
+
+src_compile() {
+	use examples || return
+	local myopts verbose="verbose=1"
+	use debug && myopts+=" dbg=1"
+	export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+	emake \
+		cuda-install="${EPREFIX}/opt/cuda" \
+		CUDA_PATH="${EPREFIX}/opt/cuda/" \
+		MPI_GCC=10 \
+		${myopts} ${verbose}
+}
+
+src_test() {
+	local _dir _subdir
+
+	addwrite /dev/nvidiactl
+	addwrite /dev/nvidia0
+
+	for _dir in {0..9}*; do
+		pushd ${_dir} > /dev/null
+		for _subdir in *; do
+			emake -C ${_subdir} run
+		done
+		popd > /dev/null
+	done
+}
+
+src_install() {
+	local i j f t crap=""
+	#if use doc; then
+	#	ebegin "Installing docs ..."
+	#		dodoc -r doc
+	#		dodoc *.txt */*.pdf
+	#		treecopy $(find -type f -name readme.txt) "${ED}"/usr/share/doc/${PF}/
+	#	eend
+	#fi
+
+	crap+=" *.txt doc Samples.htm* */*.pdf"
+
+	ebegin "Cleaning before installation..."
+		for i in ${crap}; do
+			if [[ -e ${i} ]]; then
+				find ${i} -delete || die
+			fi
+		done
+		find -type f -name "*.o" -delete
+		find -type f -name "readme.txt" -delete
+	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
+}


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-sdk/
@ 2014-08-21  8:32 Justin Lecher
  0 siblings, 0 replies; 17+ messages in thread
From: Justin Lecher @ 2014-08-21  8:32 UTC (permalink / raw
  To: gentoo-commits

commit:     e252fb8b983dddd4482b5fab66475071874a717a
Author:     Marius Brehler <marius.brehler <AT> tu-dortmund <DOT> de>
AuthorDate: Wed Aug 20 09:12:47 2014 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Wed Aug 20 09:12:47 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=e252fb8b

dev-util/nvidia-cuda-sdk: Version Bump

---
 dev-util/nvidia-cuda-sdk/ChangeLog                 |   6 +
 .../nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.14.ebuild  | 145 +++++++++++++++++++++
 2 files changed, 151 insertions(+)

diff --git a/dev-util/nvidia-cuda-sdk/ChangeLog b/dev-util/nvidia-cuda-sdk/ChangeLog
index e5fbe11..a2aaaf4 100644
--- a/dev-util/nvidia-cuda-sdk/ChangeLog
+++ b/dev-util/nvidia-cuda-sdk/ChangeLog
@@ -2,6 +2,12 @@
 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+*nvidia-cuda-sdk-6.5.14 (20 Aug 2014)
+
+  20 Aug 2014; Marius Brehler <marbre@linux.sungazer.de>
+  +nvidia-cuda-sdk-6.5.14.ebuild:
+  Version Bump
+
 *nvidia-cuda-sdk-6.5.11 (10 Jul 2014)
 
   10 Jul 2014; Marius Brehler <marbre@linux.sungazer.de> +metadata.xml,

diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.14.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.14.ebuild
new file mode 100644
index 0000000..ea95b00
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.14.ebuild
@@ -0,0 +1,145 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
+
+MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="http://developer.nvidia.com/cuda"
+CURI="http://developer.download.nvidia.com/compute/cuda/${MYD}/rel/installers"
+SRC_URI="amd64? ( ${CURI}/cuda_${PV}_linux_64.run )"
+
+LICENSE="CUDPP"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64-linux"
+IUSE="debug +doc +examples opencl +cuda"
+
+RDEPEND="
+	~dev-util/nvidia-cuda-toolkit-${PV}
+	media-libs/freeglut
+	examples? (
+		media-libs/freeimage
+		media-libs/glew
+		virtual/mpi
+		>=x11-drivers/nvidia-drivers-334.16-r7[uvm]
+		)"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test"
+
+S=${WORKDIR}/cuda-samples
+
+QA_EXECSTACK=(
+	opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+	opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+	opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+	opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+	)
+
+src_unpack() {
+	unpacker
+	unpacker run_files/cuda-samples*run
+}
+
+pkg_setup() {
+	if use cuda || use opencl; then
+		cuda_pkg_setup
+	fi
+}
+
+src_prepare() {
+	export RAWLDFLAGS="$(raw-ldflags)"
+#	epatch "${FILESDIR}"/${P}-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 "/CC/s:gcc:$(tc-getCC):g" \
+		-e "/GCC/s:g++:$(tc-getCXX):g" \
+		-e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+		-e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+		-e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+		-e 's:-Wimplicit::g' \
+		-e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
+		-e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$(pkg-config --libs glew)|g" \
+		-e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
+		-i $(find . -type f -name "Makefile") || die
+
+#		-e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
+	find common/inc/GL -delete || die
+	find . -type f -name "*\.a" -delete || die
+}
+
+src_compile() {
+	use examples || return
+	local myopts verbose="verbose=1"
+	use debug && myopts+=" dbg=1"
+	export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+	emake \
+		cuda-install="${EPREFIX}/opt/cuda" \
+		CUDA_PATH="${EPREFIX}/opt/cuda/" \
+		MPI_GCC=10 \
+		${myopts} ${verbose}
+}
+
+src_test() {
+	local _dir _subdir
+
+	addwrite /dev/nvidiactl
+	addwrite /dev/nvidia0
+
+	for _dir in {0..9}*; do
+		pushd ${_dir} > /dev/null
+		for _subdir in *; do
+			emake -C ${_subdir} run
+		done
+		popd > /dev/null
+	done
+}
+
+src_install() {
+	local i j f t crap=""
+	#if use doc; then
+	#	ebegin "Installing docs ..."
+	#		dodoc -r doc
+	#		dodoc *.txt */*.pdf
+	#		treecopy $(find -type f -name readme.txt) "${ED}"/usr/share/doc/${PF}/
+	#	eend
+	#fi
+
+	crap+=" *.txt doc Samples.htm* */*.pdf"
+
+	ebegin "Cleaning before installation..."
+		for i in ${crap}; do
+			if [[ -e ${i} ]]; then
+				find ${i} -delete || die
+			fi
+		done
+		find -type f -name "*.o" -delete
+		find -type f -name "readme.txt" -delete
+	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
+}


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-sdk/
@ 2014-11-17  7:12 Justin Lecher
  0 siblings, 0 replies; 17+ messages in thread
From: Justin Lecher @ 2014-11-17  7:12 UTC (permalink / raw
  To: gentoo-commits

commit:     7b7020d0a852c8a492b1670be1d1ed880bd86e02
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Sat Nov 15 12:19:07 2014 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sat Nov 15 12:19:07 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=7b7020d0

dev-util/nvidia-cuda-sdk: add version 6.5.19

---
 dev-util/nvidia-cuda-sdk/ChangeLog                 |   9 ++
 dev-util/nvidia-cuda-sdk/metadata.xml              |  17 +++
 .../nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild  | 145 +++++++++++++++++++++
 3 files changed, 171 insertions(+)

diff --git a/dev-util/nvidia-cuda-sdk/ChangeLog b/dev-util/nvidia-cuda-sdk/ChangeLog
new file mode 100644
index 0000000..8ecb9a7
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-util/nvidia-cuda-sdk
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*nvidia-cuda-sdk-6.5.19 (15 Nov 2014)
+
+  15 Nov 2014; Marius Brehler <marbre@linux.sungazer.de> +metadata.xml,
+  +nvidia-cuda-sdk-6.5.19.ebuild:
+  dev-util/nvidia-cuda-sdk: add version 6.5.19

diff --git a/dev-util/nvidia-cuda-sdk/metadata.xml b/dev-util/nvidia-cuda-sdk/metadata.xml
new file mode 100644
index 0000000..288e495
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <herd>sci</herd>
+  <maintainer>
+    <email>jlec@gentoo.org</email>
+    <name>Justin Lecher</name>
+  </maintainer>
+  <use>
+    <flag name="opencl">
+			Build OpenCL binaries.
+		</flag>
+    <flag name="cuda">
+			Build CUDA binaries.
+		</flag>
+  </use>
+</pkgmetadata>

diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild
new file mode 100644
index 0000000..93de750
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild
@@ -0,0 +1,145 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
+
+MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="http://developer.nvidia.com/cuda"
+CURI="http://developer.download.nvidia.com/compute/cuda/${MYD}/rel/installers"
+SRC_URI="amd64? ( ${CURI}/cuda_${PV}_linux_64.run )"
+
+LICENSE="CUDPP"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64-linux"
+IUSE="debug +doc +examples opencl +cuda"
+
+RDEPEND="
+	~dev-util/nvidia-cuda-toolkit-${PV}
+	media-libs/freeglut
+	examples? (
+		media-libs/freeimage
+		media-libs/glew
+		virtual/mpi
+		>=x11-drivers/nvidia-drivers-343.22[uvm]
+		)"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test"
+
+S=${WORKDIR}/cuda-samples
+
+QA_EXECSTACK=(
+	opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+	opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+	opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+	opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+	)
+
+src_unpack() {
+	unpacker
+	unpacker run_files/cuda-samples*run
+}
+
+pkg_setup() {
+	if use cuda || use opencl; then
+		cuda_pkg_setup
+	fi
+}
+
+src_prepare() {
+	export RAWLDFLAGS="$(raw-ldflags)"
+#	epatch "${FILESDIR}"/${P}-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 "/CC/s:gcc:$(tc-getCC):g" \
+		-e "/GCC/s:g++:$(tc-getCXX):g" \
+		-e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
+		-e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+		-e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+		-e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+		-e 's:-Wimplicit::g' \
+		-e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
+		-e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$(pkg-config --libs glew)|g" \
+		-e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
+		-i $(find . -type f -name "Makefile") || die
+
+#		-e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
+	find common/inc/GL -delete || die
+	find . -type f -name "*\.a" -delete || die
+}
+
+src_compile() {
+	use examples || return
+	local myopts verbose="verbose=1"
+	use debug && myopts+=" dbg=1"
+	export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+	emake \
+		cuda-install="${EPREFIX}/opt/cuda" \
+		CUDA_PATH="${EPREFIX}/opt/cuda/" \
+		MPI_GCC=10 \
+		${myopts} ${verbose}
+}
+
+src_test() {
+	local _dir _subdir
+
+	addwrite /dev/nvidiactl
+	addwrite /dev/nvidia0
+
+	for _dir in {0..9}*; do
+		pushd ${_dir} > /dev/null
+		for _subdir in *; do
+			emake -C ${_subdir} run
+		done
+		popd > /dev/null
+	done
+}
+
+src_install() {
+	local i j f t crap=""
+
+	if use doc; then
+		ebegin "Installing docs ..."
+			treecopy $(find -type f \( -name readme.txt -o -name "*.pdf" \)) "${ED}"/usr/share/doc/${PF}/
+			docompress -x $(find "${ED}"/usr/share/doc/${PF}/ -type f -name readme.txt | sed -e "s:${ED}::")
+		eend
+	fi
+
+	crap+=" *.txt Samples.htm*"
+
+	ebegin "Cleaning before installation..."
+		for i in ${crap}; do
+			if [[ -e ${i} ]]; then
+				find ${i} -delete || die
+			fi
+		done
+		find -type f \( -name "*.o" -o -name "*.pdf" -o -name "readme.txt" \) -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
+}


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-sdk/
@ 2015-01-18  2:16 Christoph Junghans
  0 siblings, 0 replies; 17+ messages in thread
From: Christoph Junghans @ 2015-01-18  2:16 UTC (permalink / raw
  To: gentoo-commits

commit:     2050b9842b14a927258dbe4aeff81d579d0985d3
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Wed Jan 14 11:38:05 2015 +0000
Commit:     Christoph Junghans <ottxor <AT> gentoo <DOT> org>
CommitDate: Wed Jan 14 11:38:05 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=2050b984

dev-util/nvidia-cuda-sdk: Add 7.0 release candidate

---
 dev-util/nvidia-cuda-sdk/ChangeLog                 |   8 ++
 dev-util/nvidia-cuda-sdk/metadata.xml              |  17 +++
 .../nvidia-cuda-sdk/nvidia-cuda-sdk-7.0.18.ebuild  | 151 +++++++++++++++++++++
 3 files changed, 176 insertions(+)

diff --git a/dev-util/nvidia-cuda-sdk/ChangeLog b/dev-util/nvidia-cuda-sdk/ChangeLog
new file mode 100644
index 0000000..37753b1
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/ChangeLog
@@ -0,0 +1,8 @@
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*nvidia-cuda-sdk-7.0.18 (14 Jan 2015)
+
+  14 Jan 2015; Marius Brehler <marbre@linux.sungazer.de> +metadata.xml,
+  +nvidia-cuda-sdk-7.0.18.ebuild:
+  Add version 7.0.18 (release candidate)

diff --git a/dev-util/nvidia-cuda-sdk/metadata.xml b/dev-util/nvidia-cuda-sdk/metadata.xml
new file mode 100644
index 0000000..288e495
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <herd>sci</herd>
+  <maintainer>
+    <email>jlec@gentoo.org</email>
+    <name>Justin Lecher</name>
+  </maintainer>
+  <use>
+    <flag name="opencl">
+			Build OpenCL binaries.
+		</flag>
+    <flag name="cuda">
+			Build CUDA binaries.
+		</flag>
+  </use>
+</pkgmetadata>

diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.0.18.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.0.18.ebuild
new file mode 100644
index 0000000..c3c13b3
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.0.18.ebuild
@@ -0,0 +1,151 @@
+# Copyright 1999-2014 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-6.5.14.ebuild,v 1.8 2014/12/26 18:08:45 jlec Exp $
+
+EAPI=5
+
+inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
+
+MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="http://developer.nvidia.com/cuda"
+CURI="https://developer.nvidia.com/rdp/cuda-70-rc-downloads"
+SRC_URI="cuda_${PV}_rc_linux.run"
+
+LICENSE="CUDPP"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+IUSE="debug +doc +examples opencl +cuda"
+
+RDEPEND="
+	~dev-util/nvidia-cuda-toolkit-${PV}
+	media-libs/freeglut
+	examples? (
+		media-libs/freeimage
+		media-libs/glew
+		virtual/mpi
+		>=x11-drivers/nvidia-drivers-346.22[uvm]
+		)"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test fetch"
+
+pkg_nofetch() {
+	einfo "Please download"
+	einfo "  - cuda_${P}_rc_linux.run"
+	einfo "from ${CURI} and place it in ${DISTDIR}"
+}
+
+S=${WORKDIR}/cuda-samples
+
+QA_EXECSTACK=(
+	opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+	opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+	opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+	opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+	)
+
+src_unpack() {
+	unpacker
+	unpacker run_files/cuda-samples*run
+}
+
+pkg_setup() {
+	if use cuda || use opencl; then
+		cuda_pkg_setup
+	fi
+}
+
+src_prepare() {
+	export RAWLDFLAGS="$(raw-ldflags)"
+#	epatch "${FILESDIR}"/${P}-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 "/CC/s:gcc:$(tc-getCC):g" \
+		-e "/GCC/s:g++:$(tc-getCXX):g" \
+		-e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
+		-e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+		-e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+		-e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+		-e 's:-Wimplicit::g' \
+		-e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
+		-e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$(pkg-config --libs glew)|g" \
+		-e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
+		-i $(find . -type f -name "Makefile") || die
+
+#		-e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
+	find common/inc/GL -delete || die
+	find . -type f -name "*\.a" -delete || die
+}
+
+src_compile() {
+	use examples || return
+	local myopts verbose="verbose=1"
+	use debug && myopts+=" dbg=1"
+	export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+	emake \
+		cuda-install="${EPREFIX}/opt/cuda" \
+		CUDA_PATH="${EPREFIX}/opt/cuda/" \
+		MPI_GCC=10 \
+		${myopts} ${verbose}
+}
+
+src_test() {
+	local _dir _subdir
+
+	addwrite /dev/nvidiactl
+	addwrite /dev/nvidia0
+
+	for _dir in {0..9}*; do
+		pushd ${_dir} > /dev/null
+		for _subdir in *; do
+			emake -C ${_subdir} run
+		done
+		popd > /dev/null
+	done
+}
+
+src_install() {
+	local i j f t crap=""
+
+	if use doc; then
+		ebegin "Installing docs ..."
+			treecopy $(find -type f \( -name readme.txt -o -name "*.pdf" \)) "${ED}"/usr/share/doc/${PF}/
+			docompress -x $(find "${ED}"/usr/share/doc/${PF}/ -type f -name readme.txt | sed -e "s:${ED}::")
+		eend
+	fi
+
+	crap+=" *.txt Samples.htm*"
+
+	ebegin "Cleaning before installation..."
+		for i in ${crap}; do
+			if [[ -e ${i} ]]; then
+				find ${i} -delete || die
+			fi
+		done
+		find -type f \( -name "*.o" -o -name "*.pdf" -o -name "readme.txt" \) -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
+}


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-sdk/
@ 2015-01-18  2:16 Christoph Junghans
  0 siblings, 0 replies; 17+ messages in thread
From: Christoph Junghans @ 2015-01-18  2:16 UTC (permalink / raw
  To: gentoo-commits

commit:     c6e1401ca101e43b7c73a8e96b6784194409250e
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Fri Jan 16 16:16:31 2015 +0000
Commit:     Christoph Junghans <ottxor <AT> gentoo <DOT> org>
CommitDate: Fri Jan 16 16:16:31 2015 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=c6e1401c

Fix KEYWORDS in nvidia-cuda-sdk ebuild

---
 dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.0.18.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.0.18.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.0.18.ebuild
index c3c13b3..73f8d8e 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.0.18.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.0.18.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 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-6.5.14.ebuild,v 1.8 2014/12/26 18:08:45 jlec Exp $
+# $Header: $
 
 EAPI=5
 
@@ -15,7 +15,7 @@ SRC_URI="cuda_${PV}_rc_linux.run"
 
 LICENSE="CUDPP"
 SLOT="0"
-KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~amd64 ~amd64-linux"
 IUSE="debug +doc +examples opencl +cuda"
 
 RDEPEND="


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-sdk/
@ 2015-03-20  4:31 Christoph Junghans
  0 siblings, 0 replies; 17+ messages in thread
From: Christoph Junghans @ 2015-03-20  4:31 UTC (permalink / raw
  To: gentoo-commits

commit:     dd3b582dbc3608d9fa7dafb17108f2b2f53f290a
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Thu Mar 19 08:36:49 2015 +0000
Commit:     Christoph Junghans <ottxor <AT> gentoo <DOT> org>
CommitDate: Thu Mar 19 08:36:49 2015 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=dd3b582d

dev-util/nvidia-cuda-sdk: Version bump

Package-Manager: portage-2.2.14

 dev-util/nvidia-cuda-sdk/ChangeLog                 |   6 +
 .../nvidia-cuda-sdk/nvidia-cuda-sdk-7.0.28.ebuild  | 144 +++++++++++++++++++++
 2 files changed, 150 insertions(+)

diff --git a/dev-util/nvidia-cuda-sdk/ChangeLog b/dev-util/nvidia-cuda-sdk/ChangeLog
index 37753b1..6c6af0f 100644
--- a/dev-util/nvidia-cuda-sdk/ChangeLog
+++ b/dev-util/nvidia-cuda-sdk/ChangeLog
@@ -1,6 +1,12 @@
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+*nvidia-cuda-sdk-7.0.28 (19 Mar 2015)
+
+  19 Mar 2015; Marius Brehler <marbre@linux.sungazer.de>
+  +nvidia-cuda-sdk-7.0.28.ebuild:
+  Version bump
+
 *nvidia-cuda-sdk-7.0.18 (14 Jan 2015)
 
   14 Jan 2015; Marius Brehler <marbre@linux.sungazer.de> +metadata.xml,

diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.0.28.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.0.28.ebuild
new file mode 100644
index 0000000..cacb7e8
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.0.28.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
+
+MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="https://developer.nvidia.com/cuda-downloads"
+SRC_URI="http://developer.download.nvidia.com/compute/cuda/${MYD}/Prod/local_installers/cuda_${PV}_linux.run"
+
+LICENSE="CUDPP"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64-linux"
+IUSE="debug +doc +examples opencl +cuda"
+
+RDEPEND="
+	~dev-util/nvidia-cuda-toolkit-${PV}
+	media-libs/freeglut
+	examples? (
+		media-libs/freeimage
+		media-libs/glew
+		virtual/mpi
+		>=x11-drivers/nvidia-drivers-346.35[uvm]
+		)"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test"
+
+S=${WORKDIR}/samples
+
+QA_EXECSTACK=(
+	opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+	opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+	opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+	opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+	)
+
+src_unpack() {
+	unpacker
+	unpacker run_files/cuda-samples*run
+}
+
+pkg_setup() {
+	if use cuda || use opencl; then
+		cuda_pkg_setup
+	fi
+}
+
+src_prepare() {
+	export RAWLDFLAGS="$(raw-ldflags)"
+#	epatch "${FILESDIR}"/${P}-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 "/CC/s:gcc:$(tc-getCC):g" \
+		-e "/GCC/s:g++:$(tc-getCXX):g" \
+		-e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
+		-e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+		-e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+		-e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+		-e 's:-Wimplicit::g' \
+		-e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
+		-e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$(pkg-config --libs glew)|g" \
+		-e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
+		-i $(find . -type f -name "Makefile") || die
+
+#		-e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
+	find common/inc/GL -delete || die
+	find . -type f -name "*\.a" -delete || die
+}
+
+src_compile() {
+	use examples || return
+	local myopts verbose="verbose=1"
+	use debug && myopts+=" dbg=1"
+	export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+	emake \
+		cuda-install="${EPREFIX}/opt/cuda" \
+		CUDA_PATH="${EPREFIX}/opt/cuda/" \
+		MPI_GCC=10 \
+		${myopts} ${verbose}
+}
+
+src_test() {
+	local _dir _subdir
+
+	addwrite /dev/nvidiactl
+	addwrite /dev/nvidia0
+
+	for _dir in {0..9}*; do
+		pushd ${_dir} > /dev/null
+		for _subdir in *; do
+			emake -C ${_subdir} run
+		done
+		popd > /dev/null
+	done
+}
+
+src_install() {
+	local i j f t crap=""
+
+	if use doc; then
+		ebegin "Installing docs ..."
+			treecopy $(find -type f \( -name readme.txt -o -name "*.pdf" \)) "${ED}"/usr/share/doc/${PF}/
+			docompress -x $(find "${ED}"/usr/share/doc/${PF}/ -type f -name readme.txt | sed -e "s:${ED}::")
+		eend
+	fi
+
+	crap+=" *.txt Samples.htm*"
+
+	ebegin "Cleaning before installation..."
+		for i in ${crap}; do
+			if [[ -e ${i} ]]; then
+				find ${i} -delete || die
+			fi
+		done
+		find -type f \( -name "*.o" -o -name "*.pdf" -o -name "readme.txt" \) -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
+}


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-sdk/
@ 2015-07-10  3:59 Nicolas Bock
  0 siblings, 0 replies; 17+ messages in thread
From: Nicolas Bock @ 2015-07-10  3:59 UTC (permalink / raw
  To: gentoo-commits

commit:     ce6447670ba2ecf60966f8f5f7822f5a11330b71
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Wed Jul  8 10:28:30 2015 +0000
Commit:     Nicolas Bock <nicolasbock <AT> gentoo <DOT> org>
CommitDate: Wed Jul  8 10:28:30 2015 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=ce644767

dev-util/nvidia-cuda-sdk: Add CUDA 7.5 release candidate

Package-Manager: portage-2.2.18

 dev-util/nvidia-cuda-sdk/ChangeLog                 |   9 ++
 dev-util/nvidia-cuda-sdk/metadata.xml              |  13 ++
 .../nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.7.ebuild   | 151 +++++++++++++++++++++
 3 files changed, 173 insertions(+)

diff --git a/dev-util/nvidia-cuda-sdk/ChangeLog b/dev-util/nvidia-cuda-sdk/ChangeLog
new file mode 100644
index 0000000..a941732
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-util/nvidia-cuda-sdk
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*nvidia-cuda-sdk-7.5.7 (08 Jul 2015)
+
+  08 Jul 2015; Marius Brehler <marbre@linux.sungazer.de> +metadata.xml,
+  +nvidia-cuda-sdk-7.5.7.ebuild:
+  dev-util/nvidia-cuda-sdk: Add CUDA 7.5 release candidate

diff --git a/dev-util/nvidia-cuda-sdk/metadata.xml b/dev-util/nvidia-cuda-sdk/metadata.xml
new file mode 100644
index 0000000..8bd8dab
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <herd>sci</herd>
+  <use>
+    <flag name="opencl">
+			Build OpenCL binaries.
+		</flag>
+    <flag name="cuda">
+			Build CUDA binaries.
+		</flag>
+  </use>
+</pkgmetadata>

diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.7.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.7.ebuild
new file mode 100644
index 0000000..9083ca1
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.7.ebuild
@@ -0,0 +1,151 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
+
+MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="http://developer.nvidia.com/cuda"
+CURI="https://developer.nvidia.com/rdp/cuda-75-release-candidate"
+SRC_URI="cuda_${PV}_rc_linux.run"
+
+LICENSE="CUDPP"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64-linux"
+IUSE="debug +doc +examples opencl +cuda"
+
+RDEPEND="
+	~dev-util/nvidia-cuda-toolkit-${PV}
+	media-libs/freeglut
+	examples? (
+		media-libs/freeimage
+		media-libs/glew
+		virtual/mpi
+		>=x11-drivers/nvidia-drivers-352.07[uvm]
+		)"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test fetch"
+
+pkg_nofetch() {
+	einfo "Please download the RHEL 7 \"runfile (local)\" installer"
+	einfo "  - cuda_${P}_rc_linux.run"
+	einfo "from ${CURI} and place it in ${DISTDIR}"
+}
+
+S=${WORKDIR}/samples
+
+QA_EXECSTACK=(
+	opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+	opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+	opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+	opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+	)
+
+src_unpack() {
+	unpacker
+	unpacker run_files/cuda-samples*run
+}
+
+pkg_setup() {
+	if use cuda || use opencl; then
+		cuda_pkg_setup
+	fi
+}
+
+src_prepare() {
+	export RAWLDFLAGS="$(raw-ldflags)"
+#	epatch "${FILESDIR}"/${P}-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 "/CC/s:gcc:$(tc-getCC):g" \
+		-e "/GCC/s:g++:$(tc-getCXX):g" \
+		-e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
+		-e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+		-e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+		-e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+		-e 's:-Wimplicit::g' \
+		-e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
+		-e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$(pkg-config --libs glew)|g" \
+		-e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
+		-i $(find . -type f -name "Makefile") || die
+
+#		-e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
+	find common/inc/GL -delete || die
+	find . -type f -name "*\.a" -delete || die
+}
+
+src_compile() {
+	use examples || return
+	local myopts verbose="verbose=1"
+	use debug && myopts+=" dbg=1"
+	export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+	emake \
+		cuda-install="${EPREFIX}/opt/cuda" \
+		CUDA_PATH="${EPREFIX}/opt/cuda/" \
+		MPI_GCC=10 \
+		${myopts} ${verbose}
+}
+
+src_test() {
+	local _dir _subdir
+
+	addwrite /dev/nvidiactl
+	addwrite /dev/nvidia0
+
+	for _dir in {0..9}*; do
+		pushd ${_dir} > /dev/null
+		for _subdir in *; do
+			emake -C ${_subdir} run
+		done
+		popd > /dev/null
+	done
+}
+
+src_install() {
+	local i j f t crap=""
+
+	if use doc; then
+		ebegin "Installing docs ..."
+			treecopy $(find -type f \( -name readme.txt -o -name "*.pdf" \)) "${ED}"/usr/share/doc/${PF}/
+			docompress -x $(find "${ED}"/usr/share/doc/${PF}/ -type f -name readme.txt | sed -e "s:${ED}::")
+		eend
+	fi
+
+	crap+=" *.txt Samples.htm*"
+
+	ebegin "Cleaning before installation..."
+		for i in ${crap}; do
+			if [[ -e ${i} ]]; then
+				find ${i} -delete || die
+			fi
+		done
+		find -type f \( -name "*.o" -o -name "*.pdf" -o -name "readme.txt" \) -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
+}


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-sdk/
@ 2015-09-09  8:11 Justin Lecher
  0 siblings, 0 replies; 17+ messages in thread
From: Justin Lecher @ 2015-09-09  8:11 UTC (permalink / raw
  To: gentoo-commits

commit:     0c34e7f184d6fc70b3119161ef92f78662cb8cc3
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Wed Sep  9 08:02:07 2015 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Wed Sep  9 08:02:07 2015 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=0c34e7f1

dev-util/nvidia-cuda-sdk: Version Bump

respect platforms pkg-config

Package-Manager: portage-2.2.20.1
RepoMan-Options: --force
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

 .../nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild  | 144 +++++++++++++++++++++
 1 file changed, 144 insertions(+)

diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild
new file mode 100644
index 0000000..3b7b211
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
+
+MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="https://developer.nvidia.com/cuda-downloads"
+SRC_URI="http://developer.download.nvidia.com/compute/cuda/${MYD}/Prod/local_installers/cuda_${PV}_linux.run"
+
+LICENSE="CUDPP"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64-linux"
+IUSE="debug +doc +examples opencl +cuda"
+
+RDEPEND="
+	~dev-util/nvidia-cuda-toolkit-${PV}
+	media-libs/freeglut
+	examples? (
+		media-libs/freeimage
+		media-libs/glew
+		virtual/mpi
+		>=x11-drivers/nvidia-drivers-352.39[uvm]
+		)"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test"
+
+S=${WORKDIR}/samples
+
+QA_EXECSTACK=(
+	opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+	opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+	opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+	opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+	)
+
+src_unpack() {
+	unpacker
+	unpacker run_files/cuda-samples*run
+}
+
+pkg_setup() {
+	if use cuda || use opencl; then
+		cuda_pkg_setup
+	fi
+}
+
+src_prepare() {
+	export RAWLDFLAGS="$(raw-ldflags)"
+#	epatch "${FILESDIR}"/${P}-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 "/CC/s:gcc:$(tc-getCC):g" \
+		-e "/GCC/s:g++:$(tc-getCXX):g" \
+		-e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
+		-e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+		-e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+		-e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+		-e 's:-Wimplicit::g' \
+		-e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+		-e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+		-e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+		-i $(find . -type f -name "Makefile") || die
+
+#		-e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
+	find common/inc/GL -delete || die
+	find . -type f -name "*\.a" -delete || die
+}
+
+src_compile() {
+	use examples || return
+	local myopts verbose="verbose=1"
+	use debug && myopts+=" dbg=1"
+	export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+	emake \
+		cuda-install="${EPREFIX}/opt/cuda" \
+		CUDA_PATH="${EPREFIX}/opt/cuda/" \
+		MPI_GCC=10 \
+		${myopts} ${verbose}
+}
+
+src_test() {
+	local _dir _subdir
+
+	addwrite /dev/nvidiactl
+	addwrite /dev/nvidia0
+
+	for _dir in {0..9}*; do
+		pushd ${_dir} > /dev/null
+		for _subdir in *; do
+			emake -C ${_subdir} run
+		done
+		popd > /dev/null
+	done
+}
+
+src_install() {
+	local i j f t crap=""
+
+	if use doc; then
+		ebegin "Installing docs ..."
+			treecopy $(find -type f \( -name readme.txt -o -name "*.pdf" \)) "${ED}"/usr/share/doc/${PF}/
+			docompress -x $(find "${ED}"/usr/share/doc/${PF}/ -type f -name readme.txt | sed -e "s:${ED}::")
+		eend
+	fi
+
+	crap+=" *.txt Samples.htm*"
+
+	ebegin "Cleaning before installation..."
+		for i in ${crap}; do
+			if [[ -e ${i} ]]; then
+				find ${i} -delete || die
+			fi
+		done
+		find -type f \( -name "*.o" -o -name "*.pdf" -o -name "readme.txt" \) -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
+}


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-sdk/
@ 2016-05-30  8:52 Marius Brehler
  0 siblings, 0 replies; 17+ messages in thread
From: Marius Brehler @ 2016-05-30  8:52 UTC (permalink / raw
  To: gentoo-commits

commit:     147915dabdac4acf567c0caf42aaf2d32062a087
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Mon May 30 08:47:19 2016 +0000
Commit:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
CommitDate: Mon May 30 08:47:19 2016 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=147915da

dev-util/nvidia-cuda-sdk: New CUDA 8 Release Candidate

Package-Manager: portage-2.2.28

 dev-util/nvidia-cuda-sdk/metadata.xml              |  16 +++
 .../nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.27.ebuild  | 153 +++++++++++++++++++++
 2 files changed, 169 insertions(+)

diff --git a/dev-util/nvidia-cuda-sdk/metadata.xml b/dev-util/nvidia-cuda-sdk/metadata.xml
new file mode 100644
index 0000000..9ab4f58
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="project">
+    <email>sci@gentoo.org</email>
+    <name>Gentoo Science Project</name>
+  </maintainer>
+  <use>
+    <flag name="opencl">
+			Build OpenCL binaries.
+		</flag>
+    <flag name="cuda">
+			Build CUDA binaries.
+		</flag>
+  </use>
+</pkgmetadata>

diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.27.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.27.ebuild
new file mode 100644
index 0000000..666b04c
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.27.ebuild
@@ -0,0 +1,153 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
+
+MYD=$(get_version_component_range 1-2)
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="https://developer.nvidia.com/cuda-downloads"
+CURI="https://developer.nvidia.com/cuda-release-candidate-download"
+SRC_URI="cuda_${PV}_linux.run"
+
+LICENSE="CUDPP"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64-linux"
+IUSE="debug +doc +examples opencl +cuda"
+
+RDEPEND="
+	~dev-util/nvidia-cuda-toolkit-${PV}
+	media-libs/freeglut
+	examples? (
+		media-libs/freeimage
+		media-libs/glew
+		virtual/mpi
+		>=x11-drivers/nvidia-drivers-361.42[uvm]
+		)"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test fetch"
+
+S=${WORKDIR}/samples
+
+QA_EXECSTACK=(
+	opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+	opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+	opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+	opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+	)
+
+pkg_nofetch() {
+	einfo "Please download the RHEL 7 \"runfile (local)\" installer"
+	einfo "  - cuda_${P}_rc_linux.run"
+	einfo "from ${CURI} and place it in ${DISTDIR}"
+}
+
+src_unpack() {
+	unpacker
+	unpacker run_files/cuda-samples*run
+}
+
+pkg_setup() {
+	if use cuda || use opencl; then
+		cuda_pkg_setup
+	fi
+}
+
+src_prepare() {
+	export RAWLDFLAGS="$(raw-ldflags)"
+#	epatch "${FILESDIR}"/${P}-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 "/CC/s:gcc:$(tc-getCC):g" \
+		-e "/GCC/s:g++:$(tc-getCXX):g" \
+		-e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
+		-e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+		-e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+		-e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+		-e 's:-Wimplicit::g' \
+		-e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+		-e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+		-e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+		-i $(find . -type f -name "Makefile") || die
+
+#		-e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
+	find common/inc/GL -delete || die
+	find . -type f -name "*\.a" -delete || die
+
+	default
+}
+
+src_compile() {
+	use examples || return
+	local myopts verbose="verbose=1"
+	use debug && myopts+=" dbg=1"
+	export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+	emake \
+		cuda-install="${EPREFIX}/opt/cuda" \
+		CUDA_PATH="${EPREFIX}/opt/cuda/" \
+		MPI_GCC=10 \
+		${myopts} ${verbose}
+}
+
+src_test() {
+	local _dir _subdir
+
+	addwrite /dev/nvidiactl
+	addwrite /dev/nvidia0
+
+	for _dir in {0..9}*; do
+		pushd ${_dir} > /dev/null
+		for _subdir in *; do
+			emake -C ${_subdir} run
+		done
+		popd > /dev/null
+	done
+}
+
+src_install() {
+	local i j f t crap=""
+
+	if use doc; then
+		ebegin "Installing docs ..."
+			treecopy $(find -type f \( -name readme.txt -o -name "*.pdf" \)) "${ED}"/usr/share/doc/${PF}/
+			docompress -x $(find "${ED}"/usr/share/doc/${PF}/ -type f -name readme.txt | sed -e "s:${ED}::")
+		eend
+	fi
+
+	crap+=" *.txt Samples.htm*"
+
+	ebegin "Cleaning before installation..."
+		for i in ${crap}; do
+			if [[ -e ${i} ]]; then
+				find ${i} -delete || die
+			fi
+		done
+		find -type f \( -name "*.o" -o -name "*.pdf" -o -name "readme.txt" \) -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
+}


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-sdk/
@ 2016-09-15 14:18 Marius Brehler
  0 siblings, 0 replies; 17+ messages in thread
From: Marius Brehler @ 2016-09-15 14:18 UTC (permalink / raw
  To: gentoo-commits

commit:     c9d40e705be055119164d0c86d199a4ff33f9ae7
Author:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Thu Sep 15 14:14:13 2016 +0000
Commit:     Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
CommitDate: Thu Sep 15 14:14:13 2016 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=c9d40e70

dev-util/nvidia-cuda-sdk: Correct nofetch message

Package-Manager: portage-2.2.28

 dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.27.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.27.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.27.ebuild
index 666b04c..2ae29c4 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.27.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.27.ebuild
@@ -42,7 +42,7 @@ QA_EXECSTACK=(
 
 pkg_nofetch() {
 	einfo "Please download the RHEL 7 \"runfile (local)\" installer"
-	einfo "  - cuda_${P}_rc_linux.run"
+	einfo "  - cuda_${P}_linux.run"
 	einfo "from ${CURI} and place it in ${DISTDIR}"
 }
 


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-sdk/
@ 2016-10-30 15:47 Justin Lecher
  0 siblings, 0 replies; 17+ messages in thread
From: Justin Lecher @ 2016-10-30 15:47 UTC (permalink / raw
  To: gentoo-commits

commit:     fa28eacdcea52608e6a29f6e3538f02017eae331
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 29 10:29:38 2016 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Sat Oct 29 10:29:38 2016 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=fa28eacd

dev-util/nvidia-cuda-sdk: In main tree now

 dev-util/nvidia-cuda-sdk/metadata.xml              |  16 ---
 .../nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.27.ebuild  | 153 ---------------------
 2 files changed, 169 deletions(-)

diff --git a/dev-util/nvidia-cuda-sdk/metadata.xml b/dev-util/nvidia-cuda-sdk/metadata.xml
deleted file mode 100644
index 9ab4f58..0000000
--- a/dev-util/nvidia-cuda-sdk/metadata.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-  <maintainer type="project">
-    <email>sci@gentoo.org</email>
-    <name>Gentoo Science Project</name>
-  </maintainer>
-  <use>
-    <flag name="opencl">
-			Build OpenCL binaries.
-		</flag>
-    <flag name="cuda">
-			Build CUDA binaries.
-		</flag>
-  </use>
-</pkgmetadata>

diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.27.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.27.ebuild
deleted file mode 100644
index 2ae29c4..0000000
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.27.ebuild
+++ /dev/null
@@ -1,153 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=6
-
-inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
-
-MYD=$(get_version_component_range 1-2)
-
-DESCRIPTION="NVIDIA CUDA Software Development Kit"
-HOMEPAGE="https://developer.nvidia.com/cuda-downloads"
-CURI="https://developer.nvidia.com/cuda-release-candidate-download"
-SRC_URI="cuda_${PV}_linux.run"
-
-LICENSE="CUDPP"
-SLOT="0"
-KEYWORDS="~amd64 ~amd64-linux"
-IUSE="debug +doc +examples opencl +cuda"
-
-RDEPEND="
-	~dev-util/nvidia-cuda-toolkit-${PV}
-	media-libs/freeglut
-	examples? (
-		media-libs/freeimage
-		media-libs/glew
-		virtual/mpi
-		>=x11-drivers/nvidia-drivers-361.42[uvm]
-		)"
-DEPEND="${RDEPEND}"
-
-RESTRICT="test fetch"
-
-S=${WORKDIR}/samples
-
-QA_EXECSTACK=(
-	opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
-	opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
-	opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
-	opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
-	)
-
-pkg_nofetch() {
-	einfo "Please download the RHEL 7 \"runfile (local)\" installer"
-	einfo "  - cuda_${P}_linux.run"
-	einfo "from ${CURI} and place it in ${DISTDIR}"
-}
-
-src_unpack() {
-	unpacker
-	unpacker run_files/cuda-samples*run
-}
-
-pkg_setup() {
-	if use cuda || use opencl; then
-		cuda_pkg_setup
-	fi
-}
-
-src_prepare() {
-	export RAWLDFLAGS="$(raw-ldflags)"
-#	epatch "${FILESDIR}"/${P}-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 "/CC/s:gcc:$(tc-getCC):g" \
-		-e "/GCC/s:g++:$(tc-getCXX):g" \
-		-e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
-		-e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
-		-e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
-		-e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
-		-e 's:-Wimplicit::g' \
-		-e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
-		-e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
-		-e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
-		-i $(find . -type f -name "Makefile") || die
-
-#		-e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
-	find common/inc/GL -delete || die
-	find . -type f -name "*\.a" -delete || die
-
-	default
-}
-
-src_compile() {
-	use examples || return
-	local myopts verbose="verbose=1"
-	use debug && myopts+=" dbg=1"
-	export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
-	emake \
-		cuda-install="${EPREFIX}/opt/cuda" \
-		CUDA_PATH="${EPREFIX}/opt/cuda/" \
-		MPI_GCC=10 \
-		${myopts} ${verbose}
-}
-
-src_test() {
-	local _dir _subdir
-
-	addwrite /dev/nvidiactl
-	addwrite /dev/nvidia0
-
-	for _dir in {0..9}*; do
-		pushd ${_dir} > /dev/null
-		for _subdir in *; do
-			emake -C ${_subdir} run
-		done
-		popd > /dev/null
-	done
-}
-
-src_install() {
-	local i j f t crap=""
-
-	if use doc; then
-		ebegin "Installing docs ..."
-			treecopy $(find -type f \( -name readme.txt -o -name "*.pdf" \)) "${ED}"/usr/share/doc/${PF}/
-			docompress -x $(find "${ED}"/usr/share/doc/${PF}/ -type f -name readme.txt | sed -e "s:${ED}::")
-		eend
-	fi
-
-	crap+=" *.txt Samples.htm*"
-
-	ebegin "Cleaning before installation..."
-		for i in ${crap}; do
-			if [[ -e ${i} ]]; then
-				find ${i} -delete || die
-			fi
-		done
-		find -type f \( -name "*.o" -o -name "*.pdf" -o -name "readme.txt" \) -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
-}


^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2016-10-30 15:47 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-11  9:09 [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-sdk/ Honza Macháček
  -- strict thread matches above, loose matches on Subject: below --
2016-10-30 15:47 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-11-26 22:02 Justin Lecher
2012-07-04 18:51 Sebastien Fabbro
2012-07-03 17:30 Sebastien Fabbro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox