Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyglet/
Date: Sun, 02 Aug 2020 19:05:34
Message-Id: 1596394729.c19d66734a962a9c8deb9b7ad74f98806e4e0285.sam@gentoo
1 commit: c19d66734a962a9c8deb9b7ad74f98806e4e0285
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 2 18:58:49 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 2 18:58:49 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c19d6673
7
8 dev-python/pyglet: bump to 1.5.7
9
10 * Add Python 3.9
11 * Unrestrict tests (passing here)
12 * Run only unit tests (others: interactive, integration)
13 (Interactive are a no-go for policy and obvious reasons,
14 while the integration tests are slow.)
15
16 Package-Manager: Portage-3.0.1, Repoman-2.3.23
17 Signed-off-by: Sam James <sam <AT> gentoo.org>
18
19 dev-python/pyglet/Manifest | 1 +
20 dev-python/pyglet/pyglet-1.5.7.ebuild | 61 +++++++++++++++++++++++++++++++++++
21 2 files changed, 62 insertions(+)
22
23 diff --git a/dev-python/pyglet/Manifest b/dev-python/pyglet/Manifest
24 index 6f893d1c4e0..3d5bd72bdd1 100644
25 --- a/dev-python/pyglet/Manifest
26 +++ b/dev-python/pyglet/Manifest
27 @@ -1,2 +1,3 @@
28 DIST pyglet-1.2.4.tar.gz 2122017 BLAKE2B 6e5e24ec78e24b9a9c8e9627791ede93d740c1af7af0176c6f75409c76981fa16752bbe14c9b5ec871438f5468b3587e7ce12194241d94ab3731d46cbbe395f1 SHA512 70cd781936db8c8c156499e524ee73520bc90c19461074264abd62a4854307ef090af5faba521686f247fb4cbee552a428892f59a5b382429acfc000f4c2e22d
29 DIST pyglet-1.5.3.tar.gz 6356079 BLAKE2B 517b196eff334d572d4db181ce0480c3af8e2bc4a92e23e1fd7c335aedebe3afa493eb3f4745d8daffc3c7d930b9e333075014d2ba5d4303f4691c490a09f252 SHA512 12e7189272b9ab3b4bd3d713d0e979cfc1d76200fc8454b31573fca29b179f99242c34a1adb7a1c2fabb7b950cc3006cfcd8b188eb2c50ae95cca95b0e15582c
30 +DIST pyglet-1.5.7.tar.gz 6367378 BLAKE2B 68d4aa673a7463f7da0f4ccb7f413b602f32ecc423438326fc4262a4449fe22dff25a513074611ce2c77c130dfe9cc29e44e54a95169875208731f70803f1a45 SHA512 2c2a06636b1db788241028d1ef2290a774b98721ccc92ceed2b2895bcee81d4aa72b2111896091b54531936513772505b0d43003e412735d606130ed4b08f8c9
31
32 diff --git a/dev-python/pyglet/pyglet-1.5.7.ebuild b/dev-python/pyglet/pyglet-1.5.7.ebuild
33 new file mode 100644
34 index 00000000000..c9b51798015
35 --- /dev/null
36 +++ b/dev-python/pyglet/pyglet-1.5.7.ebuild
37 @@ -0,0 +1,61 @@
38 +# Copyright 1999-2020 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=7
42 +
43 +PYTHON_COMPAT=( python3_{7,8,9} )
44 +
45 +inherit distutils-r1 virtualx xdg-utils
46 +
47 +DESCRIPTION="Cross-platform windowing and multimedia library for Python"
48 +HOMEPAGE="http://www.pyglet.org/"
49 +SRC_URI="https://github.com/pyglet/pyglet/archive/v${PV}.tar.gz -> ${P}.tar.gz"
50 +
51 +LICENSE="BSD"
52 +SLOT="0"
53 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
54 +IUSE="examples image +sound"
55 +
56 +BDEPEND="
57 + test? (
58 + dev-python/pillow[${PYTHON_USEDEP}]
59 + dev-python/gst-python[${PYTHON_USEDEP}]
60 + )
61 +"
62 +RDEPEND="
63 + virtual/opengl
64 + image? ( || (
65 + dev-python/pillow[${PYTHON_USEDEP}]
66 + x11-libs/gtk+:2
67 + ) )
68 + sound? ( || (
69 + media-libs/openal
70 + media-sound/pulseaudio
71 + ) )
72 +"
73 +# ffmpeg? ( media-libs/avbin-bin )
74 +
75 +DOCS=( DESIGN NOTICE README.md RELEASE_NOTES )
76 +
77 +distutils_enable_tests pytest
78 +
79 +src_test() {
80 + virtx distutils-r1_src_test
81 +}
82 +
83 +python_test() {
84 + xdg_environment_reset
85 +
86 + # Specify path to avoid running interactive tests
87 + # We could add in integration tests, but they're slow
88 + pytest -vv tests/unit || die "Tests failed with ${EPYTHON}"
89 +}
90 +
91 +python_install_all() {
92 + if use examples; then
93 + dodoc -r examples
94 + docompress -x /usr/share/doc/${PF}/examples
95 + fi
96 +
97 + distutils-r1_python_install_all
98 +}