Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 270480 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/media-gfx/nvidia-cg-toolkit/nvidia-cg-toolkit-2.1.0017.ebuild (-7 / +18 lines)
Lines 5-15 Link Here
5
inherit versionator
5
inherit versionator
6
6
7
MY_PV="$(get_version_component_range 1-2)"
7
MY_PV="$(get_version_component_range 1-2)"
8
MY_DATE="February2009"
8
MY_DATE="April2009"
9
DESCRIPTION="NVIDIA's C graphics compiler toolkit"
9
DESCRIPTION="NVIDIA's C graphics compiler toolkit"
10
HOMEPAGE="http://developer.nvidia.com/object/cg_toolkit.html"
10
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 )
11
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 )"
12
	amd64? ( http://developer.download.nvidia.com/cg/Cg_${MY_PV}/Cg-${MY_PV}_${MY_DATE}_x86_64.tgz )"
13
13
14
LICENSE="NVIDIA"
14
LICENSE="NVIDIA"
15
SLOT="0"
15
SLOT="0"
Lines 25-32 Link Here
25
25
26
src_install() {
26
src_install() {
27
	into ${DEST}
27
	into ${DEST}
28
	dobin usr/bin/cgc || die
28
	dobin usr/bin/* || die
29
	dosym ${DEST}/bin/cgc /opt/bin/cgc || die
30
29
31
	exeinto ${DEST}/lib
30
	exeinto ${DEST}/lib
32
	if use x86 ; then
31
	if use x86 ; then
Lines 35-42 Link Here
35
		doexe usr/lib64/* || die
34
		doexe usr/lib64/* || die
36
	fi
35
	fi
37
36
38
	doenvd "${FILESDIR}"/80cgc-opt
39
40
	insinto ${DEST}/include/Cg
37
	insinto ${DEST}/include/Cg
41
	doins usr/include/Cg/*
38
	doins usr/include/Cg/*
42
39
Lines 45-54 Link Here
45
42
46
	insinto ${DEST}
43
	insinto ${DEST}
47
	doins -r usr/local/Cg/{docs,examples,README}
44
	doins -r usr/local/Cg/{docs,examples,README}
45
46
	cat > "${T}/env" << EOF
47
# Configures the CG Runtime environment for Bourne shell and compatible shells
48
CG_COMPILER_EXE="${DEST}/bin/cgc"
49
50
# Make sure the helper files are found
51
PATH="${DEST}/bin"
52
LDPATH="${DEST}/lib"
53
MANPATH="${DEST}/man"
54
EOF
55
	newenvd "${T}/env" 80cgc
48
}
56
}
49
57
50
pkg_postinst() {
58
pkg_postinst() {
51
	einfo "Starting with ${CATEGORY}/${PN}-2.1.0016, ${PN} is installed in"
59
	einfo "Starting with ${CATEGORY}/${PN}-2.1.0016, ${PN} is installed in"
52
	einfo "${DEST}.  Packages might have to add something like:"
60
	einfo "${DEST}.  Packages might have to add something like:"
53
	einfo "  append-cppflags -I${DEST}/include"
61
	einfo "  append-cppflags -I${DEST}/include"
62
	einfo "Starting with ${CATEGORY}/${PN}-2.2.0006, the cgc binary isn't"
63
	einfo "symlinked to /opt/bin, but to ${DEST}/bin is but into "
64
	einfo "\$\{PATH\} environment variable."
54
}
65
}

Return to bug 270480