From e9b65bcdab1d5dbc5d853d0a4498fae8d65f2a8d Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Tue, 5 Jun 2007 13:43:26 +0000 Subject: [PATCH] - Fix problems with the tkinter knop - Bump PORTREVISION PR: 113040 Submitted by: Marcus von Appen Approved by: maintainer --- graphics/py-imaging/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/graphics/py-imaging/Makefile b/graphics/py-imaging/Makefile index f22f2833e3e2..56eabf9ab266 100644 --- a/graphics/py-imaging/Makefile +++ b/graphics/py-imaging/Makefile @@ -7,7 +7,7 @@ PORTNAME= imaging PORTVERSION= 1.1.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= graphics python MASTER_SITES= http://effbot.org/downloads/ \ http://www.pythonware.net/storage/ @@ -43,6 +43,11 @@ PLIST_SUB+= TKINTER="" PLIST_SUB+= TKINTER="@comment " .endif +.if defined(WITHOUT_TKINTER) +post-patch: + @${REINPLACE_CMD} -e 's|if _tkinter|if None|g' ${WRKSRC}/setup.py +.endif + post-install: .for file in ImPlatform.h Imaging.h ${INSTALL_DATA} ${WRKSRC}/libImaging/${file} ${PYTHON_INCLUDEDIR}