# $Id: Portfile 64151 2010-02-23 21:16:02Z singingwolfboy@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-tesser
version             0.0.1
platforms           darwin
maintainers         singingwolfboy openmaintainer
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}
use_zip             yes
extract.mkdir       yes

checksums           md5     54681d38db45332ad5fa38fdba7ddd79 \
                    sha1    3eec1dced4d484dd34464e8a329b7b3c7b40d7b0 \
                    rmd160  4aeb1cf41978671524bb1c4be4b11e25bda6c1ae

depends_lib         port:py26-pil bin:tesseract:tesseract

use_configure       no
build               {}
destroot {
    set instdir ${destroot}${python.pkgd}/tesseract
    xinstall -d ${instdir}
    xinstall -m 644 ${worksrcpath}/pytesser.py ${instdir}/__init__.py
    xinstall -m 644 -W ${worksrcpath} \
        util.py errors.py \
        ${instdir}
    set docdir ${destroot}${prefix}/share/doc/pytesser-${version}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS ChangeLog LICENSE NOTICE README \
        ${docdir}
}
