dev-python/moderngl-window: add 3.0.3, drop 2.4.6

Signed-off-by: Henri Gasc <gasc@eurecom.fr>
This commit is contained in:
Henri Gasc 2024-12-04 17:21:54 +01:00
parent 260548eb51
commit 0532f289f3
No known key found for this signature in database
GPG Key ID: 3C21DC7CC460006B
2 changed files with 17 additions and 12 deletions

View File

@ -1 +1 @@
DIST moderngl-window-2.4.6.gh.tar.gz 30982845 BLAKE2B bd831667b865bd97a82e070b9113d40d6e4fa7cd079684d3dfd171f4ad885e0af6ca77478dbc03b9208f937df3db529c7aa39ef97af3185ca2ff6cc40ea91c41 SHA512 bef9eaece117d2205609a62658c6195c65df2bb65f1f64825ada101d335dd4d71623fa3d155ff891d9d3f03e741d5132f0f53041fefeb329cd742135ca5dd9a2
DIST moderngl-window-3.0.3.gh.tar.gz 30985508 BLAKE2B 3930e0f21c1a51e6f2330ee372574e9c90d546bf8abbbee875bd116457cd8275fd869997c5ef1b47254181b7a8d4b7067e5e9632053d37eec31b93a9edbe105c SHA512 46342731f15a6ae093658f85087eb7fd3597445a19559802372b7c278e9071911af83c6044bf293a46ee2b4dc3cb10f4f2dcb50cdbfa6da701029e4204d2f3e8

View File

@ -11,9 +11,9 @@ DOCS_DEPEND="
"
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1 virtualx docs
inherit distutils-r1 virtualx docs optfeature
DESCRIPTION="A cross platform utility library for ModernGL"
HOMEPAGE="https://github.com/moderngl/moderngl-window https://pypi.org/project/moderngl-window"
@ -22,34 +22,39 @@ SRC_URI="https://github.com/moderngl/moderngl-window/archive/refs/tags/${PV}.tar
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="examples"
RDEPEND="
<dev-python/moderngl-6[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
dev-python/pyglet[${PYTHON_USEDEP}]
>=dev-python/pyrr-0.10[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
>=dev-python/pyglm-2.7.0[${PYTHON_USEDEP}]
<dev-python/pyglm-3[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/glcontext[${PYTHON_USEDEP}]
>=dev-python/PyWavefront-1.2.0[${PYTHON_USEDEP}]
<dev-python/PyWavefront-2[${PYTHON_USEDEP}]
>=dev-python/pywavefront-1.2.0[${PYTHON_USEDEP}]
<dev-python/pywavefront-2[${PYTHON_USEDEP}]
>=dev-python/trimesh-3.2.6[${PYTHON_USEDEP}]
)
"
DEPEND="${RDEPEND}"
python_install_all() {
default
if use examples; then
dodoc -r examples
docompress -x /usr/share/doc/${PF}/examples
fi
dodoc -r examples
docompress -x /usr/share/doc/${PF}/examples
}
distutils_enable_tests pytest
src_test() {
virtx distutils-r1_src_test
}
pkg_postinst() {
optfeature "supporting pygame as backend" dev-python/pygame
optfeature "supporting pysdl2 as backend" dev-python/pysdl2
optfeature "supporting GLFW as backend" dev-python/glfw
optfeature "supporting QT5 as backend" dev-python/pyqt5
optfeature "supporting PySide as backend" dev-python/pyside6
}