# $Id$

PortSystem          1.0
PortGroup           python27 1.0

name                py27-tre
version             0.8.0
categories          python devel
platforms           darwin
maintainers         nomaintainer
description         Python bindings for libtre
long_description    Python bindings for libtre, a lightweight, \
                    POSIX-compliant regular expressions library that supports \
                    approximate text matches.
homepage            http://laurikari.net/tre/
master_sites        ${homepage}
distname            tre-${version}
dist_subdir         tre
worksrcdir          ${distname}/python
patchfiles          patch-setup.py.diff
use_bzip2           yes
checksums           md5     b4d3232593dadf6746f4727bdda20b41 \
                    sha1    a41692e64b40ebae3cffe83931ddbf8420a10ae3 \
                    rmd160  8031cc0c421dd0f473b4c98f49aef9805fa65b64
depends_lib-append  port:tre

post-patch {
    reinplace "s|@@MP_INCLUDE_DIR@@|${prefix}/include|g" ${worksrcpath}/setup.py
}