diff options
author | 2019-04-03 14:34:05 +0200 | |
---|---|---|
committer | 2019-04-03 14:34:57 +0200 | |
commit | b90278cb754debe173cea88bff0d96e869b15068 (patch) | |
tree | 4ae2f70c3edc07f15402dae09f80615a260f5563 /games-board/pysolfc/files | |
parent | sys-kernel/gentoo-sources: Linux patch 4.9.167 (diff) | |
download | gentoo-b90278cb754debe173cea88bff0d96e869b15068.tar.gz gentoo-b90278cb754debe173cea88bff0d96e869b15068.tar.bz2 gentoo-b90278cb754debe173cea88bff0d96e869b15068.zip |
games-board/pysolfc: bump to 2.6.2, compatibility with pillow-6
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Andrey Grozin <grozin@gentoo.org>
Diffstat (limited to 'games-board/pysolfc/files')
-rw-r--r-- | games-board/pysolfc/files/pysolfc-pillow-6.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games-board/pysolfc/files/pysolfc-pillow-6.patch b/games-board/pysolfc/files/pysolfc-pillow-6.patch new file mode 100644 index 00000000000..4682ed34683 --- /dev/null +++ b/games-board/pysolfc/files/pysolfc-pillow-6.patch @@ -0,0 +1,20 @@ +diff -U2 -r PySolFC-pysolfc-2.6.2.orig/pysollib/mfxutil.py PySolFC-pysolfc-2.6.2/pysollib/mfxutil.py +--- PySolFC-pysolfc-2.6.2.orig/pysollib/mfxutil.py 2019-02-27 21:52:26.000000000 +0100 ++++ PySolFC-pysolfc-2.6.2/pysollib/mfxutil.py 2019-04-03 14:09:51.059349643 +0200 +@@ -52,5 +52,5 @@ + Image._initialized = 2 + USE_PIL = False +-if TOOLKIT == 'tk' and Image and Image.VERSION >= '1.1.7': ++if TOOLKIT == 'tk' and Image: + USE_PIL = True + +diff -U2 -r PySolFC-pysolfc-2.6.2.orig/pysollib/ui/tktile/tkutil.py PySolFC-pysolfc-2.6.2/pysollib/ui/tktile/tkutil.py +--- PySolFC-pysolfc-2.6.2.orig/pysollib/ui/tktile/tkutil.py 2019-02-27 21:52:26.000000000 +0100 ++++ PySolFC-pysolfc-2.6.2/pysollib/ui/tktile/tkutil.py 2019-04-03 14:19:22.450363811 +0200 +@@ -354,5 +354,5 @@ + return None + im = image._pil_image +- if Image.VERSION >= '1.1.7': ++ if True: + # use an alpha image + sh = Image.new('RGBA', im.size, color) |