From 011fef8d02e4a57c26002779b35c75ed39c0248e Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 2 Dec 2020 23:14:48 +0000 Subject: games-board/pysolfc: add Python 3.8, 3.9 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Sam James --- games-board/pysolfc/files/pysolfc-2.6.4-python38.patch | 13 +++++++++++++ games-board/pysolfc/pysolfc-2.6.4-r1.ebuild | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 games-board/pysolfc/files/pysolfc-2.6.4-python38.patch (limited to 'games-board') 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() { -- cgit v1.2.3-65-gdbad