1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

games/gnomesudoku: switch from py-imaging to py-pillow

With hat:	python
Approved by:	portmgr (bdrewery, implicit)
This commit is contained in:
William Grzybowski 2014-10-04 21:29:10 +00:00
parent cfc2ff29ce
commit 91874587dc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=369995
3 changed files with 23 additions and 5 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= gnomesudoku
PORTVERSION= 0.6.0
PORTREVISION= 9
PORTREVISION= 10
CATEGORIES= games gnome
MASTER_SITES= SF/gnome-sudoku/gnome-sudoku/${PORTVERSION}
DISTNAME= gnome-sudoku-${PORTVERSION}
@ -12,12 +12,11 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= GNOME Sudoku game
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/Numeric/Numeric.py:${PORTSDIR}/math/py-numeric \
${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging
${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow
USE_PYTHON= yes
USE_PYDISTUTILS=yes
USES= pathfix display
USES= display pathfix python
USE_GNOME= gnomeprefix pygnome2 pygnomedesktop
USE_PYTHON= distutils
PYDISTUTILS_PKGNAME= gnome-sudoku
post-patch:

View File

@ -0,0 +1,11 @@
--- setup.py.orig 2014-10-04 20:26:24 UTC
+++ setup.py
@@ -43,7 +43,7 @@
except ImportError:
sys.exit('Error: PyGTK-2.6 or newer is required.')
raise
- mod_list = ['Image','gnomeprint','Numeric']
+ mod_list = ['PIL','gnomeprint','Numeric']
ok = 1
for m in mod_list:
try:

View File

@ -0,0 +1,8 @@
--- src/lib/gtk_goodies/image_extras.py.orig 2014-10-04 19:22:19 UTC
+++ src/lib/gtk_goodies/image_extras.py
@@ -1,4 +1,4 @@
-import Image,ImageOps
+from PIL import Image,ImageOps
import gtk
import string
import StringIO