Index: head/net/tucan/Makefile =================================================================== --- head/net/tucan/Makefile (revision 370192) +++ head/net/tucan/Makefile (revision 370193) @@ -1,48 +1,47 @@ # Created by: Gustau Perez Querol # $FreeBSD$ 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/ 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 # remove .orig leftovers from files/patch-* pre-install: ${RM} ${WRKSRC}/core/*.orig do-install: ${MKDIR} ${STAGEDIR}${DATADIR} ${MKDIR} ${STAGEDIR}${DATADIR}/core ${MKDIR} ${STAGEDIR}${DATADIR}/default_plugins ${MKDIR} ${STAGEDIR}${DATADIR}/i18n ${MKDIR} ${STAGEDIR}${DATADIR}/media ${MKDIR} ${STAGEDIR}${DATADIR}/ui ${INSTALL_SCRIPT} ${WRKSRC}/tucan.py ${STAGEDIR}${PREFIX}/share/tucan/ ${LN} -s ${PREFIX}/share/tucan/tucan.py ${STAGEDIR}${PREFIX}/bin/tucan (cd ${WRKSRC}/core/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/core/) (cd ${WRKSRC}/default_plugins/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/default_plugins/) (cd ${WRKSRC}/i18n/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/i18n/) (cd ${WRKSRC}/media/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/media/) (cd ${WRKSRC}/ui/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR}/ui/) ${INSTALL_DATA} ${WRKSRC}/media/tucan.png ${STAGEDIR}${PREFIX}/share/pixmaps/ ${INSTALL_MAN} ${WRKSRC}/tucan.1.gz ${STAGEDIR}${PREFIX}/man/man1/ ${INSTALL} ${WRKSRC}/tucan.desktop ${STAGEDIR}${PREFIX}/share/applications/ .include Index: head/net/tucan/files/patch-core__dependencies.py =================================================================== --- head/net/tucan/files/patch-core__dependencies.py (nonexistent) +++ head/net/tucan/files/patch-core__dependencies.py (revision 370193) @@ -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 Property changes on: head/net/tucan/files/patch-core__dependencies.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net/tucan/files/patch-core__tesseract.py =================================================================== --- head/net/tucan/files/patch-core__tesseract.py (nonexistent) +++ head/net/tucan/files/patch-core__tesseract.py (revision 370193) @@ -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 + Property changes on: head/net/tucan/files/patch-core__tesseract.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property