|
Lines 2-15
Link Here
|
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-2.1.0017.ebuild,v 1.1 2009/03/01 21:31:51 vapier Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-2.1.0017.ebuild,v 1.1 2009/03/01 21:31:51 vapier Exp $ |
| 4 |
|
4 |
|
|
|
5 |
EAPI="2" |
| 6 |
|
| 5 |
inherit versionator |
7 |
inherit versionator |
| 6 |
|
8 |
|
| 7 |
MY_PV="$(get_version_component_range 1-2)" |
9 |
MY_PV="$(get_version_component_range 1-2)" |
| 8 |
MY_DATE="February2009" |
10 |
MY_DATE="October2009" |
| 9 |
DESCRIPTION="NVIDIA's C graphics compiler toolkit" |
11 |
DESCRIPTION="NVIDIA's C graphics compiler toolkit" |
| 10 |
HOMEPAGE="http://developer.nvidia.com/object/cg_toolkit.html" |
12 |
HOMEPAGE="http://developer.nvidia.com/object/cg_toolkit.html" |
| 11 |
SRC_URI="x86? ( http://developer.download.nvidia.com/cg/Cg_${MY_PV}/${PV}/Cg-${MY_PV}_${MY_DATE}_x86.tgz ) |
13 |
SRC_URI="x86? ( http://developer.download.nvidia.com/cg/Cg_${MY_PV}/Cg-${MY_PV}_${MY_DATE}_x86.tgz ) |
| 12 |
amd64? ( http://developer.download.nvidia.com/cg/Cg_${MY_PV}/${PV}/Cg-${MY_PV}_${MY_DATE}_x86_64.tgz )" |
14 |
amd64? ( http://developer.download.nvidia.com/cg/Cg_${MY_PV}/Cg-${MY_PV}_${MY_DATE}_x86_64.tgz )" |
| 13 |
|
15 |
|
| 14 |
LICENSE="NVIDIA" |
16 |
LICENSE="NVIDIA" |
| 15 |
SLOT="0" |
17 |
SLOT="0" |
|
Lines 17-23
Link Here
|
| 17 |
IUSE="" |
19 |
IUSE="" |
| 18 |
RESTRICT="strip" |
20 |
RESTRICT="strip" |
| 19 |
|
21 |
|
| 20 |
RDEPEND="virtual/glut" |
22 |
RDEPEND="virtual/glut |
|
|
23 |
x86? ( virtual/libstdc++:3.3 )" |
| 21 |
|
24 |
|
| 22 |
S=${WORKDIR} |
25 |
S=${WORKDIR} |
| 23 |
|
26 |
|
|
Lines 25-32
Link Here
|
| 25 |
|
28 |
|
| 26 |
src_install() { |
29 |
src_install() { |
| 27 |
into ${DEST} |
30 |
into ${DEST} |
| 28 |
dobin usr/bin/cgc || die |
31 |
dobin usr/bin/* || die |
| 29 |
dosym ${DEST}/bin/cgc /opt/bin/cgc || die |
|
|
| 30 |
|
32 |
|
| 31 |
exeinto ${DEST}/lib |
33 |
exeinto ${DEST}/lib |
| 32 |
if use x86 ; then |
34 |
if use x86 ; then |
|
Lines 35-42
Link Here
|
| 35 |
doexe usr/lib64/* || die |
37 |
doexe usr/lib64/* || die |
| 36 |
fi |
38 |
fi |
| 37 |
|
39 |
|
| 38 |
doenvd "${FILESDIR}"/80cgc-opt |
|
|
| 39 |
|
| 40 |
insinto ${DEST}/include/Cg |
40 |
insinto ${DEST}/include/Cg |
| 41 |
doins usr/include/Cg/* |
41 |
doins usr/include/Cg/* |
| 42 |
|
42 |
|
|
Lines 45-54
Link Here
|
| 45 |
|
45 |
|
| 46 |
insinto ${DEST} |
46 |
insinto ${DEST} |
| 47 |
doins -r usr/local/Cg/{docs,examples,README} |
47 |
doins -r usr/local/Cg/{docs,examples,README} |
|
|
48 |
|
| 49 |
cat > "${T}/env" << EOF |
| 50 |
# Configures the CG Runtime environment for Bourne shell and compatible shells |
| 51 |
CG_COMPILER_EXE="${DEST}/bin/cgc" |
| 52 |
|
| 53 |
# Make sure the helper files are found |
| 54 |
PATH="${DEST}/bin" |
| 55 |
LDPATH="${DEST}/lib" |
| 56 |
MANPATH="${DEST}/man" |
| 57 |
EOF |
| 58 |
newenvd "${T}/env" 80cgc |
| 48 |
} |
59 |
} |
| 49 |
|
60 |
|
| 50 |
pkg_postinst() { |
61 |
pkg_postinst() { |
| 51 |
einfo "Starting with ${CATEGORY}/${PN}-2.1.0016, ${PN} is installed in" |
62 |
einfo "Starting with ${CATEGORY}/${PN}-2.1.0016, ${PN} is installed in" |
| 52 |
einfo "${DEST}. Packages might have to add something like:" |
63 |
einfo "${DEST}. Packages might have to add something like:" |
| 53 |
einfo " append-cppflags -I${DEST}/include" |
64 |
einfo " append-cppflags -I${DEST}/include" |
|
|
65 |
einfo "Starting with ${CATEGORY}/${PN}-2.2.0006, the cgc binary isn't" |
| 66 |
einfo "symlinked to /opt/bin, but to ${DEST}/bin is but into " |
| 67 |
einfo "\$\{PATH\} environment variable." |
| 54 |
} |
68 |
} |