summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2020-12-02 23:14:48 +0000
committerSam James <sam@gentoo.org>2020-12-02 23:14:53 +0000
commit011fef8d02e4a57c26002779b35c75ed39c0248e (patch)
treeda65f70bbf2f5f935c9154bdfbfa3bd68ec90126
parentdev-python/requests-file: add py3_{8,9}. Fix DISTUTILS (diff)
downloadgentoo-011fef8d02e4a57c26002779b35c75ed39c0248e.tar.gz
gentoo-011fef8d02e4a57c26002779b35c75ed39c0248e.tar.bz2
gentoo-011fef8d02e4a57c26002779b35c75ed39c0248e.zip
games-board/pysolfc: add Python 3.8, 3.9
Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--games-board/pysolfc/files/pysolfc-2.6.4-python38.patch13
-rw-r--r--games-board/pysolfc/pysolfc-2.6.4-r1.ebuild3
2 files changed, 15 insertions, 1 deletions
diff --git a/games-board/pysolfc/files/pysolfc-2.6.4-python38.patch b/games-board/pysolfc/files/pysolfc-2.6.4-python38.patch
new file mode 100644
index 000000000000..9a857f3b266b
--- /dev/null
+++ b/games-board/pysolfc/files/pysolfc-2.6.4-python38.patch
@@ -0,0 +1,13 @@
+diff --git a/pysollib/mfxutil.py b/pysollib/mfxutil.py
+index f461ed1..c71a61f 100644
+--- a/pysollib/mfxutil.py
++++ b/pysollib/mfxutil.py
+@@ -143,7 +143,7 @@ def getprefdir(package):
+
+
+ # high resolution clock() and sleep()
+-uclock = time.clock
++uclock = time.process_time
+ usleep = time.sleep
+ if os.name == "posix":
+ uclock = time.time
diff --git a/games-board/pysolfc/pysolfc-2.6.4-r1.ebuild b/games-board/pysolfc/pysolfc-2.6.4-r1.ebuild
index 1ecc1b59d1e2..146e92428c92 100644
--- a/games-board/pysolfc/pysolfc-2.6.4-r1.ebuild
+++ b/games-board/pysolfc/pysolfc-2.6.4-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python3_{6,7} )
+PYTHON_COMPAT=( python3_{6,7,8,9} )
DISTUTILS_SINGLE_IMPL=1
PYTHON_REQ_USE="tk"
@@ -44,6 +44,7 @@ RDEPEND="
PATCHES=(
"${FILESDIR}/${PN}-gentoo.patch" #591904
"${FILESDIR}/${PN}-locales.patch"
+ "${FILESDIR}/${P}-python38.patch"
)
python_prepare_all() {