diff options
author | wg <wg@FreeBSD.org> | 2014-10-05 07:21:19 +0800 |
---|---|---|
committer | wg <wg@FreeBSD.org> | 2014-10-05 07:21:19 +0800 |
commit | aaff3d1a31e168e956a626c5aa255c49fad2e90b (patch) | |
tree | f0d20d067b1021b3a0d8e31ed2df10b775696a35 /graphics | |
parent | 2a0cda25ca5df919e82cc245e33f827a3d9b8fc4 (diff) | |
download | freebsd-ports-gnome-aaff3d1a31e168e956a626c5aa255c49fad2e90b.tar.gz freebsd-ports-gnome-aaff3d1a31e168e956a626c5aa255c49fad2e90b.tar.zst freebsd-ports-gnome-aaff3d1a31e168e956a626c5aa255c49fad2e90b.zip |
graphics/imgv: switch from py-imaging to py-pillow
With hat: python
Approved by: portmgr (bdrewery, implicit)
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/imgv/Makefile | 4 | ||||
-rw-r--r-- | graphics/imgv/files/patch-downloader.py | 11 | ||||
-rw-r--r-- | graphics/imgv/files/patch-verbose.py | 11 |
3 files changed, 24 insertions, 2 deletions
diff --git a/graphics/imgv/Makefile b/graphics/imgv/Makefile index 2defd6e1e3d3..1d353edf894d 100644 --- a/graphics/imgv/Makefile +++ b/graphics/imgv/Makefile @@ -4,7 +4,7 @@ PORTNAME= imgv PORTVERSION= 3.1.6 DISTVERSIONSUFFIX= -src -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= graphics python MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20${PORTVERSION} @@ -14,7 +14,7 @@ COMMENT= Unique and feature rich Image Viewer LICENSE= GPLv2 RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}game>0:${PORTSDIR}/devel/py-game \ - ${PYTHON_PKGNAMEPREFIX}imaging>0:${PORTSDIR}/graphics/py-imaging + ${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow NO_ARCH= yes NO_BUILD= yes diff --git a/graphics/imgv/files/patch-downloader.py b/graphics/imgv/files/patch-downloader.py new file mode 100644 index 000000000000..1c779e0a09b7 --- /dev/null +++ b/graphics/imgv/files/patch-downloader.py @@ -0,0 +1,11 @@ +--- downloader.py.orig 2014-10-04 23:19:16 UTC ++++ downloader.py +@@ -7,7 +7,7 @@ + if platform == 'win32': + import BmpImagePlugin, JpegImagePlugin, PngImagePlugin, SgiImagePlugin, SunImagePlugin, TgaImagePlugin, TiffImagePlugin, PcxImagePlugin, PpmImagePlugin, XpmImagePlugin # for py2exe to work with PIL + try: +- import Image # PIL ++ from PIL import Image # PIL + except: + print "You are missing the python-imaging package (PIL). Please install it" + from usr_event import check_quit diff --git a/graphics/imgv/files/patch-verbose.py b/graphics/imgv/files/patch-verbose.py new file mode 100644 index 000000000000..acf95e4c4c3d --- /dev/null +++ b/graphics/imgv/files/patch-verbose.py @@ -0,0 +1,11 @@ +--- verbose.py.orig 2014-10-04 23:19:42 UTC ++++ verbose.py +@@ -12,7 +12,7 @@ + from usr_event import check_quit, hit_key + if platform == 'win32': + import BmpImagePlugin, JpegImagePlugin, PngImagePlugin, SgiImagePlugin, SunImagePlugin, TgaImagePlugin, TiffImagePlugin, PcxImagePlugin, PpmImagePlugin, XpmImagePlugin # for py2exe to work with PIL +-import Image # PIL ++from PIL import Image # PIL + import pygame.font, pygame.event + from pygame.transform import scale + from pygame.display import update, flip, set_caption |