summaryrefslogtreecommitdiff
path: root/dev-python/pyglet
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-05-11 11:46:23 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-05-11 11:46:23 +0100
commit2046683958d0497bec1458741dc867558b69e622 (patch)
tree7e3b4eb74040f3fb955d11fe2db0ef9da77af912 /dev-python/pyglet
parent980af9d76d4b7d7541b41eeff427e5cbd5cf7ec3 (diff)
gentoo auto-resync : 11:05:2023 - 11:46:23
Diffstat (limited to 'dev-python/pyglet')
-rw-r--r--dev-python/pyglet/Manifest2
-rw-r--r--dev-python/pyglet/pyglet-2.0.7.ebuild82
2 files changed, 84 insertions, 0 deletions
diff --git a/dev-python/pyglet/Manifest b/dev-python/pyglet/Manifest
index 07a94165a795..72b8a598a1bb 100644
--- a/dev-python/pyglet/Manifest
+++ b/dev-python/pyglet/Manifest
@@ -1,5 +1,7 @@
DIST pyglet-2.0.5.gh.tar.gz 6174681 BLAKE2B 6f4f80cee2984148a7579ad02ff86e6cc1c151688ace0153cf3a518eba3004518f900b0297877a86278f4159c342f190d22702bf1ebcaa254c4bef19e1ac0844 SHA512 54bd6630a61606a02103a6ebc9deaba1b1716ff4acbc3418f33496cd238421f6c015affd925ed8f61107a70ba373fe9cc5f89ea3c1b4050f44513b56d28eb11d
DIST pyglet-2.0.6.gh.tar.gz 6187140 BLAKE2B 25402453f0f8aaa8c300d0bad201ca92f220604b4b3420f27947cd157065ece157993eebfeb142981ad187b62120b6df791a95e362bedd5cf6208fba64ab4d57 SHA512 f6382362d2c314e4a388252f0674ed9a4a976eeb4ef767946c1570948be77cc53bb1ffd9b4e5550a3c235b0e56206fce94fed48da09c06cb1a3ebced92ecbb7d
+DIST pyglet-2.0.7.gh.tar.gz 6187601 BLAKE2B 00bebe51d6e4f2971aaaead69d483234528ed676b3a2b273fe6ee3c0b997d61490b9be3218c5caf092c83fdb58fb39051fde843845e63965e8e6c3510f873a90 SHA512 e51c63e12cfb450ef5b0ef8f113b50fd9a7ccd20f9afe61ef487c47a42248d674ca3bd300d3300bf3bfd5f45a9a029017a9fbf8dd7231f8b58c4b7354a4715cb
EBUILD pyglet-2.0.5.ebuild 1934 BLAKE2B 1308f1f50e76978b15911b1d6dd1d17d52adf7bd7705648d33700ad1b1b55d6574b5f080a774d2ed3a1b43122d32c798bd905054fd0703cc79e6a0b3e80b8719 SHA512 ab72f4ca1db15be8a88ec52681e8c67aff46706601413de390ed0593c191ea921bd613505e9c671a8f764b64fa6a1a1e5e09f5abab5b2956669ce411b3898237
EBUILD pyglet-2.0.6.ebuild 1936 BLAKE2B 1b86802143e7d0a7e99e42c4ae96ad290daafbff36d9c4675e4df6221e5f3c1a7f56f3b45cfe8f1ea42120853b8c5e7eb29dccb9fe22fc5cc7befee394994be8 SHA512 9551df9fd0b0387b125d72b03d4a2ea45cd70ad880c4c206a8e61e0baf3798e81c7d5f9b1747b3561e91b428cfd300209c917bd2ff74d60dafd958b127845d88
+EBUILD pyglet-2.0.7.ebuild 1936 BLAKE2B 1b86802143e7d0a7e99e42c4ae96ad290daafbff36d9c4675e4df6221e5f3c1a7f56f3b45cfe8f1ea42120853b8c5e7eb29dccb9fe22fc5cc7befee394994be8 SHA512 9551df9fd0b0387b125d72b03d4a2ea45cd70ad880c4c206a8e61e0baf3798e81c7d5f9b1747b3561e91b428cfd300209c917bd2ff74d60dafd958b127845d88
MISC metadata.xml 1092 BLAKE2B 51abba6b5545fb47d277edaca91fda755e885f08a9407f5cd3d468c8b0b86991b57d8d151e27d59755ea884ae894ed0e5c32d357b0d81e66eb9054ca6fc92055 SHA512 7e47cc4c39ebf827bf46423251df994a65c2af8ada9420b36810e36f245bbd810796bc8b02cbce182ff071bbd9dae0c9e5d9f5cb201349cd49fa311b3891dc2f
diff --git a/dev-python/pyglet/pyglet-2.0.7.ebuild b/dev-python/pyglet/pyglet-2.0.7.ebuild
new file mode 100644
index 000000000000..984c63405699
--- /dev/null
+++ b/dev-python/pyglet/pyglet-2.0.7.ebuild
@@ -0,0 +1,82 @@
+# 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_{9..11} )
+
+inherit distutils-r1 virtualx xdg-utils
+
+DESCRIPTION="Cross-platform windowing and multimedia library for Python"
+HOMEPAGE="
+ https://pyglet.org/
+ https://github.com/pyglet/pyglet/
+ https://pypi.org/project/pyglet/
+"
+SRC_URI="https://github.com/pyglet/pyglet/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~riscv ~x86 ~amd64-linux ~x86-linux"
+IUSE="examples image +sound"
+
+BDEPEND="
+ test? (
+ dev-python/pillow[${PYTHON_USEDEP}]
+ media-libs/fontconfig
+ )
+"
+RDEPEND="
+ virtual/glu
+ virtual/opengl
+ image? ( || (
+ dev-python/pillow[${PYTHON_USEDEP}]
+ x11-libs/gtk+:2
+ ) )
+ sound? ( || (
+ media-libs/openal
+ media-sound/pulseaudio
+ ) )
+"
+# ffmpeg? ( media-libs/avbin-bin )
+
+distutils_enable_tests pytest
+
+src_test() {
+ virtx distutils-r1_src_test
+}
+
+python_test() {
+ xdg_environment_reset
+
+ local EPYTEST_DESELECT=(
+ # lacking device/server permissions
+ tests/unit/media/test_listener.py::test_openal_listener
+ tests/unit/media/test_listener.py::test_pulse_listener
+ # fragile to system load
+ tests/unit/media/test_player.py::PlayerTestCase::test_pause_resume
+ tests/unit/test_clock_freq.py::test_elapsed_time_between_tick
+ )
+ if [[ ${EPYTHON} == python3.11 ]]; then
+ EPYTEST_DESELECT+=(
+ # broken test
+ # https://github.com/pyglet/pyglet/issues/606
+ tests/unit/test_events.py::test_push_handlers_instance
+ )
+ fi
+
+ # Specify path to avoid running interactive tests
+ # We could add in integration tests, but they're slow
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ nonfatal epytest tests/unit || die "Tests failed with ${EPYTHON}"
+}
+
+python_install_all() {
+ if use examples; then
+ dodoc -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+
+ distutils-r1_python_install_all
+}