source: trunk/dports/python/py-tesser/Portfile

Last change on this file was 122585, checked in by petr@…, 3 years ago

py-mitmproxy py-tesser: switch from py*-pil to path-based dependency, ticket #44281

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 122585 2014-07-24 11:58:32Z ryandesign@macports.org $
2
3PortSystem          1.0
4PortGroup           python 1.0
5
6name                py-tesser
7version             0.0.1
8revision            1
9license             Apache-2
10platforms           darwin
11supported_archs     noarch
12maintainers         nomaintainer
13
14description         Optical Character Recognition module for Python
15long_description    pytesser is an ${description}
16
17homepage            http://code.google.com/p/pytesser/
18master_sites        googlecode:pytesser
19distname            pytesser_v${version}
20use_zip             yes
21extract.mkdir       yes
22
23checksums           md5     54681d38db45332ad5fa38fdba7ddd79 \
24                    sha1    3eec1dced4d484dd34464e8a329b7b3c7b40d7b0 \
25                    rmd160  4aeb1cf41978671524bb1c4be4b11e25bda6c1ae
26
27patchfiles          patch-pillow-compat.diff
28
29python.versions     26
30
31if {${name} ne ${subport}} {
32    depends_lib-append  path:${python.pkgd}/PIL:py${python.version}-Pillow \
33                        bin:tesseract:tesseract
34
35    build               {}
36    destroot {
37        set instdir ${destroot}${python.pkgd}/tesseract
38        xinstall -d ${instdir}
39        xinstall -m 644 ${worksrcpath}/pytesser.py ${instdir}/__init__.py
40        xinstall -m 644 -W ${worksrcpath} \
41            util.py errors.py \
42            ${instdir}
43        set docdir ${destroot}${prefix}/share/doc/${subport}
44        xinstall -d ${docdir}
45        xinstall -m 644 -W ${worksrcpath} \
46            AUTHORS ChangeLog LICENSE NOTICE README \
47            ${docdir}
48    }
49}
Note: See TracBrowser for help on using the repository browser.