1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00

net/tucan: switch from py-imaging to py-pillow

- USES python

With hat:	python
Approved by:	portmgr (bdrewery, implicit)
This commit is contained in:
William Grzybowski 2014-10-06 17:02:32 +00:00
parent e05b54307d
commit 6924611d69
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=370193
3 changed files with 29 additions and 4 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= tucan
PORTVERSION= 0.3.10
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net
MASTER_SITES= http://forja.rediris.es/frs/download.php/2051/ \
http://build-tucan-doc.googlecode.com/files/
@ -11,14 +11,13 @@ MASTER_SITES= http://forja.rediris.es/frs/download.php/2051/ \
MAINTAINER= gustau.perez@gmail.com
COMMENT= Tucan Manager aids file-sharing with 1-click hosters
RUN_DEPENDS= ${LOCALBASE}/bin/pilconvert.py:${PORTSDIR}/graphics/py-imaging \
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow \
${LOCALBASE}/bin/cntraining:${PORTSDIR}/graphics/tesseract
NO_BUILD= yes
USE_GNOME= pygtk2 librsvg2
USE_PYTHON= yes
USES= gettext
USES= gettext python
post-patch:
${REINPLACE_CMD} -Ee 's|#! /usr/bin/env python|#! ${PYTHON_CMD}|' ${WRKSRC}/tucan.py

View File

@ -0,0 +1,11 @@
--- core/dependencies.py.orig 2014-10-06 16:41:03 UTC
+++ core/dependencies.py
@@ -55,7 +55,7 @@
""""""
self.checked[cons.DEPENDENCY_TESSERACT] = None
try:
- import Image
+ from PIL import Image
except:
message = "PIL not found."
self.checked[cons.DEPENDENCY_TESSERACT] = message

View File

@ -0,0 +1,15 @@
--- core/tesseract.py.orig 2014-10-06 16:41:31 UTC
+++ core/tesseract.py
@@ -26,9 +26,9 @@
import subprocess
import tempfile
-import ImageFile
-import Image
-import TiffImagePlugin
+from PIL import ImageFile
+from PIL import Image
+from PIL import TiffImagePlugin
import cons