# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit versionator MY_PV="$(get_version_component_range 1-2)" MY_DATE="February2010" 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}/Cg-${MY_PV}_${MY_DATE}_x86.tgz ) amd64? ( http://developer.download.nvidia.com/cg/Cg_${MY_PV}/Cg-${MY_PV}_${MY_DATE}_x86_64.tgz )" LICENSE="NVIDIA" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" RESTRICT="strip" DEPEND="media-libs/freeglut x86? ( virtual/libstdc++:3.3 )" S=${WORKDIR} src_compile() { einfo "Nothing to compile." } src_install() { dobin usr/bin/* if use x86; then dolib usr/lib/* elif use amd64; then dolib usr/lib64/* fi doenvd "${FILESDIR}"/80cgc insinto /usr/include/Cg doins usr/include/Cg/* doman usr/share/man/man3/* dodoc usr/local/Cg/MANIFEST usr/local/Cg/README \ usr/local/Cg/docs/*.pdf usr/local/Cg/docs/CgReferenceManual.chm docinto html dohtml usr/local/Cg/docs/html/* docinto examples dodoc usr/local/Cg/examples/README docinto include/GL dodoc usr/local/Cg/include/GL/* # Copy all the example code. cd usr/local/Cg/examples insinto /usr/share/doc/${PF}/examples doins Makefile for dir in $(find * -type d) ; do insinto usr/share/doc/${PF}/examples/"${dir}" doins "${dir}"/* done }