commit: 51fc11f34550b7a4002669bfca90c52aa9541249 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> AuthorDate: Wed Aug 19 15:11:28 2020 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Wed Aug 19 15:14:27 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51fc11f3
games-util/nml: fix python3.8 support Bug: https://bugs.gentoo.org/737952 Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> games-util/nml/files/nml-0.4.5-python38.patch | 37 +++++++++++++++++++++++++++ games-util/nml/nml-0.4.5-r2.ebuild | 1 + 2 files changed, 38 insertions(+) diff --git a/games-util/nml/files/nml-0.4.5-python38.patch b/games-util/nml/files/nml-0.4.5-python38.patch new file mode 100644 index 00000000000..526a2e19f26 --- /dev/null +++ b/games-util/nml/files/nml-0.4.5-python38.patch @@ -0,0 +1,37 @@ +From 5b8764c3c4079941fab7be8d9086c38a88ae09ba Mon Sep 17 00:00:00 2001 +From: glx22 <gl...@users.noreply.github.com> +Date: Sun, 20 Oct 2019 11:05:25 +0200 +Subject: [PATCH] Fix #52: time.clock() has been removed in python 3.8 (#53) + +--- + nml/generic.py | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/nml/generic.py b/nml/generic.py +index ce064b6c..8ee602f1 100644 +--- a/nml/generic.py ++++ b/nml/generic.py +@@ -295,7 +295,7 @@ def clear_progress(): + hide_progress() + + if (progress_message is not None) and (verbosity_level >= VERBOSITY_TIMING): +- print("{} {:.1f} s".format(progress_message, time.clock() - progress_start_time)) ++ print("{} {:.1f} s".format(progress_message, time.process_time() - progress_start_time)) + + progress_message = None + progress_start_time = None +@@ -324,12 +324,12 @@ def print_progress(msg, incremental = False): + progress_message = msg + + if incremental: +- t = time.clock() ++ t = time.process_time() + if (progress_update_time is not None) and (t - progress_update_time < 1): + return + progress_update_time = t + else: +- progress_start_time = time.clock() ++ progress_start_time = time.process_time() + + print_eol(msg) + diff --git a/games-util/nml/nml-0.4.5-r2.ebuild b/games-util/nml/nml-0.4.5-r2.ebuild index 7627ddc1e89..3588cfc60e8 100644 --- a/games-util/nml/nml-0.4.5-r2.ebuild +++ b/games-util/nml/nml-0.4.5-r2.ebuild @@ -31,6 +31,7 @@ PATCHES=( "${FILESDIR}"/${PN}-0.4.4-pillow3.patch "${FILESDIR}"/${PN}-0.4.5-pillow6.patch "${FILESDIR}"/${PN}-0.4.5-pillow7.patch + "${FILESDIR}"/${PN}-0.4.5-python38.patch ) src_install() {