commit:     d4cce00ef2dad2612e88104f72e046340b48b5ba
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  8 06:48:43 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov  8 06:54:41 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4cce00e

dev-python/pyglet: Bump to 2.1.11

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pyglet/Manifest             |  1 +
 dev-python/pyglet/pyglet-2.1.11.ebuild | 80 ++++++++++++++++++++++++++++++++++
 2 files changed, 81 insertions(+)

diff --git a/dev-python/pyglet/Manifest b/dev-python/pyglet/Manifest
index 2dc62fb9fc66..0a0ab108641e 100644
--- a/dev-python/pyglet/Manifest
+++ b/dev-python/pyglet/Manifest
@@ -1,2 +1,3 @@
 DIST pyglet-2.1.10.tar.gz 6594138 BLAKE2B 
3b7f00605084856caee4bcde7d8f857b3a0287946c912673965d4451873684d599226440a7cdd6e1f4535cda8bb6feb190450dc94150900244e7cdcbbe831a96
 SHA512 
b07fa44285982a537ae4616dd8b36e5a4743014ea1d0f0f5317d4222ab6867cc37007973806eb6bada194ff5d8cce8cc057ee0c69afda31f48f3a163845c6004
+DIST pyglet-2.1.11.tar.gz 6594448 BLAKE2B 
7fc10e9e2ebfd6b122fb6414aca7f4c1abddef1ef1d36ee3724a03b5f604ba4b537455c02cf7db02f95ac81b180b7f12900ba94e7beec264906c8b6c857f5711
 SHA512 
72a5fdc2f43cd3104f41831f7aaf7b66c4411c51db4d03b87c97706ec72756dfc441f1ab6c950030d5b4b5ee92cb7ebc16eca3e4f6a4c43e7e78636e511bfc47
 DIST pyglet-2.1.9.tar.gz 6593094 BLAKE2B 
0af2ec4b4f7414a644555268b04f71b99fb157c65c8f2d961490676c9182aec524be82397589cb113972197f8bc94a0b00f234732d9559ba4ff85c6ed3b23bf3
 SHA512 
1d865ee8145245e2afb41aa40c7b4d938ca4b092b02b57480b3d375991428de222016bafaa7111b765e2dd20f4155d962582fb6978a1c7f5e1532c23431dbfcb

diff --git a/dev-python/pyglet/pyglet-2.1.11.ebuild 
b/dev-python/pyglet/pyglet-2.1.11.ebuild
new file mode 100644
index 000000000000..35fbf447c975
--- /dev/null
+++ b/dev-python/pyglet/pyglet-2.1.11.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=flit
+PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
+
+inherit distutils-r1 pypi virtualx xdg-utils
+
+MY_P=${P/_/.}
+DESCRIPTION="Cross-platform windowing and multimedia library for Python"
+HOMEPAGE="
+       https://pyglet.org/
+       https://github.com/pyglet/pyglet/
+       https://pypi.org/project/pyglet/
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
+IUSE="examples image +sound"
+
+RDEPEND="
+       virtual/glu
+       virtual/opengl
+       image? (
+               || (
+                       dev-python/pillow[${PYTHON_USEDEP}]
+                       x11-libs/gtk+:2
+               )
+       )
+       sound? (
+               || (
+                       media-libs/libpulse
+                       media-libs/openal
+               )
+       )
+"
+#      ffmpeg? ( media-libs/avbin-bin )
+BDEPEND="
+       test? (
+               dev-python/pillow[${PYTHON_USEDEP}]
+               media-libs/fontconfig
+               x11-base/xorg-server[-minimal]
+       )
+"
+
+EPYTEST_PLUGINS=()
+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
+       )
+
+       # Specify path to avoid running interactive tests
+       # We could add in integration tests, but they're slow
+       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
+}

Reply via email to