1 |
commit: be7eb1e085cbf56160a34f829d06e5bf9b82c9d2 |
2 |
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 1 03:53:50 2019 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 1 04:35:25 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=be7eb1e0 |
7 |
|
8 |
dev-libs/optix: initial commit of 6.0.0. |
9 |
|
10 |
This is included as a dependency of sci-physics/opticks. |
11 |
|
12 |
Package-Manager: Portage-2.3.79, Repoman-2.3.18 |
13 |
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org> |
14 |
|
15 |
dev-libs/optix/metadata.xml | 7 +++++++ |
16 |
dev-libs/optix/optix-6.0.0.ebuild | 39 +++++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 46 insertions(+) |
18 |
|
19 |
diff --git a/dev-libs/optix/metadata.xml b/dev-libs/optix/metadata.xml |
20 |
new file mode 100644 |
21 |
index 000000000..7203fb853 |
22 |
--- /dev/null |
23 |
+++ b/dev-libs/optix/metadata.xml |
24 |
@@ -0,0 +1,7 @@ |
25 |
+<?xml version="1.0" encoding="UTF-8"?> |
26 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
27 |
+<pkgmetadata> |
28 |
+ <maintainer type="person"> |
29 |
+ <email>heroxbd@g.o</email> |
30 |
+ </maintainer> |
31 |
+</pkgmetadata> |
32 |
|
33 |
diff --git a/dev-libs/optix/optix-6.0.0.ebuild b/dev-libs/optix/optix-6.0.0.ebuild |
34 |
new file mode 100644 |
35 |
index 000000000..0801fc33e |
36 |
--- /dev/null |
37 |
+++ b/dev-libs/optix/optix-6.0.0.ebuild |
38 |
@@ -0,0 +1,39 @@ |
39 |
+# Copyright 1999-2019 Gentoo Authors |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+ |
42 |
+EAPI=7 |
43 |
+ |
44 |
+inherit cmake-utils cuda |
45 |
+ |
46 |
+DESCRIPTION="NVIDIA Ray Tracing Engine" |
47 |
+HOMEPAGE="https://developer.nvidia.com/optix" |
48 |
+SRC_URI="NVIDIA-OptiX-SDK-${PV}-linux64-25650775.sh" |
49 |
+ |
50 |
+SLOT="0/6" |
51 |
+KEYWORDS="~amd64" |
52 |
+RESTRICT="fetch" |
53 |
+LICENSE="NVIDIA-r2" |
54 |
+ |
55 |
+RDEPEND="dev-util/nvidia-cuda-toolkit |
56 |
+ virtual/opengl |
57 |
+ media-libs/freeglut" |
58 |
+DEPEND="${RDEPEND}" |
59 |
+ |
60 |
+S="${WORKDIR}" |
61 |
+ |
62 |
+CMAKE_USE_DIR=${S}/SDK |
63 |
+ |
64 |
+src_unpack() { |
65 |
+ tail -n +218 "${DISTDIR}"/${A} | tar -zx || die |
66 |
+} |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ cmake-utils_src_prepare |
70 |
+ rm -rf SDK-precompiled-samples |
71 |
+ export PATH=$(cuda_gccdir):${PATH} |
72 |
+} |
73 |
+ |
74 |
+src_install() { |
75 |
+ insinto /opt/${PN} |
76 |
+ doins -r doc include lib64 |
77 |
+} |