mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-06 03:20:43 +02:00
nvidia-cuda-toolkit: drop old version, using gentoo's
This commit is contained in:
parent
7dba8335d5
commit
6e834b75a2
2 changed files with 0 additions and 84 deletions
|
|
@ -1,3 +0,0 @@
|
|||
DIST cudatoolkit_2.1_linux32_suse11.0.run 21309180 RMD160 d026b0ecbca2f8b53d2d69b53b8548e1a5a0d666 SHA1 2df0fdd256ea1dd42f7b4f455a13bd60cc21a00a SHA256 c13b3ba9628c888228c9b841d4944103de972f19ca7cf26a75d66e48632323cf
|
||||
DIST cudatoolkit_2.1_linux64_suse11.0.run 22239014 RMD160 181fbed80fd71b5064baff050c182146f1cd7c67 SHA1 55339726ef1df054682c30e6a0b9ad8d8ddfb452 SHA256 71cb1d040cd88e23183477d6ce193af70d952ca5e24c012075e1b78896e4e311
|
||||
EBUILD nvidia-cuda-toolkit-2.1-r1.ebuild 1661 RMD160 0bebd814f42a4839aff11c9404310d2279036b99 SHA1 c1287a4aaca4166e07e97516c3a007a531fb079f SHA256 8dfa69eecbe07e09b1d139fb812861073c2d611efbac87afb1fd47482a1aee2a
|
||||
|
|
@ -1,81 +0,0 @@
|
|||
# Copyright 1999-2009 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.1.ebuild,v 1.2 2009/04/13 19:18:46 spock Exp $
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="NVIDIA CUDA Toolkit"
|
||||
HOMEPAGE="http://developer.nvidia.com/cuda"
|
||||
|
||||
BASE_URI="http://developer.download.nvidia.com/compute/cuda/2_1/toolkit/"
|
||||
SRC_URI="amd64? ( ${BASE_URI}/cudatoolkit_2.1_linux64_suse11.0.run )
|
||||
x86? ( ${BASE_URI}/cudatoolkit_2.1_linux32_suse11.0.run )"
|
||||
|
||||
LICENSE="NVIDIA"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
RESTRICT="strip"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_unpack() {
|
||||
unpack_makeself
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# don't use lib32 or lib64 directories
|
||||
unset ABI
|
||||
|
||||
local DEST=/opt/cuda
|
||||
export CONF_LIBDIR_OVERRIDE="lib"
|
||||
|
||||
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-180.22."
|
||||
elog ""
|
||||
elog "Run '. /etc/profile' before using the CUDA toolkit. "
|
||||
}
|
||||
Loading…
Reference in a new issue