summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-gfx/nvidia-cg-toolkit
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-gfx/nvidia-cg-toolkit')
-rw-r--r--media-gfx/nvidia-cg-toolkit/Manifest2
-rw-r--r--media-gfx/nvidia-cg-toolkit/files/80cgc7
-rw-r--r--media-gfx/nvidia-cg-toolkit/files/80cgc-opt6
-rw-r--r--media-gfx/nvidia-cg-toolkit/files/80cgc-opt-211
-rw-r--r--media-gfx/nvidia-cg-toolkit/files/80cgc-opt-39
-rw-r--r--media-gfx/nvidia-cg-toolkit/files/nvidia-cg-toolkit-gl.pc.in10
-rw-r--r--media-gfx/nvidia-cg-toolkit/files/nvidia-cg-toolkit.pc.in9
-rw-r--r--media-gfx/nvidia-cg-toolkit/metadata.xml16
-rw-r--r--media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.1.0013-r3.ebuild148
-rw-r--r--media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.1.0013-r4.ebuild151
10 files changed, 369 insertions, 0 deletions
diff --git a/media-gfx/nvidia-cg-toolkit/Manifest b/media-gfx/nvidia-cg-toolkit/Manifest
new file mode 100644
index 000000000000..cab4d89794ae
--- /dev/null
+++ b/media-gfx/nvidia-cg-toolkit/Manifest
@@ -0,0 +1,2 @@
+DIST Cg-3.1_April2012_x86.tgz 23332348 SHA256 cef3591e436f528852db0e8c145d3842f920e0c89bcfb219c466797cb7b18879 SHA512 7b2addad157e151eb42b320aea31ccddfd53ec5640cb97bc86a3d461c1b08a2dff280bfc3f7859d124c311e1710e39d40405c387e5724ebc82d95303b250837a WHIRLPOOL f15f3e8f65310a47661a0473cdf7dc1ef195aff8422ad8a0ec26a2302a52d73f9f22922180482cb2724197037eb619cb9389f9732718a08dca8889d2be5dff1d
+DIST Cg-3.1_April2012_x86_64.tgz 24829131 SHA256 e8ff01e6cc38d1b3fd56a083f5860737dbd2f319a39037528fb1a74a89ae9878 SHA512 591b51195193e7e3bbb9f1c2579336d24a179b0a88b955a01f4661bda55543fbccd73cac53033912f2eea8a1068e4c1394c6d286f195963cfb33a0d8b4428e27 WHIRLPOOL c4295473b82d67f6cf370e725a36189fbdbc3bfd02369e4afc0f510b6ab06a160a7de5e47931689dccc5ff52f95f0e10ebd03b32c8c30881d6d2f02183cad2a9
diff --git a/media-gfx/nvidia-cg-toolkit/files/80cgc b/media-gfx/nvidia-cg-toolkit/files/80cgc
new file mode 100644
index 000000000000..19b9b4083b0f
--- /dev/null
+++ b/media-gfx/nvidia-cg-toolkit/files/80cgc
@@ -0,0 +1,7 @@
+# /etc/env.d/80cgc :
+# $Id$
+
+
+# Configures the CG Runtime environment for Bourne shell and compatible shells
+
+CG_COMPILER_EXE=/usr/bin/cgc
diff --git a/media-gfx/nvidia-cg-toolkit/files/80cgc-opt b/media-gfx/nvidia-cg-toolkit/files/80cgc-opt
new file mode 100644
index 000000000000..3da3da2d90f6
--- /dev/null
+++ b/media-gfx/nvidia-cg-toolkit/files/80cgc-opt
@@ -0,0 +1,6 @@
+# Configures the CG Runtime environment for Bourne shell and compatible shells
+CG_COMPILER_EXE=/opt/bin/cgc
+
+# Make sure the helper files are found
+LDPATH="/opt/nvidia-cg-toolkit/lib"
+MANPATH="/opt/nvidia-cg-toolkit/man"
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..f550ccab841b
--- /dev/null
+++ b/media-gfx/nvidia-cg-toolkit/files/80cgc-opt-2
@@ -0,0 +1,11 @@
+# $Id$
+
+# Configures the CG Runtime environment for Bourne shell and compatible shells
+CG_COMPILER_EXE=@GENTOO_PORTAGE_EPREFIX@/opt/bin/cgc
+CG_INC_PATH=@GENTOO_PORTAGE_EPREFIX@/opt/nvidia-cg-toolkit/include
+CG_LIB_PATH="ELDPATH"
+
+PATH="@GENTOO_PORTAGE_EPREFIX@/opt/nvidia-cg-toolkit/bin"
+ROOTPATH="@GENTOO_PORTAGE_EPREFIX@/opt/nvidia-cg-toolkit/bin"
+
+LDPATH="ELDPATH"
diff --git a/media-gfx/nvidia-cg-toolkit/files/80cgc-opt-3 b/media-gfx/nvidia-cg-toolkit/files/80cgc-opt-3
new file mode 100644
index 000000000000..9013927d11e9
--- /dev/null
+++ b/media-gfx/nvidia-cg-toolkit/files/80cgc-opt-3
@@ -0,0 +1,9 @@
+# $Id$
+
+# Configures the CG Runtime environment for Bourne shell and compatible shells
+CG_COMPILER_EXE=@GENTOO_PORTAGE_EPREFIX@/opt/bin/cgc
+CG_INC_PATH=@GENTOO_PORTAGE_EPREFIX@/opt/nvidia-cg-toolkit/include
+CG_LIB_PATH="ELDPATH"
+
+PATH="@GENTOO_PORTAGE_EPREFIX@/opt/nvidia-cg-toolkit/bin"
+ROOTPATH="@GENTOO_PORTAGE_EPREFIX@/opt/nvidia-cg-toolkit/bin"
diff --git a/media-gfx/nvidia-cg-toolkit/files/nvidia-cg-toolkit-gl.pc.in b/media-gfx/nvidia-cg-toolkit/files/nvidia-cg-toolkit-gl.pc.in
new file mode 100644
index 000000000000..be92a7e4e22b
--- /dev/null
+++ b/media-gfx/nvidia-cg-toolkit/files/nvidia-cg-toolkit-gl.pc.in
@@ -0,0 +1,10 @@
+prefix=@GENTOO_PORTAGE_EPREFIX@/opt/nvidia-cg-toolkit
+libdir=${prefix}/GENTOO_LIBDIR
+includedir=${prefix}/include
+Name: nvidia-cg-toolkit
+Description: DESCRIPTION
+Version: VERSION
+URL: HOMEPAGE
+Libs: -L${libdir} -lCgGL
+Cflags: -I${includedir}/
+Requires: nvidia-cg-toolkitSUFFIX
diff --git a/media-gfx/nvidia-cg-toolkit/files/nvidia-cg-toolkit.pc.in b/media-gfx/nvidia-cg-toolkit/files/nvidia-cg-toolkit.pc.in
new file mode 100644
index 000000000000..43dedbef4bb7
--- /dev/null
+++ b/media-gfx/nvidia-cg-toolkit/files/nvidia-cg-toolkit.pc.in
@@ -0,0 +1,9 @@
+prefix=@GENTOO_PORTAGE_EPREFIX@/opt/nvidia-cg-toolkit
+libdir=${prefix}/GENTOO_LIBDIR
+includedir=${prefix}/include
+Name: nvidia-cg-toolkit
+Description: DESCRIPTION
+Version: VERSION
+URL: HOMEPAGE
+Libs: -L${libdir} -lCg
+Cflags: -I${includedir}/
diff --git a/media-gfx/nvidia-cg-toolkit/metadata.xml b/media-gfx/nvidia-cg-toolkit/metadata.xml
new file mode 100644
index 000000000000..84b9190efd25
--- /dev/null
+++ b/media-gfx/nvidia-cg-toolkit/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>graphics</herd>
+ <maintainer>
+ <email>jlec@gentoo.org</email>
+ <name>Justin Lecher</name>
+ </maintainer>
+ <longdescription>
+The Cg Toolkit provides a compiler for the Cg language, runtime libraries for
+use with both leading graphics APIs, runtime libraries for CgFX, example
+applications, and extensive documentation. Supporting over 20 different OpenGL
+and DirectX profile targets, Cg will allow you to incorporate stunning
+interactive effects into your 3D applications.
+</longdescription>
+</pkgmetadata>
diff --git a/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.1.0013-r3.ebuild b/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.1.0013-r3.ebuild
new file mode 100644
index 000000000000..16db91518c10
--- /dev/null
+++ b/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.1.0013-r3.ebuild
@@ -0,0 +1,148 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+MULTILIB_COMPAT=( abi_x86_{32,64} )
+inherit multilib multilib-minimal prefix versionator
+
+MY_PV="$(get_version_component_range 1-2)"
+MY_DATE="April2012"
+
+DESCRIPTION="NVIDIA's C graphics compiler toolkit"
+HOMEPAGE="http://developer.nvidia.com/cg_toolkit"
+SRC_URI="
+ abi_x86_32? (
+ http://developer.download.nvidia.com/cg/Cg_${MY_PV}/Cg-${MY_PV}_${MY_DATE}_x86.tgz
+ )
+ abi_x86_64? (
+ http://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"
+
+REQUIRED_USE="amd64? ( multilib? ( abi_x86_32 ) )"
+RESTRICT="strip"
+
+RDEPEND="
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXi
+ x11-libs/libXmu
+ x11-libs/libXt
+ media-libs/glu
+ media-libs/mesa
+ media-libs/freeglut
+ amd64? ( abi_x86_32? (
+ >=media-libs/glu-9.0.0-r1[abi_x86_32(-)]
+ >=media-libs/mesa-9.1.6[abi_x86_32(-)]
+ >=media-libs/freeglut-2.8.1[abi_x86_32(-)]
+ >=x11-libs/libICE-1.0.8-r1[abi_x86_32(-)]
+ >=x11-libs/libSM-1.2.1-r1[abi_x86_32(-)]
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
+ >=x11-libs/libXi-1.7.2[abi_x86_32(-)]
+ >=x11-libs/libXmu-1.1.1-r1[abi_x86_32(-)]
+ >=x11-libs/libXt-1.1.4[abi_x86_32(-)]
+ ) )
+ x86? ( virtual/libstdc++:3.3 )"
+DEPEND=""
+
+S=${WORKDIR}
+
+DEST=/opt/${PN}
+
+QA_PREBUILT="${DEST}/*"
+
+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 usr/lib64/*
+ else
+ dolib usr/lib/*
+ 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
+ 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
+ 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
+}
+
+pkg_postinst() {
+ if [[ ${REPLACING_VERSIONS} < 2.1.0016 ]]; then
+ 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"
+ fi
+}
diff --git a/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.1.0013-r4.ebuild b/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.1.0013-r4.ebuild
new file mode 100644
index 000000000000..69a5820be548
--- /dev/null
+++ b/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-3.1.0013-r4.ebuild
@@ -0,0 +1,151 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+MULTILIB_COMPAT=( abi_x86_{32,64} )
+
+inherit eutils multilib multilib-minimal prefix versionator
+
+MY_PV="$(get_version_component_range 1-2)"
+MY_DATE="April2012"
+
+DESCRIPTION="NVIDIA's C graphics compiler toolkit"
+HOMEPAGE="http://developer.nvidia.com/cg_toolkit"
+SRC_URI="
+ abi_x86_32? (
+ http://developer.download.nvidia.com/cg/Cg_${MY_PV}/Cg-${MY_PV}_${MY_DATE}_x86.tgz
+ )
+ abi_x86_64? (
+ http://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"
+
+REQUIRED_USE="amd64? ( multilib? ( abi_x86_32 ) )"
+
+RESTRICT="strip"
+
+RDEPEND="
+ media-libs/glu
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXi
+ x11-libs/libXmu
+ x11-libs/libXt
+ virtual/opengl
+ amd64? (
+ abi_x86_32? (
+ >=media-libs/freeglut-2.8.1[abi_x86_32(-)]
+ >=media-libs/glu-9.0.0-r1[abi_x86_32(-)]
+ >=virtual/opengl-7.0-r1[abi_x86_32(-)]
+ >=x11-libs/libICE-1.0.8-r1[abi_x86_32(-)]
+ >=x11-libs/libSM-1.2.1-r1[abi_x86_32(-)]
+ >=x11-libs/libX11-1.6.2[abi_x86_32(-)]
+ >=x11-libs/libXext-1.3.2[abi_x86_32(-)]
+ >=x11-libs/libXi-1.7.2[abi_x86_32(-)]
+ >=x11-libs/libXmu-1.1.1-r1[abi_x86_32(-)]
+ >=x11-libs/libXt-1.1.4[abi_x86_32(-)]
+ )
+ )"
+DEPEND=""
+
+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 usr/lib64/*
+ else
+ dolib usr/lib/*
+ 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
+}
+
+pkg_postinst() {
+ if [[ ${REPLACING_VERSIONS} < 2.1.0016 ]]; then
+ 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"
+ fi
+}