# -*- 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 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-macfsevents
version             0.3
revision            1
license             BSD
platforms           darwin

python.versions     27 32 33

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  33eaf66f752dc92ae72149a1c037f3d24d82596f \
                    sha256  64b2ecee53cf8972c5295354090ab307324913f020139eec44e6de690db24a3f

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-setuptools

    patchfiles              patch-setup.py.diff

    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}"
