From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CCC2E158086 for ; Thu, 25 Nov 2021 13:10:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0E709E07B2; Thu, 25 Nov 2021 13:10:13 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0B3B6E07B2 for ; Thu, 25 Nov 2021 13:10:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DD294342D7D for ; Thu, 25 Nov 2021 13:10:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 38B57132 for ; Thu, 25 Nov 2021 13:10:06 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1637845800.ca75ebbfbdfafd61333761a34e45ecf3ba437f82.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/nvidia-cg-toolkit/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.1.0013-r6.ebuild X-VCS-Directories: media-gfx/nvidia-cg-toolkit/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: ca75ebbfbdfafd61333761a34e45ecf3ba437f82 X-VCS-Branch: master Date: Thu, 25 Nov 2021 13:10:06 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0d0ddd2d-f7ec-4206-94dd-454eac807d98 X-Archives-Hash: f806e2f08697264eca4a6a7bbd77f27a commit: ca75ebbfbdfafd61333761a34e45ecf3ba437f82 Author: Marek Szuba gentoo org> AuthorDate: Thu Nov 25 13:07:20 2021 +0000 Commit: Marek Szuba gentoo org> CommitDate: Thu Nov 25 13:10:00 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca75ebbf media-gfx/nvidia-cg-toolkit: update EAPI 5 -> 8 Signed-off-by: Marek Szuba gentoo.org> .../nvidia-cg-toolkit-3.1.0013-r6.ebuild | 130 +++++++++++++++++++++ 1 file changed, 130 insertions(+) diff --git a/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.1.0013-r6.ebuild b/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.1.0013-r6.ebuild new file mode 100644 index 000000000000..d480e93dbdbf --- /dev/null +++ b/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.1.0013-r6.ebuild @@ -0,0 +1,130 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MULTILIB_COMPAT=( abi_x86_{32,64} ) + +inherit prefix multilib-minimal + +MY_PV="$(ver_cut 1-2)" +MY_DATE="April2012" + +DESCRIPTION="NVIDIA's C graphics compiler toolkit" +HOMEPAGE="https://developer.nvidia.com/cg-toolkit" +SRC_URI=" + abi_x86_32? ( + https://developer.download.nvidia.com/cg/Cg_${MY_PV}/Cg-${MY_PV}_${MY_DATE}_x86.tgz + ) + abi_x86_64? ( + https://developer.download.nvidia.com/cg/Cg_${MY_PV}/Cg-${MY_PV}_${MY_DATE}_x86_64.tgz + )" + +LICENSE="NVIDIA-r1" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples multilib" + +RESTRICT="strip" + +RDEPEND=" + >=media-libs/glu-9.0.0-r1[${MULTILIB_USEDEP}] + >=x11-libs/libICE-1.0.8-r1[${MULTILIB_USEDEP}] + >=x11-libs/libSM-1.2.1-r1[${MULTILIB_USEDEP}] + >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] + >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] + >=x11-libs/libXi-1.7.2[${MULTILIB_USEDEP}] + >=x11-libs/libXmu-1.1.1-r1[${MULTILIB_USEDEP}] + >=x11-libs/libXt-1.1.4[${MULTILIB_USEDEP}] + >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] + amd64? ( + abi_x86_32? ( + >=media-libs/freeglut-2.8.1[abi_x86_32(-)] + ) + )" + +S=${WORKDIR} + +DEST=/opt/${PN} + +QA_PREBUILT="${DEST}/.* /usr/share/.*" + +src_unpack() { + multilib_src_unpack() { + mkdir -p "${BUILD_DIR}" || die + cd "${BUILD_DIR}" || die + + local i + for i in ${A}; do + if [[ ${i} == *x86_64* && ${ABI} == amd64 ]]; then + unpack "${i}" + elif [[ ${i} != *x86_64* && ${ABI} != amd64 ]]; then + unpack "${i}" + fi + done + } + + multilib_foreach_abi multilib_src_unpack +} + +install_pkgconfig() { + # One arg: .pc file + insinto /usr/$(get_libdir)/pkgconfig + sed \ + -e "s:GENTOO_LIBDIR:$(get_libdir):g" \ + -e "s:DESCRIPTION:${DESCRIPTION}:g" \ + -e "s:VERSION:${PV}:g" \ + -e "s|HOMEPAGE|${HOMEPAGE}|g" \ + -e "s:SUFFIX::g" \ + "${FILESDIR}/${1}.in" > "${T}/${1}" || die + eprefixify "${T}/${1}" + doins "${T}/${1}" +} + +src_install() { + local LDPATH=() + + multilib-minimal_src_install +} + +multilib_src_install() { + LDPATH+=( "${EPREFIX}${DEST}/$(get_libdir)" ) + into ${DEST} + + if [[ ${ABI} == amd64 ]]; then + dolib.so usr/lib64/*.so + else + dolib.so usr/lib/*.so + fi + install_pkgconfig nvidia-cg-toolkit.pc + install_pkgconfig nvidia-cg-toolkit-gl.pc + + insinto ${DEST}/include + doins -r usr/include/Cg + + if multilib_is_native_abi; then + dobin usr/bin/{cgc,cgfxcat,cginfo} + + insinto ${DEST} + dodoc usr/local/Cg/README + if use doc; then + DOCS=( usr/local/Cg/docs/*.{txt,pdf} ) + HTML_DOCS=( usr/local/Cg/docs/html/. ) + einstalldocs + fi + if use examples; then + dodir /usr/share/${PN} + mv usr/local/Cg/examples "${ED}"/usr/share/${PN}/ + fi + fi +} + +multilib_src_install_all() { + local ldpath=${LDPATH[*]} + + sed \ + -e "s|ELDPATH|${ldpath// /:}|g" \ + "${FILESDIR}"/80cgc-opt-2 > "${T}"/80cgc-opt || die + eprefixify "${T}"/80cgc-opt + doenvd "${T}"/80cgc-opt +}