diff --git a/python/py-mitmproxy/Portfile b/python/py-mitmproxy/Portfile
index a5a00ac..11ad40a 100644
a
|
b
|
if {${name} ne ${subport}} { |
32 | 32 | depends_lib port:py${python.version}-openssl \ |
33 | 33 | port:py${python.version}-asn1 \ |
34 | 34 | port:py${python.version}-urwid \ |
35 | | port:py${python.version}-pil \ |
| 35 | path:${python.pkgd}/PIL:py${python.version}-Pillow \ |
36 | 36 | port:py${python.version}-lxml |
37 | 37 | } |
diff --git a/python/py-tesser/Portfile b/python/py-tesser/Portfile
index 841738e..8ba7339 100644
a
|
b
|
PortGroup python 1.0 |
5 | 5 | |
6 | 6 | name py-tesser |
7 | 7 | version 0.0.1 |
| 8 | revision 1 |
8 | 9 | license Apache-2 |
9 | 10 | platforms darwin |
10 | 11 | supported_archs noarch |
… |
… |
checksums md5 54681d38db45332ad5fa38fdba7ddd79 \ |
21 | 22 | sha1 3eec1dced4d484dd34464e8a329b7b3c7b40d7b0 \ |
22 | 23 | rmd160 4aeb1cf41978671524bb1c4be4b11e25bda6c1ae |
23 | 24 | |
| 25 | patchfiles patch-pillow-compat.diff |
| 26 | |
24 | 27 | python.versions 26 |
25 | 28 | |
26 | 29 | if {${name} ne ${subport}} { |
27 | | depends_lib port:py${python.version}-pil bin:tesseract:tesseract |
| 30 | depends_lib path:${python.pkgd}/PIL:py${python.version}-Pillow \ |
| 31 | bin:tesseract:tesseract |
| 32 | |
28 | 33 | build {} |
29 | 34 | destroot { |
30 | 35 | set instdir ${destroot}${python.pkgd}/tesseract |
diff --git a/python/py-tesser/files/patch-pillow-compat.diff b/python/py-tesser/files/patch-pillow-compat.diff
new file mode 100644
index 0000000..3e6e9d9
-
|
+
|
|
| 1 | --- pytesser.py.old 2014-07-10 21:44:41.000000000 +0200 |
| 2 | +++ pytesser.py 2014-07-10 21:44:49.000000000 +0200 |
| 3 | @@ -3,7 +3,7 @@ |
| 4 | by Michael J.T. O'Kelly |
| 5 | V 0.0.1, 3/10/07""" |
| 6 | |
| 7 | -import Image |
| 8 | +from PIL import Image |
| 9 | import subprocess |
| 10 | |
| 11 | import util |
diff --git a/zope/zope-cmfphoto/Portfile b/zope/zope-cmfphoto/Portfile
index 25b804e..b28c66c 100644
a
|
b
|
checksums md5 460f13f2ecc18c80a13324dd4eaafabb |
16 | 16 | platforms darwin freebsd |
17 | 17 | supported_archs noarch |
18 | 18 | |
| 19 | set python.version 26 |
| 20 | set python.branch "[string range ${python.version} 0 end-1].[string index ${python.version} end]" |
| 21 | |
19 | 22 | depends_lib-append port:zope-cmf \ |
20 | | port:py26-pil |
| 23 | path:${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages/PIL:py${python.version}-Pillow |
21 | 24 | depends_run bin:convert:ImageMagick |
diff --git a/zope/zope-extfile/Portfile b/zope/zope-extfile/Portfile
index 143e9bc..fa3ae21 100644
a
|
b
|
checksums md5 4e13441da832a904cb75ad367388ae8b |
27 | 27 | platforms darwin freebsd |
28 | 28 | supported_archs noarch |
29 | 29 | |
30 | | depends_lib-append port:py26-pil |
| 30 | set python.version 26 |
| 31 | set python.branch "[string range ${python.version} 0 end-1].[string index ${python.version} end]" |
| 32 | |
| 33 | depends_lib-append path:${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages/PIL:py${python.version}-Pillow |
diff --git a/zope/zope-zphotoslides/Portfile b/zope/zope-zphotoslides/Portfile
index 924808a..40675ca 100644
a
|
b
|
checksums md5 c2be3084f144ecfe1a97b4b6439fe659 |
22 | 22 | platforms darwin freebsd |
23 | 23 | supported_archs noarch |
24 | 24 | |
| 25 | set python.version 26 |
| 26 | set python.branch "[string range ${python.version} 0 end-1].[string index ${python.version} end]" |
| 27 | |
25 | 28 | depends_lib-append port:zope-localizer \ |
26 | 29 | port:zope-stripogram \ |
27 | | port:py26-pil |
| 30 | path:${frameworks_dir}/Python.framework/Versions/${python.branch}/lib/python${python.branch}/site-packages/PIL:py${python.version}-Pillow |
28 | 31 | depends_run bin:convert:ImageMagick |
29 | 32 | |
30 | 33 | patchfiles patch-__init__.py |