aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenri Gasc <gasc@eurecom.fr>2023-02-05 19:50:13 +0100
committerHenri Gasc <gasc@eurecom.fr>2023-02-05 22:06:19 +0100
commite5e1c98d9cfff1af9082c6acb9d44fd64de2a657 (patch)
treec54bb85268222f2d66c894dc491c966d4ec7375b /dev-python/moderngl
parentdev-python/ManimPango: new package, add 0.4.3 (diff)
downloadguru-e5e1c98d9cfff1af9082c6acb9d44fd64de2a657.tar.gz
guru-e5e1c98d9cfff1af9082c6acb9d44fd64de2a657.tar.bz2
guru-e5e1c98d9cfff1af9082c6acb9d44fd64de2a657.zip
dev-python/moderngl: new package, add 5.7.4
Signed-off-by: Henri Gasc <gasc@eurecom.fr>
Diffstat (limited to 'dev-python/moderngl')
-rw-r--r--dev-python/moderngl/Manifest1
-rw-r--r--dev-python/moderngl/metadata.xml12
-rw-r--r--dev-python/moderngl/moderngl-5.7.4.ebuild47
3 files changed, 60 insertions, 0 deletions
diff --git a/dev-python/moderngl/Manifest b/dev-python/moderngl/Manifest
new file mode 100644
index 000000000..b63830e75
--- /dev/null
+++ b/dev-python/moderngl/Manifest
@@ -0,0 +1 @@
+DIST v5.7.4.gh.tar.gz 2687476 BLAKE2B a71180f2e450eec248bc6388a30738902c0f035014e56b2af21ed0b8c797c579d9ccd0d971ca639dc6347cc986cd1f7e1e86a5a7f9ecdc639808963c17d1ea6c SHA512 a626a0c60809f468563462822570855943ecdb0bcde41e18483259defcd45d89b084719b5eabe6009b0fb823b8921af8fd9858cfd937f4d1fd12de21f03f9359
diff --git a/dev-python/moderngl/metadata.xml b/dev-python/moderngl/metadata.xml
new file mode 100644
index 000000000..cbb5ca898
--- /dev/null
+++ b/dev-python/moderngl/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'>
+<pkgmetadata>
+ <maintainer type="person">
+ <email>gasc@eurecom.fr</email>
+ <name>Gasc Henri</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">moderngl</remote-id>
+ <remote-id type="github">moderngl/moderngl</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/moderngl/moderngl-5.7.4.ebuild b/dev-python/moderngl/moderngl-5.7.4.ebuild
new file mode 100644
index 000000000..86e280104
--- /dev/null
+++ b/dev-python/moderngl/moderngl-5.7.4.ebuild
@@ -0,0 +1,47 @@
+# Copyright 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
+
+DESCRIPTION="Modern OpenGL binding for python"
+HOMEPAGE="https://github.com/moderngl/moderngl https://pypi.org/project/moderngl"
+SRC_URI="https://github.com/moderngl/moderngl/archive/refs/tags/${PV}.tar.gz -> v${PV}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND=""
+BDEPEND="
+ x11-libs/libX11
+ media-libs/libglvnd[X]
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/wheel[${PYTHON_USEDEP}]
+ test? (
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/scipy[${PYTHON_USEDEP}]
+ dev-python/pycodestyle[${PYTHON_USEDEP}]
+ dev-python/glcontext[${PYTHON_USEDEP}]
+ )
+"
+DEPEND="${BDEPEND}"
+
+# Tests are deactivated because we cannot open display
+# distutils_enable_tests pytest
+# python_test() {
+# cd "${T}" || die
+# epytest "${S}"/tests
+# }
+
+pkg_postinst() {
+ use test && ewarn The tests for this package are deactivated because the test display can not be opened.
+ use test && ewarn If you know how to solve this issue, please do so.
+}