svn commit: r370447 - in head/games/pysolfc: . files

William Grzybowski wg at FreeBSD.org
Wed Oct 8 15:38:54 UTC 2014


Author: wg
Date: Wed Oct  8 15:38:53 2014
New Revision: 370447
URL: https://svnweb.freebsd.org/changeset/ports/370447
QAT: https://qat.redports.org/buildarchive/r370447/

Log:
  games/pysolfc: switch from py-imaging to py-pillow
  
  - USES python
  
  With hat:	python
  Approved by:	portmgr (bdrewery, implicit)

Added:
  head/games/pysolfc/files/patch-pysollib__mfxutil.py   (contents, props changed)
Modified:
  head/games/pysolfc/Makefile

Modified: head/games/pysolfc/Makefile
==============================================================================
--- head/games/pysolfc/Makefile	Wed Oct  8 15:24:20 2014	(r370446)
+++ head/games/pysolfc/Makefile	Wed Oct  8 15:38:53 2014	(r370447)
@@ -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 Pyth
 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

Added: head/games/pysolfc/files/patch-pysollib__mfxutil.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/pysolfc/files/patch-pysollib__mfxutil.py	Wed Oct  8 15:38:53 2014	(r370447)
@@ -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
+ 
+ 


More information about the svn-ports-head mailing list