public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-misc/ponysay/files/, games-misc/ponysay/
@ 2021-01-12 15:22 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2021-01-12 15:22 UTC (permalink / raw
  To: gentoo-commits

commit:     e24828d13b13b5b885f1945cb16e45a23c9df1c1
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 12 13:37:22 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jan 12 15:22:04 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e24828d1

games-misc/ponysay: add Python 3.8, 3.9

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/ponysay-3.0.3-python-syntax.patch        | 38 ++++++++++++++++++++++
 games-misc/ponysay/ponysay-3.0.3.ebuild            |  8 +++--
 2 files changed, 44 insertions(+), 2 deletions(-)

diff --git a/games-misc/ponysay/files/ponysay-3.0.3-python-syntax.patch b/games-misc/ponysay/files/ponysay-3.0.3-python-syntax.patch
new file mode 100644
index 00000000000..de35149fcdf
--- /dev/null
+++ b/games-misc/ponysay/files/ponysay-3.0.3-python-syntax.patch
@@ -0,0 +1,38 @@
+https://github.com/erkin/ponysay/commit/f9154fd806bbf31c79b1769b13d5aa1b67f9c06a.patch
+(and an additional fix)
+
+From f9154fd806bbf31c79b1769b13d5aa1b67f9c06a Mon Sep 17 00:00:00 2001
+From: adasiko <adasiko256@yandex.ru>
+Date: Sun, 22 Mar 2020 19:33:28 +0700
+Subject: [PATCH] fix: do not compare literal with "is not"
+
+---
+ src/ponysaytool.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/ponysaytool.py b/src/ponysaytool.py
+index 7f9a4da5..574a2baa 100755
+--- a/src/ponysaytool.py
++++ b/src/ponysaytool.py
+@@ -1002,7 +1002,7 @@ def alert(text):
+                     for row in range(0, len(datalines)):
+                         current = leftlines[row]
+                         if len(datalines[row].strip()) == 0:
+-                            if current is not 'comment':
++                            if current != 'comment':
+                                 if current != last:
+                                     self.datamap[current] = None
+                                 continue
+diff --git a/src/backend.py b/src/backend.py
+index 2cc539a..82ff149 100755
+--- a/src/backend.py
++++ b/src/backend.py
+@@ -291,7 +291,7 @@ class Backend():
+                         props = dollar[7:]
+                         if len(props) > 0:
+                             if ',' in props:
+-                                if props[0] is not ',':
++                                if props[0] != ',':
+                                     w = props[:props.index(',')]
+                                 h = int(props[props.index(',') + 1:])
+                             else:

diff --git a/games-misc/ponysay/ponysay-3.0.3.ebuild b/games-misc/ponysay/ponysay-3.0.3.ebuild
index 5c758bbc210..00fedbca4e2 100644
--- a/games-misc/ponysay/ponysay-3.0.3.ebuild
+++ b/games-misc/ponysay/ponysay-3.0.3.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{6,7} )
+PYTHON_COMPAT=( python3_{6,7,8,9} )
 inherit bash-completion-r1 python-single-r1
 
 DESCRIPTION="cowsay reimplemention for ponies"
@@ -22,6 +22,10 @@ RDEPEND="${PYTHON_DEPS}
 	fish-completion? ( app-shells/fish )
 	zsh-completion? ( app-shells/zsh )"
 
+PATCHES=(
+	"${FILESDIR}/${PN}-3.0.3-python-syntax.patch"
+)
+
 setup_py() {
 	"${PYTHON}" setup.py \
 		--prefix="${EPREFIX}"/usr \


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-12 15:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-12 15:22 [gentoo-commits] repo/gentoo:master commit in: games-misc/ponysay/files/, games-misc/ponysay/ Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox