1 |
commit: adbf3f7426e8fe72c85aec000fae1b8d6ef9df11 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 4 14:11:52 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=adbf3f74 |
7 |
|
8 |
dev-python/pygame: enable py3.10 |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/pygame/pygame-2.0.1-r1.ebuild | 7 ++++++- |
13 |
dev-python/pygame/pygame-9999.ebuild | 5 +++-- |
14 |
2 files changed, 9 insertions(+), 3 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/pygame/pygame-2.0.1-r1.ebuild b/dev-python/pygame/pygame-2.0.1-r1.ebuild |
17 |
index 9fc9d5a9db7..b8c0c5f73b5 100644 |
18 |
--- a/dev-python/pygame/pygame-2.0.1-r1.ebuild |
19 |
+++ b/dev-python/pygame/pygame-2.0.1-r1.ebuild |
20 |
@@ -2,7 +2,8 @@ |
21 |
# Distributed under the terms of the GNU General Public License v2 |
22 |
|
23 |
EAPI=7 |
24 |
-PYTHON_COMPAT=( python3_{7..9} ) |
25 |
+ |
26 |
+PYTHON_COMPAT=( python3_{8..10} ) |
27 |
|
28 |
inherit distutils-r1 |
29 |
|
30 |
@@ -51,6 +52,10 @@ src_prepare() { |
31 |
if ! use midi; then |
32 |
rm test/midi_test.py || die |
33 |
fi |
34 |
+ # Fixed in next release |
35 |
+ sed -e 's/++Py_REFCNT/Py_INCREF/' \ |
36 |
+ -e 's/--Py_REFCNT/Py_DECREF/' \ |
37 |
+ -i src_c/_sdl2/*.c || die |
38 |
distutils-r1_src_prepare |
39 |
} |
40 |
|
41 |
|
42 |
diff --git a/dev-python/pygame/pygame-9999.ebuild b/dev-python/pygame/pygame-9999.ebuild |
43 |
index 8d4ba88cd46..7207ee8e45a 100644 |
44 |
--- a/dev-python/pygame/pygame-9999.ebuild |
45 |
+++ b/dev-python/pygame/pygame-9999.ebuild |
46 |
@@ -1,8 +1,9 @@ |
47 |
-# Copyright 1999-2020 Gentoo Authors |
48 |
+# Copyright 1999-2021 Gentoo Authors |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
|
51 |
EAPI=7 |
52 |
-PYTHON_COMPAT=( python3_{7..9} ) |
53 |
+ |
54 |
+PYTHON_COMPAT=( python3_{8..10} ) |
55 |
|
56 |
inherit distutils-r1 git-r3 |