commit: 0fbf4ff901a3abef16f79d40db0330fbe1e46608 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de> AuthorDate: Tue Jul 21 08:07:14 2015 +0000 Commit: Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org> CommitDate: Tue Jul 21 08:07:14 2015 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=0fbf4ff9
dev-util/nvidia-cuda-gdk: Version bump Package-Manager: portage-2.2.20 dev-util/nvidia-cuda-gdk/ChangeLog | 6 + dev-util/nvidia-cuda-gdk/metadata.xml | 3 + .../nvidia-cuda-gdk/nvidia-cuda-gdk-352.07.ebuild | 183 +++++++++++++++++++++ 3 files changed, 192 insertions(+) diff --git a/dev-util/nvidia-cuda-gdk/ChangeLog b/dev-util/nvidia-cuda-gdk/ChangeLog index a338fa4..7e01133 100644 --- a/dev-util/nvidia-cuda-gdk/ChangeLog +++ b/dev-util/nvidia-cuda-gdk/ChangeLog @@ -2,6 +2,12 @@ # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ +*nvidia-cuda-gdk-352.07 (21 Jul 2015) + + 21 Jul 2015; Marius Brehler <mar...@linux.sungazer.de> + +nvidia-cuda-gdk-352.07.ebuild, metadata.xml: + dev-util/nvidia-cuda-gdk: Version bump + *nvidia-cuda-gdk-346.46 (19 Mar 2015) 19 Mar 2015; Marius Brehler <mar...@linux.sungazer.de> diff --git a/dev-util/nvidia-cuda-gdk/metadata.xml b/dev-util/nvidia-cuda-gdk/metadata.xml index 74c0292..73b4e6c 100644 --- a/dev-util/nvidia-cuda-gdk/metadata.xml +++ b/dev-util/nvidia-cuda-gdk/metadata.xml @@ -18,5 +18,8 @@ <flag name="nvml"> Install the NVIDIA Managment Library. </flag> + <flag name="nvvs"> + Install the NVIDIA Validation Suite. + </flag> </use> </pkgmetadata> diff --git a/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-352.07.ebuild b/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-352.07.ebuild new file mode 100644 index 0000000..d090b22 --- /dev/null +++ b/dev-util/nvidia-cuda-gdk/nvidia-cuda-gdk-352.07.ebuild @@ -0,0 +1,183 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit eutils portability toolchain-funcs unpacker versionator + +MYD=$(get_version_component_range 1)_$(get_version_component_range 2) + +HEALTMON_PV="352.06" +NVVS_PV="352.06" + +DESCRIPTION="NVIDIA GPU Deployment Kit" +HOMEPAGE="http://developer.nvidia.com/cuda" +CURI="https://developer.nvidia.com/rdp/cuda-75-release-candidate" +SRC_URI="cuda_${MYD}_rc_gdk_linux.run" + +LICENSE="NVIDIA-gdk" +SLOT="0" +KEYWORDS="-* ~amd64" +IUSE="+healthmon +nvml +doc examples +nvvs" + +RDEPEND=" + >=dev-util/nvidia-cuda-toolkit-7.5 + media-libs/freeglut + examples? ( >=x11-drivers/nvidia-drivers-352.07[uvm] ) + " +DEPEND="${RDEPEND}" + +S="${WORKDIR}/payload" + +QA_PREBUILT="/opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon + /opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon-tests/gpu_rdma_bw + /opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon-tests/ibv_rdma_bw + /opt/cuda/gdk/nvml/lib/libnvidia-ml.so.1 + /opt/cuda/gdk/nvvs/plugins/libMemory.so.1 + /opt/cuda/gdk/nvvs/plugins/libDeployment.so.1 + /opt/cuda/gdk/nvvs/plugins/libPcie.so.1 + /opt/cuda/gdk/nvvs/nvvs + " + +RESTRICT="fetch" + +pkg_nofetch() { + einfo "Please download the RHEL 7 \"runfile (local)\" installer" + einfo " - cuda_${MYD}_rc_gdk_linux.run" + einfo "from ${CURI} and place it in ${DISTDIR}" +} + +src_unpack() { + unpacker +} + +src_compile() { + use examples || return + cd "${S}"/nvml/example || die + emake +} + +src_install() { + local i j f t + + if use doc; then + if use healthmon ; then + ebegin "Installing healthmon docs..." + doman nvidia-healthmon/docs/man/man8/nvidia-healthmon.8 + cd "${S}/nvidia-healthmon/nvidia-healthmon-amd64-${HEALTMON_PV}" || die + treecopy \ + $(find -type f \( -name README.txt -name COPYING.txt -o -name "*.pdf" \)) \ + "${ED}"/usr/share/doc/${PF}/nvidia-healthmon/ + docompress -x \ + $(find "${ED}"/usr/share/doc/${PF}/nvidia-healthmon/ -type f -name readme.txt | sed -e "s:${ED}::") + cd "${S}/" || die + eend + fi + + if use nvml ; then + ebegin "Installing nvml docs..." + doman nvml/doc/man/man3/*.3 + cd "${S}/nvml/" || die + treecopy \ + $(find -type f \( -name README.txt -name COPYRIGHT.txt -o -name "*.pdf" \)) \ + "${ED}"/usr/share/doc/${PF}/nvml/ + docompress -x \ + $(find "${ED}"/usr/share/doc/${PF}/nvml/ -type f -name readme.txt | sed -e "s:${ED}::") + cd "${S}/" || die + eend + fi + + if use nvvs ; then + ebegin "Installing validation suite docs..." + doman "nvidia-validation-suite/nvidia-validation-suite-amd64-${NVVS_PV}/docs/man/man8/nvvs.8" + eend + fi + + fi + + ebegin "Cleaning before installation..." + find -type f \ + \( -name "*.o" -o -name "*.pdf" -o -name "*.txt" -o -name "*.3" -o -name "*.8" \) -delete \ + || die + rm -f "${S}"/nvml/lib/libnvidia-ml.so + rm -f "${S}/nvidia-validation-suite/nvidia-validation-suite-amd64-${NVVS_PV}/plugins"/libDeployment.so + rm -f "${S}/nvidia-validation-suite/nvidia-validation-suite-amd64-${NVVS_PV}/plugins"/libMemory.so + rm -f "${S}/nvidia-validation-suite/nvidia-validation-suite-amd64-${NVVS_PV}/plugins"/libPcie.so + rm -f "${S}/nvidia-validation-suite/nvidia-validation-suite-amd64-${NVVS_PV}"/nvidia-vs + eend + + if use healthmon; then + ebegin "Installing nvidia-healthmon" + exeinto /opt/cuda/gdk/nvidia-healthmon/nvidia-healthmon-tests/ + doexe "nvidia-healthmon/nvidia-healthmon-amd64-${HEALTMON_PV}/bin"/{*,*.*} + exeinto /opt/cuda/gdk/nvidia-healthmon/ + doexe "nvidia-healthmon/nvidia-healthmon-amd64-${HEALTMON_PV}"/nvidia-healthmon + insinto /etc/nvidia-healthmon/ + doins "nvidia-healthmon/nvidia-healthmon-amd64-${HEALTMON_PV}"/nvidia-healthmon.conf + + # install launch script + exeinto /opt/bin + doexe "${FILESDIR}"/nvidia-healthmon + eend + fi + + if use nvml; then + ebegin "Installing nvml" + cd "${S}/nvml" || die + for f in $(find .); do + local t="$(dirname ${f})" + if [[ "${t/obj\/}" != "${t}" || "${t##*.}" == "a" ]]; then + continue + fi + + if [[ ! -d "${f}" ]]; then + if [[ -x "${f}" ]]; then + exeinto "/opt/cuda/gdk/nvml/${t}" + doexe "${f}" + else + insinto "/opt/cuda/gdk/nvml/${t}" + doins "${f}" + fi + fi + done + + dosym libnvidia-ml.so.1 /opt/cuda/gdk/nvml/lib/libnvidia-ml.so + cd "${S}/" || die + eend + fi + + if use nvvs; then + ebegin "Installing validation suite" + cd "${S}/nvidia-validation-suite/nvidia-validation-suite-amd64-${NVVS_PV}/" || die + + insinto /etc/nvidia-validation-suite/ + doins nvvs.conf + rm nvvs.conf || die + + for f in $(find .); do + local t="$(dirname ${f})" + if [[ "${t/obj\/}" != "${t}" || "${t##*.}" == "a" ]]; then + continue + fi + + if [[ ! -d "${f}" ]]; then + if [[ -x "${f}" ]]; then + exeinto "/opt/cuda/gdk/nvvs/${t}" + doexe "${f}" + else + insinto "/opt/cuda/gdk/nvvs/${t}" + doins "${f}" + fi + fi + done + + dosym libDeployment.so.1 /opt/cuda/gdk/nvvs/plugins/libDeployment.so + dosym libMemory.so.1 /opt/cuda/gdk/nvvs/plugins/libMemory.so + dosym libPcie.so.1 /opt/cuda/gdk/nvvs/plugins/libPcie.so + + dosym /opt/cuda/gdk/nvvs/nvvs /opt/bin/nvidia-vs + cd "${S}/" || die + eend + fi +}