[122585] trunk/dports/python

petr at macports.org petr at macports.org
Thu Jul 24 04:58:32 PDT 2014


Revision: 122585
          https://trac.macports.org/changeset/122585
Author:   petr at macports.org
Date:     2014-07-24 04:58:32 -0700 (Thu, 24 Jul 2014)
Log Message:
-----------
py-mitmproxy py-tesser: switch from py*-pil to path-based dependency, ticket #44281

Modified Paths:
--------------
    trunk/dports/python/py-mitmproxy/Portfile
    trunk/dports/python/py-tesser/Portfile

Added Paths:
-----------
    trunk/dports/python/py-tesser/files/
    trunk/dports/python/py-tesser/files/patch-pillow-compat.diff

Modified: trunk/dports/python/py-mitmproxy/Portfile
===================================================================
--- trunk/dports/python/py-mitmproxy/Portfile	2014-07-24 11:47:10 UTC (rev 122584)
+++ trunk/dports/python/py-mitmproxy/Portfile	2014-07-24 11:58:32 UTC (rev 122585)
@@ -34,6 +34,6 @@
     depends_lib-append  port:py${python.version}-openssl \
                         port:py${python.version}-asn1 \
                         port:py${python.version}-urwid \
-                        port:py${python.version}-pil \
-                        port:py${python.version}-lxml
+                        port:py${python.version}-lxml \
+                        path:${python.pkgd}/PIL:py${python.version}-Pillow
 }

Modified: trunk/dports/python/py-tesser/Portfile
===================================================================
--- trunk/dports/python/py-tesser/Portfile	2014-07-24 11:47:10 UTC (rev 122584)
+++ trunk/dports/python/py-tesser/Portfile	2014-07-24 11:58:32 UTC (rev 122585)
@@ -5,12 +5,15 @@
 
 name                py-tesser
 version             0.0.1
+revision            1
 license             Apache-2
 platforms           darwin
 supported_archs     noarch
 maintainers         nomaintainer
+
 description         Optical Character Recognition module for Python
 long_description    pytesser is an ${description}
+
 homepage            http://code.google.com/p/pytesser/
 master_sites        googlecode:pytesser
 distname            pytesser_v${version}
@@ -21,10 +24,14 @@
                     sha1    3eec1dced4d484dd34464e8a329b7b3c7b40d7b0 \
                     rmd160  4aeb1cf41978671524bb1c4be4b11e25bda6c1ae
 
+patchfiles          patch-pillow-compat.diff
+
 python.versions     26
 
 if {${name} ne ${subport}} {
-    depends_lib         port:py${python.version}-pil bin:tesseract:tesseract
+    depends_lib-append  path:${python.pkgd}/PIL:py${python.version}-Pillow \
+                        bin:tesseract:tesseract
+
     build               {}
     destroot {
         set instdir ${destroot}${python.pkgd}/tesseract

Added: trunk/dports/python/py-tesser/files/patch-pillow-compat.diff
===================================================================
--- trunk/dports/python/py-tesser/files/patch-pillow-compat.diff	                        (rev 0)
+++ trunk/dports/python/py-tesser/files/patch-pillow-compat.diff	2014-07-24 11:58:32 UTC (rev 122585)
@@ -0,0 +1,11 @@
+--- pytesser.py.old
++++ pytesser.py
+@@ -3,7 +3,7 @@
+ by Michael J.T. O'Kelly
+ V 0.0.1, 3/10/07"""
+ 
+-import Image
++from PIL import Image
+ import subprocess
+ 
+ import util
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140724/ecd846d5/attachment.html>


More information about the macports-changes mailing list