1 |
commit: 80b996105755303e377cedf2bd6ae85ca35791ee |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 22 16:31:54 2021 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 22 16:51:23 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80b99610 |
7 |
|
8 |
dev-python/pyopencl: add 2021.1.6 |
9 |
|
10 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
11 |
|
12 |
dev-python/pyopencl/Manifest | 1 + |
13 |
dev-python/pyopencl/pyopencl-2021.1.6.ebuild | 56 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 57 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pyopencl/Manifest b/dev-python/pyopencl/Manifest |
17 |
index 5d7a2e38fb3..ebb42e37bec 100644 |
18 |
--- a/dev-python/pyopencl/Manifest |
19 |
+++ b/dev-python/pyopencl/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pyopencl-2021.1.3.tar.gz 447070 BLAKE2B fcd8c5d06de9c14a7bcf3c3d37f89cb208adf0225cc88a081aefc86aac82a99026183f2c9975f34cd8247f784335e4ba6c0a09164ce01e527123b5c1dd952a76 SHA512 8799e73b3b1596387f619fd997f643228679fb1d9ab5ce6704da9df51922f96229efc98ab6b7a7361234848078b15bc67946a4188f4d17cb8760040b48b346e8 |
22 |
+DIST pyopencl-2021.1.6.tar.gz 448568 BLAKE2B aea3f6f28d3377b0b8aa7b6c726252299039663e9684316f48c5e875be9d25600582a4af931cacda3fa39834c000a00e2d29720ed6a3cca8e46141ee189107a0 SHA512 320b521e9ed05e0c183d0535b81f27355bdb21577a8a8ba254599a9e853cbe6e0ef44ee6e5be742b44fa1e1e5005732643217f327e4b347845ee6c706db5da87 |
23 |
|
24 |
diff --git a/dev-python/pyopencl/pyopencl-2021.1.6.ebuild b/dev-python/pyopencl/pyopencl-2021.1.6.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..a9a305e869f |
27 |
--- /dev/null |
28 |
+++ b/dev-python/pyopencl/pyopencl-2021.1.6.ebuild |
29 |
@@ -0,0 +1,56 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{7..9} ) |
36 |
+ |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+DESCRIPTION="Python wrapper for OpenCL" |
40 |
+HOMEPAGE="https://mathema.tician.de/software/pyopencl/ |
41 |
+ https://pypi.org/project/pyopencl/" |
42 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="GPL-2" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64" |
47 |
+IUSE="examples opengl" |
48 |
+ |
49 |
+COMMON="dev-python/numpy[${PYTHON_USEDEP}]" |
50 |
+RDEPEND="${COMMON} |
51 |
+ >=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}] |
52 |
+ >=dev-python/decorator-3.2.0[${PYTHON_USEDEP}] |
53 |
+ dev-python/mako[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/pytools-2017.6[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
56 |
+ >=virtual/opencl-2" |
57 |
+DEPEND="${COMMON} |
58 |
+ dev-python/pybind11[${PYTHON_USEDEP}]" |
59 |
+ |
60 |
+# The test suite fails if there are no OpenCL platforms available, and |
61 |
+# even if there is one (which requires the presence of both an OpenCL |
62 |
+# runtime *and* hardware supported by it - simply emerging any runtime |
63 |
+# is not enough) the vast majority of tests end up skipped because by |
64 |
+# default the portage user hasn't got sufficient privileges to talk |
65 |
+# to the GPU. |
66 |
+RESTRICT="test" |
67 |
+ |
68 |
+python_configure_all() { |
69 |
+ local myconf=() |
70 |
+ if use opengl; then |
71 |
+ myconf+=(--cl-enable-gl) |
72 |
+ fi |
73 |
+ |
74 |
+ "${EPYTHON}" configure.py \ |
75 |
+ "${myconf[@]}" |
76 |
+} |
77 |
+ |
78 |
+python_install_all() { |
79 |
+ if use examples; then |
80 |
+ dodoc -r examples |
81 |
+ docompress -x /usr/share/doc/${PF}/examples |
82 |
+ fi |
83 |
+ |
84 |
+ distutils-r1_python_install_all |
85 |
+} |