1 |
commit: d6edad17e87ed4aeaa5c6a14828c5fadbba03bc3 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 3 04:25:43 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 3 05:32:52 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6edad17 |
7 |
|
8 |
dev-python/pyglet: Bump to 2.0.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pyglet/Manifest | 1 + |
13 |
dev-python/pyglet/pyglet-2.0.0.ebuild | 81 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 82 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pyglet/Manifest b/dev-python/pyglet/Manifest |
17 |
index 883c40eb0f44..d99516946ea9 100644 |
18 |
--- a/dev-python/pyglet/Manifest |
19 |
+++ b/dev-python/pyglet/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST pyglet-1.5.26.tar.gz 6534434 BLAKE2B a4366390f4ed92ed9e6c2d362fd8a009adf0e8a21ca00e1b9fead3cba99d192bb007413eca36892433f3bc4e2bf3258c550b2827262fc70e87b20566d46acb15 SHA512 819b2bbf71c9c632c1cefbb31e2a7186905c1475a1e978cd75dd6c019e5a53e6af79bceb57c68b61a3bb5692e04091c89c67b9168bb76ee19009c1ab719b8530 |
22 |
DIST pyglet-1.5.27.gh.tar.gz 6532179 BLAKE2B f1dc668530a69e275860befe11f4c86003c5de2dadede706df7abac9eb6fb1729ea030c7053f0149926f3ffdd12985d9abea4afac65de3b6b7541fe871eda369 SHA512 98896dab06873cbf3cdd0d4015cb0b9e062cffb1110908bd422ecdc4f0e16943adc8a4986e7dbfdae4392e82ac115bad6f937896e166989ad2c4d73a0f45c8be |
23 |
+DIST pyglet-2.0.0.gh.tar.gz 6201132 BLAKE2B e72436804688e9022f0efc7da7fac5eb31ed2d35632612149b52431167db98f1d2e8bc3824ef6bd69851a8bf609d5098ea5f5c77aa7bcf5a527457c62ed47586 SHA512 2dde724f0b5f284d0094109a7077464ac4ec76ea905c91ddc096032ac849ee9720ee36926e9f11969169906c7e45580789001dfc657edc2e737ad116c48c588a |
24 |
|
25 |
diff --git a/dev-python/pyglet/pyglet-2.0.0.ebuild b/dev-python/pyglet/pyglet-2.0.0.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..04ea35c2986c |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pyglet/pyglet-2.0.0.ebuild |
30 |
@@ -0,0 +1,81 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+DISTUTILS_USE_PEP517=setuptools |
37 |
+PYTHON_COMPAT=( python3_{8..11} ) |
38 |
+ |
39 |
+inherit distutils-r1 virtualx xdg-utils |
40 |
+ |
41 |
+DESCRIPTION="Cross-platform windowing and multimedia library for Python" |
42 |
+HOMEPAGE=" |
43 |
+ https://pyglet.org/ |
44 |
+ https://github.com/pyglet/pyglet/ |
45 |
+ https://pypi.org/project/pyglet/ |
46 |
+" |
47 |
+SRC_URI="https://github.com/pyglet/pyglet/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" |
48 |
+ |
49 |
+LICENSE="BSD" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux" |
52 |
+IUSE="examples image +sound" |
53 |
+ |
54 |
+BDEPEND=" |
55 |
+ test? ( |
56 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
57 |
+ media-libs/fontconfig |
58 |
+ ) |
59 |
+" |
60 |
+RDEPEND=" |
61 |
+ virtual/glu |
62 |
+ virtual/opengl |
63 |
+ image? ( || ( |
64 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
65 |
+ x11-libs/gtk+:2 |
66 |
+ ) ) |
67 |
+ sound? ( || ( |
68 |
+ media-libs/openal |
69 |
+ media-sound/pulseaudio |
70 |
+ ) ) |
71 |
+" |
72 |
+# ffmpeg? ( media-libs/avbin-bin ) |
73 |
+ |
74 |
+distutils_enable_tests pytest |
75 |
+ |
76 |
+src_test() { |
77 |
+ virtx distutils-r1_src_test |
78 |
+} |
79 |
+ |
80 |
+python_test() { |
81 |
+ xdg_environment_reset |
82 |
+ |
83 |
+ local EPYTEST_DESELECT=( |
84 |
+ # lacking device/server permissions |
85 |
+ tests/unit/media/test_listener.py::test_openal_listener |
86 |
+ tests/unit/media/test_listener.py::test_pulse_listener |
87 |
+ # fragile to load |
88 |
+ tests/unit/test_clock_freq.py::test_elapsed_time_between_tick |
89 |
+ ) |
90 |
+ if [[ ${EPYTHON} == python3.11 ]]; then |
91 |
+ EPYTEST_DESELECT+=( |
92 |
+ # broken test |
93 |
+ # https://github.com/pyglet/pyglet/issues/606 |
94 |
+ tests/unit/test_events.py::test_push_handlers_instance |
95 |
+ ) |
96 |
+ fi |
97 |
+ |
98 |
+ # Specify path to avoid running interactive tests |
99 |
+ # We could add in integration tests, but they're slow |
100 |
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 |
101 |
+ nonfatal epytest tests/unit || die "Tests failed with ${EPYTHON}" |
102 |
+} |
103 |
+ |
104 |
+python_install_all() { |
105 |
+ if use examples; then |
106 |
+ dodoc -r examples |
107 |
+ docompress -x /usr/share/doc/${PF}/examples |
108 |
+ fi |
109 |
+ |
110 |
+ distutils-r1_python_install_all |
111 |
+} |