mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
games/pysolfc: switch from py-imaging to py-pillow
- USES python With hat: python Approved by: portmgr (bdrewery, implicit)
This commit is contained in:
parent
61932c5536
commit
75a9a4adb2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=370447
@ -2,7 +2,7 @@
|
||||
|
||||
PORTNAME= pysolfc
|
||||
PORTVERSION= 2.0
|
||||
PORTREVISION= 5
|
||||
PORTREVISION= 6
|
||||
CATEGORIES= games python
|
||||
MASTER_SITES= SF/${PORTNAME}/PySolFC/PySolFC-${PORTVERSION} \
|
||||
SF/${PORTNAME}/PySolFC-Cardsets/PySolFC-Cardsets-${PORTVERSION}:cardsets
|
||||
@ -15,7 +15,7 @@ COMMENT= Solitaire game, written in Python and the successor of PySol
|
||||
LICENSE= GPLv3
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tkinter>0:${PORTSDIR}/x11-toolkits/py-tkinter \
|
||||
${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging
|
||||
${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow
|
||||
|
||||
USES= python tar:bzip2
|
||||
USE_PYTHON= autoplist distutils
|
||||
|
29
games/pysolfc/files/patch-pysollib__mfxutil.py
Normal file
29
games/pysolfc/files/patch-pysollib__mfxutil.py
Normal file
@ -0,0 +1,29 @@
|
||||
--- pysollib/mfxutil.py.orig 2014-10-08 15:37:56 UTC
|
||||
+++ pysollib/mfxutil.py
|
||||
@@ -41,18 +41,18 @@
|
||||
Image = ImageTk = ImageOps = None
|
||||
if TOOLKIT == 'tk':
|
||||
try: # PIL
|
||||
- import Image
|
||||
- import ImageTk
|
||||
- import ImageOps
|
||||
+ from PIL import Image
|
||||
+ from PIL import ImageTk
|
||||
+ from PIL import ImageOps
|
||||
except ImportError:
|
||||
Image = None
|
||||
else:
|
||||
# for py2exe
|
||||
- import GifImagePlugin
|
||||
- import PngImagePlugin
|
||||
- import JpegImagePlugin
|
||||
- import BmpImagePlugin
|
||||
- import PpmImagePlugin
|
||||
+ from PIL import GifImagePlugin
|
||||
+ from PIL import PngImagePlugin
|
||||
+ from PIL import JpegImagePlugin
|
||||
+ from PIL import BmpImagePlugin
|
||||
+ from PIL import PpmImagePlugin
|
||||
Image._initialized = 2
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user