diff options
author | Justin Lecher <jlec@gentoo.org> | 2012-11-15 21:12:55 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2012-11-15 21:12:55 +0000 |
commit | 9c19879e0e5f0d5fab05e0cb640ef59efe3ccacd (patch) | |
tree | 8519742b05ce494be13d5e5a8f0f8db1b1266073 /media-gfx/nvidia-cg-toolkit | |
parent | Fix from upstream/ChromiumOS for cleaning up shared memory. (diff) | |
download | gentoo-2-9c19879e0e5f0d5fab05e0cb640ef59efe3ccacd.tar.gz gentoo-2-9c19879e0e5f0d5fab05e0cb640ef59efe3ccacd.tar.bz2 gentoo-2-9c19879e0e5f0d5fab05e0cb640ef59efe3ccacd.zip |
media-gfx/nvidia-cg-toolkit: Move to EAPI=5; handle example and doc installation via USE; support FEATURES=noman and portges file filters; Make it more prefix friendly
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916)
Diffstat (limited to 'media-gfx/nvidia-cg-toolkit')
4 files changed, 89 insertions, 2 deletions
diff --git a/media-gfx/nvidia-cg-toolkit/ChangeLog b/media-gfx/nvidia-cg-toolkit/ChangeLog index 5d20edecc651..da102305e4d5 100644 --- a/media-gfx/nvidia-cg-toolkit/ChangeLog +++ b/media-gfx/nvidia-cg-toolkit/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-gfx/nvidia-cg-toolkit # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/nvidia-cg-toolkit/ChangeLog,v 1.46 2012/11/14 14:47:49 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/nvidia-cg-toolkit/ChangeLog,v 1.47 2012/11/15 21:12:54 jlec Exp $ + +*nvidia-cg-toolkit-2.1.0017-r1 (15 Nov 2012) + + 15 Nov 2012; Justin Lecher <jlec@gentoo.org> +files/80cgc-opt-2, + nvidia-cg-toolkit-2.1.0017.ebuild, +nvidia-cg-toolkit-2.1.0017-r1.ebuild: + Move to EAPI=5; handle example and doc installation via USE; support + FEATURES=noman and portges file filters; Make it more prefix friendly 14 Nov 2012; Justin Lecher <jlec@gentoo.org> nvidia-cg-toolkit-2.1.0017.ebuild: diff --git a/media-gfx/nvidia-cg-toolkit/files/80cgc-opt-2 b/media-gfx/nvidia-cg-toolkit/files/80cgc-opt-2 new file mode 100644 index 000000000000..76c65274042e --- /dev/null +++ b/media-gfx/nvidia-cg-toolkit/files/80cgc-opt-2 @@ -0,0 +1,7 @@ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/nvidia-cg-toolkit/files/80cgc-opt-2,v 1.1 2012/11/15 21:12:55 jlec Exp $ + +# Configures the CG Runtime environment for Bourne shell and compatible shells +CG_COMPILER_EXE=@GENTOO_PORTAGE_EPREFIX@/opt/bin/cgc + +# Make sure the helper files are found +LDPATH="/opt/nvidia-cg-toolkit/lib" diff --git a/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-2.1.0017-r1.ebuild b/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-2.1.0017-r1.ebuild new file mode 100644 index 000000000000..bad85a405192 --- /dev/null +++ b/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-2.1.0017-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-2.1.0017-r1.ebuild,v 1.1 2012/11/15 21:12:54 jlec Exp $ + +EAPI=5 + +inherit prefix versionator + +MY_PV="$(get_version_component_range 1-2)" +MY_DATE="February2009" + +DESCRIPTION="NVIDIA's C graphics compiler toolkit" +HOMEPAGE="http://developer.nvidia.com/object/cg_toolkit.html" +SRC_URI=" + x86? ( http://developer.download.nvidia.com/cg/Cg_${MY_PV}/${PV}/Cg-${MY_PV}_${MY_DATE}_x86.tgz ) + amd64? ( http://developer.download.nvidia.com/cg/Cg_${MY_PV}/${PV}/Cg-${MY_PV}_${MY_DATE}_x86_64.tgz )" + +LICENSE="NVIDIA" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples" + +RESTRICT="strip" + +RDEPEND="media-libs/freeglut" +DEPEND="" + +S=${WORKDIR} + +DEST=/opt/${PN} + +QA_PREBUILT="${DEST}/*" + +src_install() { + into ${DEST} + dobin usr/bin/cgc + dosym ${DEST}/bin/cgc /opt/bin/cgc + + exeinto ${DEST}/lib + if use x86 ; then + doexe usr/lib/* + elif use amd64 ; then + doexe usr/lib64/* + fi + + newenvd "${FILESDIR}"/80cgc-opt-2 80cgc-opt + eprefixify "${ED}"/etc/env.d/80cgc-opt + + insinto ${DEST}/include/Cg + doins usr/include/Cg/* + + doman usr/share/man/man3/* + + insinto ${DEST} + dodoc usr/local/Cg/README + if use doc; then + dodoc usr/local/Cg/docs/*.{txt,pdf} + dohtml -r usr/local/Cg/docs/html/* + fi + if use examples; then + insinto /usr/share/${PN} + doins -r usr/local/Cg/examples + fi + find usr/local/Cg/{docs,examples,README} -delete +} + +pkg_postinst() { + einfo "Starting with ${CATEGORY}/${PN}-2.1.0016, ${PN} is installed in" + einfo "${DEST}. Packages might have to add something like:" + einfo " append-cppflags -I${DEST}/include" +} diff --git a/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-2.1.0017.ebuild b/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-2.1.0017.ebuild index eb289ab08939..c02f6af71f4b 100644 --- a/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-2.1.0017.ebuild +++ b/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-2.1.0017.ebuild @@ -1,11 +1,12 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-2.1.0017.ebuild,v 1.4 2012/11/14 14:47:49 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-2.1.0017.ebuild,v 1.5 2012/11/15 21:12:54 jlec Exp $ inherit versionator MY_PV="$(get_version_component_range 1-2)" MY_DATE="February2009" + DESCRIPTION="NVIDIA's C graphics compiler toolkit" HOMEPAGE="http://developer.nvidia.com/object/cg_toolkit.html" SRC_URI="x86? ( http://developer.download.nvidia.com/cg/Cg_${MY_PV}/${PV}/Cg-${MY_PV}_${MY_DATE}_x86.tgz ) @@ -15,6 +16,7 @@ LICENSE="NVIDIA" SLOT="0" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" IUSE="" + RESTRICT="strip" RDEPEND="media-libs/freeglut" |