# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 91002 2012-03-21 10:37:16Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-macfsevents
version             0.2.6
revision            0
license             BSD
platforms           darwin

maintainers         stromnov openmaintainer

description         Thread-based interface to file system observation primitives.

long_description    MacFSEvents is a Python library that provides thread-safe \
                    directory observation primitives using callbacks. It wraps \
                    the Mac OS X FSEvents API in a C-extension.

homepage            http://pypi.python.org/pypi/MacFSEvents/
master_sites        http://pypi.python.org/packages/source/M/MacFSEvents/

distname            MacFSEvents-${version}

checksums           rmd160  9bfe6bacfc0f5767e7841d10eb52603220a3d7c6 \
                    sha256  d2517b50d58e260a6efab8f9978f997939ceee11f6e1161065d73db703eb7708

python.default_version  27
python.versions     26 27

if {$subport != $name} {
    depends_build-append    port:py${python.version}-distribute

    post-destroot {
        xinstall -d ${destroot}${python.prefix}/share/doc/${name}
        xinstall -m 644 -W ${worksrcpath} README.rst CHANGES.rst \
                    ${destroot}${python.prefix}/share/doc/${name}
    }
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     "MacFSEvents-(\\d+(?:\\.\\d+)*)${extract.suffix}"
