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