diff options
author | wg <wg@FreeBSD.org> | 2014-10-05 05:44:23 +0800 |
---|---|---|
committer | wg <wg@FreeBSD.org> | 2014-10-05 05:44:23 +0800 |
commit | a1517b8996c985455d11603d558586b77a732a92 (patch) | |
tree | 6c9378c0cb9ab2ecc5776073389a9afc5308810c /graphics | |
parent | 0cab4dc64b53bec4bac8b67a64baf96d8f161848 (diff) | |
download | freebsd-ports-gnome-a1517b8996c985455d11603d558586b77a732a92.tar.gz freebsd-ports-gnome-a1517b8996c985455d11603d558586b77a732a92.tar.zst freebsd-ports-gnome-a1517b8996c985455d11603d558586b77a732a92.zip |
graphics/imgtops: switch from py-imaging to py-pillow
- USES python
With hat: python
Approved by: portmgr (bdrewery, implicit)
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/imgtops/Makefile | 8 | ||||
-rw-r--r-- | graphics/imgtops/files/patch-imgtopslib__epstoimg.py | 10 | ||||
-rw-r--r-- | graphics/imgtops/files/patch-imgtopslib__imgtops.py | 9 |
3 files changed, 23 insertions, 4 deletions
diff --git a/graphics/imgtops/Makefile b/graphics/imgtops/Makefile index 44fe9b17d67f..a351033544cf 100644 --- a/graphics/imgtops/Makefile +++ b/graphics/imgtops/Makefile @@ -3,18 +3,18 @@ PORTNAME= imgtops PORTVERSION= 1.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= graphics MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Create efficient Encapsulated Postscript files from images -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}imaging>0:${PORTSDIR}/graphics/py-imaging +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow +USES= python USE_GHOSTSCRIPT_RUN= yes -USE_PYTHON= yes -USE_PYDISTUTILS= yes +USE_PYTHON= distutils post-install: ${CHMOD} 644 ${STAGEDIR}${MANPREFIX}/man/man1/imgtops.1 diff --git a/graphics/imgtops/files/patch-imgtopslib__epstoimg.py b/graphics/imgtops/files/patch-imgtopslib__epstoimg.py new file mode 100644 index 000000000000..830040b0e271 --- /dev/null +++ b/graphics/imgtops/files/patch-imgtopslib__epstoimg.py @@ -0,0 +1,10 @@ +--- imgtopslib/epstoimg.py.orig 2014-10-04 21:43:06 UTC ++++ imgtopslib/epstoimg.py +@@ -1,6 +1,6 @@ + import os, tempfile, sys + import getopt +-import Image ++from PIL import Image + from dimensions import interpret_dimension + import re + import cStringIO diff --git a/graphics/imgtops/files/patch-imgtopslib__imgtops.py b/graphics/imgtops/files/patch-imgtopslib__imgtops.py new file mode 100644 index 000000000000..5af62428abe7 --- /dev/null +++ b/graphics/imgtops/files/patch-imgtopslib__imgtops.py @@ -0,0 +1,9 @@ +--- imgtopslib/imgtops.py.orig 2014-10-04 21:42:40 UTC ++++ imgtopslib/imgtops.py +@@ -1,5 +1,5 @@ + import sys, os.path +-import Image ++from PIL import Image + import cStringIO + import time + import getopt |