Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/pysolfc/, games-board/pysolfc/files/
Date: Wed, 02 Dec 2020 23:15:07
Message-Id: 1606950893.011fef8d02e4a57c26002779b35c75ed39c0248e.sam@gentoo
1 commit: 011fef8d02e4a57c26002779b35c75ed39c0248e
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 2 23:14:48 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 2 23:14:53 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=011fef8d
7
8 games-board/pysolfc: add Python 3.8, 3.9
9
10 Package-Manager: Portage-3.0.9, Repoman-3.0.2
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 games-board/pysolfc/files/pysolfc-2.6.4-python38.patch | 13 +++++++++++++
14 games-board/pysolfc/pysolfc-2.6.4-r1.ebuild | 3 ++-
15 2 files changed, 15 insertions(+), 1 deletion(-)
16
17 diff --git a/games-board/pysolfc/files/pysolfc-2.6.4-python38.patch b/games-board/pysolfc/files/pysolfc-2.6.4-python38.patch
18 new file mode 100644
19 index 00000000000..9a857f3b266
20 --- /dev/null
21 +++ b/games-board/pysolfc/files/pysolfc-2.6.4-python38.patch
22 @@ -0,0 +1,13 @@
23 +diff --git a/pysollib/mfxutil.py b/pysollib/mfxutil.py
24 +index f461ed1..c71a61f 100644
25 +--- a/pysollib/mfxutil.py
26 ++++ b/pysollib/mfxutil.py
27 +@@ -143,7 +143,7 @@ def getprefdir(package):
28 +
29 +
30 + # high resolution clock() and sleep()
31 +-uclock = time.clock
32 ++uclock = time.process_time
33 + usleep = time.sleep
34 + if os.name == "posix":
35 + uclock = time.time
36
37 diff --git a/games-board/pysolfc/pysolfc-2.6.4-r1.ebuild b/games-board/pysolfc/pysolfc-2.6.4-r1.ebuild
38 index 1ecc1b59d1e..146e92428c9 100644
39 --- a/games-board/pysolfc/pysolfc-2.6.4-r1.ebuild
40 +++ b/games-board/pysolfc/pysolfc-2.6.4-r1.ebuild
41 @@ -3,7 +3,7 @@
42
43 EAPI=7
44
45 -PYTHON_COMPAT=( python3_{6,7} )
46 +PYTHON_COMPAT=( python3_{6,7,8,9} )
47 DISTUTILS_SINGLE_IMPL=1
48 PYTHON_REQ_USE="tk"
49
50 @@ -44,6 +44,7 @@ RDEPEND="
51 PATCHES=(
52 "${FILESDIR}/${PN}-gentoo.patch" #591904
53 "${FILESDIR}/${PN}-locales.patch"
54 + "${FILESDIR}/${P}-python38.patch"
55 )
56
57 python_prepare_all() {