dev-python/moderngl-window: add 2.4.5, drop 2.4.4

Signed-off-by: Henri Gasc <gasc@eurecom.fr>
This commit is contained in:
Henri Gasc
2024-03-12 18:24:35 +01:00
parent 3fcbbad074
commit 02ee6bb432
3 changed files with 57 additions and 81 deletions

View File

@@ -1 +1 @@
DIST moderngl-window-2.4.4.gh.tar.gz 30989161 BLAKE2B 9c4c8bea6a69cf0df4e5967f28be8766c89206a2a9315f86f8b1c4fb2dd30dfddaac82a40cf28bcf6e2337811135daf389367fe8eefbfb7b93c61f1de1db6406 SHA512 8c8f027c2be4d9acfed3ac0f299e0d27bd0a0f2b7ad7f87d5309c276fa3a8ff4afd417e94f808a22a8ff683ae2465aba6a8d09dc07d621dff2b9f8606ceb3ccd
DIST moderngl-window-2.4.5.gh.tar.gz 30982181 BLAKE2B 784cdbd1c5a8cb1bee3387e80c0e3663135997a40498325d5b7f9c58092cc1c4813d26b1aad756e6364f97f7742da39a16e8b7bb4cb368de019aa00ad6c3b438 SHA512 4305951d9753696ad2caa259af52c45eda8e02fee061d45cd364899942d2d00cf9ba23b8193a5a52e249f88da21df260efcd49e5f756f3743fdfbcf70144d405

View File

@@ -1,80 +0,0 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1 virtualx
DESCRIPTION="A cross platform utility library for ModernGL"
HOMEPAGE="https://github.com/moderngl/moderngl-window https://pypi.org/project/moderngl-window"
SRC_URI="https://github.com/moderngl/moderngl-window/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc examples"
NEEDED_FOR_TESTS_AND_RUN="
>dev-python/numpy-1.16[${PYTHON_USEDEP}]
>=dev-python/PyWavefront-1.2.0[${PYTHON_USEDEP}]
<dev-python/PyWavefront-2[${PYTHON_USEDEP}]
>=dev-python/scipy-1.3.2[${PYTHON_USEDEP}]
>=dev-python/trimesh-3.2.6[${PYTHON_USEDEP}]
"
RDEPEND="
dev-python/glfw[${PYTHON_USEDEP}]
dev-python/imgui[glfw,sdl,opengl,${PYTHON_USEDEP}]
<dev-python/moderngl-6[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
>=dev-python/pygame-2.0.1[${PYTHON_USEDEP}]
dev-python/pyglet[${PYTHON_USEDEP}]
>=dev-python/pyopengl-3.1.0[${PYTHON_USEDEP},tk]
<dev-python/PyQt5-6[${PYTHON_USEDEP}]
>=dev-python/pyrr-0.10[${PYTHON_USEDEP}]
<dev-python/PySDL2-1[${PYTHON_USEDEP}]
<dev-python/pyside2-6[${PYTHON_USEDEP}]
${NEEDED_FOR_TESTS_AND_RUN}
"
BDEPEND="
test? (
dev-python/coverage[${PYTHON_USEDEP}]
dev-python/glcontext[${PYTHON_USEDEP}]
${NEEDED_FOR_TESTS_AND_RUN}
)
doc? (
<dev-python/moderngl-6[${PYTHON_USEDEP}]
>dev-python/numpy-1.16[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
>=dev-python/pyrr-0.10[${PYTHON_USEDEP}]
dev-python/sphinx[${PYTHON_USEDEP}]
dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}]
)
"
DEPEND="${RDEPEND}"
python_compile_all() {
if use doc; then
find "${S}/docs" -type f -exec sed -i 's/sphinxcontrib.napoleon/sphinx\.ext\.napoleon/g' {} \;
emake man -C docs
fi
}
python_install_all() {
distutils-r1_python_install_all
use doc && doman "${S}/docs/_build/man/${PN}.1"
if use examples; then
dodoc -r examples
docompress -x /usr/share/doc/${PF}/examples
fi
}
distutils_enable_tests pytest
src_test() {
virtx distutils-r1_src_test
}

View File

@@ -0,0 +1,56 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DOCS_BUILDER="sphinx"
DOCS_DIR="docs"
DOCS_DEPEND="
dev-python/moderngl
dev-python/sphinx-rtd-theme
"
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 virtualx docs
DESCRIPTION="A cross platform utility library for ModernGL"
HOMEPAGE="https://github.com/moderngl/moderngl-window https://pypi.org/project/moderngl-window"
SRC_URI="https://github.com/moderngl/moderngl-window/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
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}]
"
BDEPEND="
test? (
dev-python/glcontext[${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
}
distutils_enable_tests pytest
src_test() {
virtx distutils-r1_src_test
}