aboutsummaryrefslogtreecommitdiff
blob: afeda2b323cb7931e7559edb76941dc42c439eba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="NVIDIA Ray Tracing Engine"
HOMEPAGE="https://developer.nvidia.com/optix"
SRC_URI="NVIDIA-OptiX-SDK-${PV}-linux64-x86_64.sh"

SLOT="0/7"
KEYWORDS="~amd64"
RESTRICT="fetch"
LICENSE="NVIDIA-r2"

RDEPEND="
	dev-util/nvidia-cuda-toolkit
	media-libs/freeglut
	virtual/opengl
"
S="${WORKDIR}"

pkg_nofetch() {
	einfo "Please download ${SRC_URI} from:"
	einfo "  ${HOMEPAGE}"
	einfo "and move it to your DISTDIR directory."
	einfo 'DISTDIR value is available from `emerge --info`'
}

src_unpack() {
	tail -n +223 "${DISTDIR}"/${A} | tar -zx || die
}

src_install() {
	insinto /opt/${PN}
	dodoc -r doc
	doins -r include SDK
}