1 |
commit: a4a6c26a899c106b6afe841da93344a6d7f92bb9 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 29 15:48:00 2022 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 29 15:52:06 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4a6c26a |
7 |
|
8 |
dev-python/pyopencl: add 2022.1.6 |
9 |
|
10 |
py3.11 support continues to be blocked by pybind11 build errors. |
11 |
|
12 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
13 |
|
14 |
dev-python/pyopencl/Manifest | 1 + |
15 |
dev-python/pyopencl/pyopencl-2022.1.6.ebuild | 57 ++++++++++++++++++++++++++++ |
16 |
2 files changed, 58 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/pyopencl/Manifest b/dev-python/pyopencl/Manifest |
19 |
index cb94944ac75d..aceb0b93a97a 100644 |
20 |
--- a/dev-python/pyopencl/Manifest |
21 |
+++ b/dev-python/pyopencl/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST pyopencl-2022.1.5.tar.gz 454129 BLAKE2B 266bc327c9af5654287fc47cdf4e6002c7cddcd6f5e55bb70bb62aaee666dc5c102f78d4e946f010c1e109390c1d2e981e7ca6ca002d10f66248cb008b308734 SHA512 e6eb3e6d886d8ca1d94867a398b286556fd2d93535bb8481c7603cd521cd47606ce3d9cd6422830c6404305a4a1293234d8774fdda6923bdd2b4fc21fb39d377 |
24 |
+DIST pyopencl-2022.1.6.tar.gz 455424 BLAKE2B 03c46bebc4d6093489b0a1501267d5d67b73e9e7fe50f73cec3dd752fbb699adab63e08d60f3a54c8fd215cbb82c81353d28e875b953686b05e188df78cfe237 SHA512 a1e404c4c5f95d111690c969ae5c5d34f0deca2c8b93a5ce4d90e003031af7eb94a7708f878170a9b6e001b899d321f7dfdaa6f7545af3237d30d237d44bb45f |
25 |
DIST pyopencl-2022.1.tar.gz 452537 BLAKE2B 0d4d178a6bdf14dc3769dcb78c42bc894c0a443a6811fe9b25dedbc4a43debc06d1a1c32cb2a0df06fe16d1b2e78e65ef4f3ca8e9931be39384b3c8c813336de SHA512 e873807e757c19b59dbac2a0522fbb9c6e8af955d62bdcf06d8f3d792db3c9d2ce15372a6eefdca5b3f6756c35a85b5ff8d7dc1b6449bfd12c2b588576dd6f24 |
26 |
|
27 |
diff --git a/dev-python/pyopencl/pyopencl-2022.1.6.ebuild b/dev-python/pyopencl/pyopencl-2022.1.6.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..dc2cb443735e |
30 |
--- /dev/null |
31 |
+++ b/dev-python/pyopencl/pyopencl-2022.1.6.ebuild |
32 |
@@ -0,0 +1,57 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{8..10} ) |
39 |
+DISTUTILS_USE_PEP517=setuptools |
40 |
+ |
41 |
+inherit distutils-r1 |
42 |
+ |
43 |
+DESCRIPTION="Python wrapper for OpenCL" |
44 |
+HOMEPAGE="https://mathema.tician.de/software/pyopencl/ |
45 |
+ https://pypi.org/project/pyopencl/" |
46 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="GPL-2" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64" |
51 |
+IUSE="examples opengl" |
52 |
+ |
53 |
+DEPEND=">=virtual/opencl-2" |
54 |
+RDEPEND="${DEPEND} |
55 |
+ >=dev-python/mako-0.3.6[${PYTHON_USEDEP}] |
56 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/platformdirs-2.2.0[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/pytools-2021.2.7[${PYTHON_USEDEP}]" |
59 |
+# libglvnd is only needed for the headers |
60 |
+BDEPEND="dev-python/numpy[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/pybind11-2.5.0[${PYTHON_USEDEP}] |
62 |
+ opengl? ( media-libs/libglvnd )" |
63 |
+ |
64 |
+# The test suite fails if there are no OpenCL platforms available, and |
65 |
+# even if there is one (which requires the presence of both an OpenCL |
66 |
+# runtime *and* hardware supported by it - simply emerging any runtime |
67 |
+# is not enough) the vast majority of tests end up skipped because by |
68 |
+# default the portage user hasn't got sufficient privileges to talk |
69 |
+# to the GPU. |
70 |
+RESTRICT="test" |
71 |
+ |
72 |
+python_configure_all() { |
73 |
+ local myconf=() |
74 |
+ if use opengl; then |
75 |
+ myconf+=(--cl-enable-gl) |
76 |
+ fi |
77 |
+ |
78 |
+ "${EPYTHON}" configure.py \ |
79 |
+ "${myconf[@]}" |
80 |
+} |
81 |
+ |
82 |
+python_install_all() { |
83 |
+ if use examples; then |
84 |
+ dodoc -r examples |
85 |
+ docompress -x /usr/share/doc/${PF}/examples |
86 |
+ fi |
87 |
+ |
88 |
+ distutils-r1_python_install_all |
89 |
+} |