diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-07-03 22:39:47 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-07-03 22:39:47 +0100 |
commit | 7f0ccc917c7abe6223784c703d86cd14755691fb (patch) | |
tree | 8c6793f68896b341e22f33d7e6cef88e481f4a8b /dev-python/pyopencl | |
parent | 9aa80713372911cec499b3adb2cd746790920916 (diff) |
gentoo resync : 03.07.2021
Diffstat (limited to 'dev-python/pyopencl')
-rw-r--r-- | dev-python/pyopencl/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pyopencl/pyopencl-2021.2.5.ebuild | 55 |
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-python/pyopencl/Manifest b/dev-python/pyopencl/Manifest index c51c7cd6f13a..ce833137140c 100644 --- a/dev-python/pyopencl/Manifest +++ b/dev-python/pyopencl/Manifest @@ -1,5 +1,7 @@ DIST pyopencl-2021.1.3.tar.gz 447070 BLAKE2B fcd8c5d06de9c14a7bcf3c3d37f89cb208adf0225cc88a081aefc86aac82a99026183f2c9975f34cd8247f784335e4ba6c0a09164ce01e527123b5c1dd952a76 SHA512 8799e73b3b1596387f619fd997f643228679fb1d9ab5ce6704da9df51922f96229efc98ab6b7a7361234848078b15bc67946a4188f4d17cb8760040b48b346e8 DIST pyopencl-2021.2.3.tar.gz 450895 BLAKE2B 0395ee6ef32baa57fe9df0c9960f5d761cfced1cc8b87e51e7ebcc7cda6a6b651fc491acf6be525239576fedec2a8375935799fc77568e131dcb26436a59c6f1 SHA512 41ef44eac0112ceac15c1260198a0bd642c244f3ad45aa1d7feba70b55a3f257ce01f7c5a8eaf2ce1df263492452055286caad004101d8bdb2d4f7307fb339be +DIST pyopencl-2021.2.5.tar.gz 449527 BLAKE2B 922970c6aa93d2ce600c1e107fa3303c42bd44a264f7c38b30c8d2c909ec12e4cf8fa21dbaffa558c7b183141802ac13fe1a1032230b611b56503cfbaeae40c1 SHA512 a8784e0c6ae9a3c2d8f463405d5bbfe4ac1df138fd5f1ca8ce622afaab787333574c6ee8f4a828c09dc36c1b7a5df8fbe5d70e2236be32d457c3e1cbdeb880e5 EBUILD pyopencl-2021.1.3.ebuild 1491 BLAKE2B 627fcf87c2a199260cb4697729d7fffe01dd0da7e0146fe6c981a7e2673c97496bfb1d90fd5c7354b64bb7a7f871d46b692855db6111f9cb4f559595de0f90f0 SHA512 820bbe51273f64d1f5aa2e781e68baebbc6ebe014b281b3c477876442e9a218d3cdad26b693aaacf48fba07df450d4c754b7356c140c553de9e6908b6af6447e EBUILD pyopencl-2021.2.3.ebuild 1495 BLAKE2B 31a08609895d8c8f7f7e3578bc02a13d4be00b0bfc3c18fa72790b61294e8b139aafe497e9acbc3aef4556b001bbab8189a6032b116a76e82d2bd36ba4c78f84 SHA512 8aa8bc4ab3bf426cab9e441489c0d537e51306ebef8a5fe2d26f7e6cb37599defd807ec140611c5d0fdc6e6a139ab84eb8d8a80bbbd43820b71bd8dd04863571 +EBUILD pyopencl-2021.2.5.ebuild 1405 BLAKE2B 68d74cea97af5cdaf30ab8ec8305410f1b9cb64bc5763429111c0a818e7da8ecad1de916779acc8f4a2ee0b1195205938d325a61cc5a55ec31eb0fe685d8742f SHA512 99ae298854a27a57682f2932b952d5e0b34f0c5a7056bccc06169a37421304bcd9e5a2232ddd730f83018a1f46a5e07ce7926bee7e51ff96f46b5019eb5a87d4 MISC metadata.xml 316 BLAKE2B 46de5d09541dbd7e1ae6cb3e46a87f0f7dde068ca48dfb4f8885b3f25a2c6ad258019a7585bc6dac42a01ce41292d5458aa7ba122fd81a1fe6f12307b0642966 SHA512 1ac69571c5ff5abb94dc68dc87d02d8675e12e120dedb0bece65a9cb81764f496a587e7345b43e8037f8d7ed6e269dfa276d8482ab42fdb4f3adda336570d703 diff --git a/dev-python/pyopencl/pyopencl-2021.2.5.ebuild b/dev-python/pyopencl/pyopencl-2021.2.5.ebuild new file mode 100644 index 000000000000..9c4b6ac92a78 --- /dev/null +++ b/dev-python/pyopencl/pyopencl-2021.2.5.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 + +DESCRIPTION="Python wrapper for OpenCL" +HOMEPAGE="https://mathema.tician.de/software/pyopencl/ + https://pypi.org/project/pyopencl/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="examples opengl" + +COMMON="dev-python/numpy[${PYTHON_USEDEP}] + >=virtual/opencl-2" +RDEPEND="${COMMON} + >=dev-python/appdirs-1.4.0[${PYTHON_USEDEP}] + dev-python/mako[${PYTHON_USEDEP}] + >=dev-python/pytools-2021.2.7[${PYTHON_USEDEP}]" +DEPEND="${COMMON} + dev-python/pybind11[${PYTHON_USEDEP}] + opengl? ( media-libs/libglvnd )" + +# The test suite fails if there are no OpenCL platforms available, and +# even if there is one (which requires the presence of both an OpenCL +# runtime *and* hardware supported by it - simply emerging any runtime +# is not enough) the vast majority of tests end up skipped because by +# default the portage user hasn't got sufficient privileges to talk +# to the GPU. +RESTRICT="test" + +python_configure_all() { + local myconf=() + if use opengl; then + myconf+=(--cl-enable-gl) + fi + + "${EPYTHON}" configure.py \ + "${myconf[@]}" +} + +python_install_all() { + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + + distutils-r1_python_install_all +} |