dev-python/pyopengl-accelerate: Bump to 3.1.9

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-01-20 06:30:54 +01:00
parent e91969d7a5
commit acb105fd38
2 changed files with 57 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST pyopengl-release-3.1.8.gh.tar.gz 3599436 BLAKE2B 7f33345d68d66d3cc81278eaa5f54298694f41f40583ee08a1f9f677705fb4414b6b2afbcd7b9345199b5f573478bfeba050e185b6534cbb19b45cb25c241b47 SHA512 d95014a36bd889fa014043e4640ba7f319bb996cb56e5f7086ee05d39c53d3928512d52b0ce181d7c144775a4da7eff7403cada0f91f23f56a699a1b023e00e6
DIST pyopengl_accelerate-3.1.9.tar.gz 21799 BLAKE2B cf0a69d55dd1971fcd91d147e71035e3a59c55dbbf10eb2ae6d5e8e78ac932632a4867c4762ea56be5e79afa0c25b4e3d313557e6b3e1f4fcc3553df12096fce SHA512 a6e4dc2ee88f2133e02384113fa7947f9a30bd2b0dff5905c29fe46b346ba7e61b2d4dc2d598901524f46560025026d5163f750be0a2b58864b3863fa7179fcf

View File

@@ -0,0 +1,56 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1 pypi
DESCRIPTION="Accelerate module for PyOpenGL"
HOMEPAGE="
https://pyopengl.sourceforge.net/
https://github.com/mcfletch/pyopengl/
https://pypi.org/project/PyOpenGL-accelerate/
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="numpy"
DEPEND="
numpy? (
dev-python/numpy:=[${PYTHON_USEDEP}]
)
"
RDEPEND="
${DEPEND}
dev-python/pyopengl[${PYTHON_USEDEP}]
"
BDEPEND="
dev-python/cython[${PYTHON_USEDEP}]
"
distutils_enable_tests pytest
src_configure() {
if ! use numpy; then
cat > "${T}"/numpy.py <<-EOF || die
raise ImportError("building numpy extension disabled")
EOF
fi
}
python_compile() {
local -x PYTHONPATH=${T}:${PYTHONPATH}
distutils-r1_python_compile
}
python_test() {
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
cd "${T}" || die
epytest "${S}"/tests
}