aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2014-10-05 08:16:00 +0800
committerwg <wg@FreeBSD.org>2014-10-05 08:16:00 +0800
commit3eeed082cb9647c9047bb10acdf01265c7d152a9 (patch)
treea6d5bd3e9ba78c19b4abb4e150d47f3efaa1b4cf
parente8c28dcb3b5071e210753302225a324a45158485 (diff)
downloadfreebsd-ports-gnome-3eeed082cb9647c9047bb10acdf01265c7d152a9.tar.gz
freebsd-ports-gnome-3eeed082cb9647c9047bb10acdf01265c7d152a9.tar.zst
freebsd-ports-gnome-3eeed082cb9647c9047bb10acdf01265c7d152a9.zip
misc/pylize: switch from py-imaging to py-pillow
- USES python With hat: python Approved by: portmgr (bdrewery, implicit)
-rw-r--r--misc/pylize/Makefile15
-rw-r--r--misc/pylize/files/patch-pylize.in11
2 files changed, 16 insertions, 10 deletions
diff --git a/misc/pylize/Makefile b/misc/pylize/Makefile
index 374a25b11d02..591662acbbf3 100644
--- a/misc/pylize/Makefile
+++ b/misc/pylize/Makefile
@@ -3,7 +3,7 @@
PORTNAME= pylize
PORTVERSION= 1.3.b
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= misc textproc
MASTER_SITES= http://www.chrisarndt.de/en/software/pylize/download/ \
http://dryice.name/computer/FreeBSD/distfiles/
@@ -14,17 +14,12 @@ COMMENT= Presentation generation tool
BUILD_DEPENDS= python:${PORTSDIR}/lang/python \
${PYTHON_SITELIBDIR}/HTMLgen.py:${PORTSDIR}/www/py-HTMLgen \
- ${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging \
- ${PYTHON_SITELIBDIR}/em.py:${PORTSDIR}/textproc/py-empy
-RUN_DEPENDS= python:${PORTSDIR}/lang/python \
- ${PYTHON_SITELIBDIR}/HTMLgen.py:${PORTSDIR}/www/py-HTMLgen \
- ${PYTHON_SITELIBDIR}/PIL.pth:${PORTSDIR}/graphics/py-imaging \
+ ${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow \
${PYTHON_SITELIBDIR}/em.py:${PORTSDIR}/textproc/py-empy
+RUN_DEPENDS:= ${BUILD_DEPENDS}
-USES= tar:bzip2
-USE_PYTHON= 2
-USE_PYDISTUTILS= yes
-PYDISTUTILS_AUTOPLIST= yes
+USES= python:2 tar:bzip2
+USE_PYTHON= autoplist distutils
do-configure:
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} configure.py)
diff --git a/misc/pylize/files/patch-pylize.in b/misc/pylize/files/patch-pylize.in
new file mode 100644
index 000000000000..cb38ee341ef2
--- /dev/null
+++ b/misc/pylize/files/patch-pylize.in
@@ -0,0 +1,11 @@
+--- pylize.in.orig 2014-10-05 00:14:33 UTC
++++ pylize.in
+@@ -113,7 +113,7 @@
+ def mkLogoLink(meta):
+ if meta.has_key('logo'):
+ try:
+- import Image
++ from PIL import Image
+ if os.path.exists(meta['logo']):
+ i = Image.open(meta['logo'])
+ else: