summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Januszewski <spock@gentoo.org>2008-10-18 13:15:20 +0000
committerMichael Januszewski <spock@gentoo.org>2008-10-18 13:15:20 +0000
commit25d3d478a9a422deacf638efdcf2f80a55b56fcf (patch)
tree82076642895689da9f6160b1024e571c58d68397 /dev-util/nvidia-cuda-toolkit
parentWe must specify all USE flags in IUSE. (diff)
downloadgentoo-2-25d3d478a9a422deacf638efdcf2f80a55b56fcf.tar.gz
gentoo-2-25d3d478a9a422deacf638efdcf2f80a55b56fcf.tar.bz2
gentoo-2-25d3d478a9a422deacf638efdcf2f80a55b56fcf.zip
Initial commit. Thanks to everyone participating in bug #167685 for the previous versions of the ebuild.
(Portage version: 2.2_rc12/cvs/Linux 2.6.27 x86_64)
Diffstat (limited to 'dev-util/nvidia-cuda-toolkit')
-rw-r--r--dev-util/nvidia-cuda-toolkit/ChangeLog11
-rw-r--r--dev-util/nvidia-cuda-toolkit/Manifest5
-rw-r--r--dev-util/nvidia-cuda-toolkit/metadata.xml10
-rw-r--r--dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-2.0.ebuild79
4 files changed, 105 insertions, 0 deletions
diff --git a/dev-util/nvidia-cuda-toolkit/ChangeLog b/dev-util/nvidia-cuda-toolkit/ChangeLog
new file mode 100644
index 000000000000..d3539d802232
--- /dev/null
+++ b/dev-util/nvidia-cuda-toolkit/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-util/nvidia-cuda-toolkit
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/ChangeLog,v 1.1 2008/10/18 13:15:20 spock Exp $
+
+*nvidia-cuda-toolkit-2.0 (18 Oct 2008)
+
+ 18 Oct 2008; Michał Januszewski <spock@gentoo.org> +metadata.xml,
+ +nvidia-cuda-toolkit-2.0.ebuild:
+ Initial commit. Thanks to everyone participating in bug #167685 for the
+ previous versions of the ebuild.
+
diff --git a/dev-util/nvidia-cuda-toolkit/Manifest b/dev-util/nvidia-cuda-toolkit/Manifest
new file mode 100644
index 000000000000..d779769a1d7a
--- /dev/null
+++ b/dev-util/nvidia-cuda-toolkit/Manifest
@@ -0,0 +1,5 @@
+DIST NVIDIA_CUDA_Toolkit_2.0_suse10.3_x86.run 18966963 RMD160 934922578b3320e2cacf4e08a3a51cdbea87be21 SHA1 2e783ed52c73e76655bba54fc83df8b55d6450ae SHA256 fbf3cddc6a7039b853b4c8eb89b2aeb5eb3430f44d95e2e1ae382f78ae90c07e
+DIST NVIDIA_CUDA_Toolkit_2.0_suse10.3_x86_64.run 20245140 RMD160 134b76adc0645568bd7484c085539dfb53e95d89 SHA1 60d8348366d547ad18e44119440d0582de6440d0 SHA256 7ff2685e32e54351a4556d65fc2a2e097e08901614b6763d14ac31824d975bb6
+EBUILD nvidia-cuda-toolkit-2.0.ebuild 1495 RMD160 0d741f7cfe627293787191e8f2c04fe13494aa40 SHA1 2148bdd88c44e3a1fba960e1bedab0cf1a728a80 SHA256 56bc7dfaa29ae29562b2335993d114b1e8f63ec616cc318d1752493d0bc40d53
+MISC ChangeLog 383 RMD160 9060ac73d6150591176e3427b24a4deeee228807 SHA1 c542421b47700f535c1e31a8aef4a26ddae0c6ae SHA256 fe74f0a30984e4ad2cbe78a2fe2b40bf61284dec4d6c0d3e65a20ec40b334bf8
+MISC metadata.xml 260 RMD160 7c8f2391a156380ab813494ac3d3db92386fc03b SHA1 631f6ea758b913f6dabd59b83bc8a5f053274f50 SHA256 4e471cd253b0e2e3c1900f0dd3383623080ca9ad9b6e116dd88bac46224681ac
diff --git a/dev-util/nvidia-cuda-toolkit/metadata.xml b/dev-util/nvidia-cuda-toolkit/metadata.xml
new file mode 100644
index 000000000000..2c3ddaaa0f8e
--- /dev/null
+++ b/dev-util/nvidia-cuda-toolkit/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>spock@gentoo.org</email>
+ <name>Michał Januszewski</name>
+ </maintainer>
+</pkgmetadata>
+
diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-2.0.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-2.0.ebuild
new file mode 100644
index 000000000000..24e9c5b9fbc1
--- /dev/null
+++ b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-2.0.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-2.0.ebuild,v 1.1 2008/10/18 13:15:20 spock Exp $
+
+inherit eutils
+
+DESCRIPTION="NVIDIA CUDA Toolkit"
+HOMEPAGE="http://developer.nvidia.com/cuda"
+
+BASE_URI="http://developer.download.nvidia.com/compute/cuda/2_0/linux/toolkit/NVIDIA_CUDA_Toolkit"
+SRC_URI="amd64? ( ${BASE_URI}_${PV}_suse10.3_x86_64.run )
+ x86? ( ${BASE_URI}_${PV}_suse10.3_x86.run )"
+
+LICENSE="NVIDIA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+DEPEND=""
+RESTRICT="strip"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ unpack_makeself
+}
+
+src_install() {
+ local DEST=/opt/cuda
+
+ # don't use lib32 or lib64 directories
+ unset ABI
+
+ into ${DEST}
+ dobin bin/*
+ dolib lib/*
+
+ chmod a-x "${D}/${DEST}/bin/nvcc.profile"
+
+ # doman does not respect DESTTREE
+ insinto ${DEST}/man/man1
+ doins man/man1/*
+ insinto ${DEST}/man/man3
+ doins man/man3/*
+ prepman ${DEST}
+
+ insinto ${DEST}/include
+ doins include/*.h
+ insinto ${DEST}/include/crt
+ doins include/crt/*.h
+
+ insinto ${DEST}/src
+ doins src/*
+
+ into ${DEST}/open64
+ dobin open64/bin/*
+ libopts -m0755
+ dolib open64/lib/*
+
+ if use doc ; then
+ insinto ${DEST}/doc
+ doins doc/*
+ fi
+
+ cat > "${T}/env" << EOF
+PATH=${DEST}/bin
+ROOTPATH=${DEST}/bin
+LDPATH=${DEST}/lib
+MANPATH=${DEST}/man
+EOF
+ newenvd "${T}/env" 99cuda
+}
+
+pkg_postinst() {
+ elog "If you want to natively run the code generated by CUDA, you will need"
+ elog ">=x11-drivers/nvidia-drivers-177.73."
+ elog ""
+ elog "Run '. /etc/profile' before using the CUDA toolkit. "
+}