1 |
commit: 271ccf11f2a6af294c41f01e27decd1da00cb8f5 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 4 14:19:26 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 4 14:21:46 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=271ccf11 |
7 |
|
8 |
dev-python/pgzero: enable py3.10, cleanup ebuild |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/pgzero/pgzero-1.2.1-r1.ebuild | 19 +++++++++++-------- |
13 |
1 file changed, 11 insertions(+), 8 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/pgzero/pgzero-1.2.1-r1.ebuild b/dev-python/pgzero/pgzero-1.2.1-r1.ebuild |
16 |
index abeeb71b78e..fe32cc7764f 100644 |
17 |
--- a/dev-python/pgzero/pgzero-1.2.1-r1.ebuild |
18 |
+++ b/dev-python/pgzero/pgzero-1.2.1-r1.ebuild |
19 |
@@ -3,16 +3,18 @@ |
20 |
|
21 |
EAPI=8 |
22 |
|
23 |
-PYTHON_COMPAT=( python3_{8,9} ) |
24 |
+PYTHON_COMPAT=( python3_{8..10} ) |
25 |
|
26 |
inherit distutils-r1 |
27 |
-distutils_enable_tests unittest |
28 |
|
29 |
MY_PV="${PV/_p/.post}" |
30 |
MY_P="${PN}-${MY_PV}" |
31 |
+ |
32 |
DESCRIPTION="A zero-boilerplate games programming framework based on Pygame" |
33 |
HOMEPAGE="https://pygame-zero.readthedocs.io/" |
34 |
SRC_URI="https://github.com/lordmauve/${PN}/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" |
35 |
+S="${WORKDIR}/${MY_P}" |
36 |
+ |
37 |
LICENSE="LGPL-3" |
38 |
SLOT="0" |
39 |
KEYWORDS="~amd64" |
40 |
@@ -22,15 +24,16 @@ RDEPEND=" |
41 |
dev-python/pygame[${PYTHON_USEDEP}] |
42 |
" |
43 |
|
44 |
-DEPEND=" |
45 |
- ${RDEPEND} |
46 |
+BDEPEND=" |
47 |
test? ( |
48 |
media-libs/sdl2-image[png] |
49 |
media-libs/sdl2-mixer[vorbis] |
50 |
) |
51 |
" |
52 |
+distutils_enable_tests unittest |
53 |
|
54 |
-S="${WORKDIR}/${MY_P}" |
55 |
- |
56 |
-# Allow the tests to pass without real audio or video. |
57 |
-export SDL_AUDIODRIVER=dummy SDL_VIDEODRIVER=dummy |
58 |
+python_test() { |
59 |
+ # Allow the tests to pass without real audio or video. |
60 |
+ local -x SDL_AUDIODRIVER=dummy SDL_VIDEODRIVER=dummy |
61 |
+ eunittest |
62 |
+} |