From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 7B87A1381F3 for ; Mon, 26 Nov 2012 22:04:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5BA4DE06F3; Mon, 26 Nov 2012 22:02:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6D9F0E06C1 for ; Mon, 26 Nov 2012 22:02:06 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 427F333D9B0 for ; Mon, 26 Nov 2012 22:02:05 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 7498EE544C for ; Mon, 26 Nov 2012 22:02:02 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1353940869.901dc926ba61055a5c4ef978a85daa8f39393858.jlec@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: dev-util/nvidia-cuda-sdk/ X-VCS-Repository: proj/sci X-VCS-Files: dev-util/nvidia-cuda-sdk/ChangeLog dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-5.0.35.ebuild X-VCS-Directories: dev-util/nvidia-cuda-sdk/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 901dc926ba61055a5c4ef978a85daa8f39393858 X-VCS-Branch: master Date: Mon, 26 Nov 2012 22:02:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 169af7b4-094c-4c3e-b515-e8562e545337 X-Archives-Hash: 837fcbf6865d84049e9d8717c7984bb4 commit: 901dc926ba61055a5c4ef978a85daa8f39393858 Author: Justin Lecher gentoo org> AuthorDate: Fri Nov 16 15:50:31 2012 +0000 Commit: Justin Lecher gentoo 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 +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 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 +}