# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                py-macfsevents
python.rootname     MacFSEvents
version             0.8.4
revision            0
license             BSD

python.versions     310 311 312 313 314

maintainers         {stromnov @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            https://github.com/malthe/macfsevents

checksums           rmd160  df3e14b62dcaa641682e53860910cb584b78d927 \
                    sha256  bf7283f1d517764ccdc8195b21631dbbac1c506b920bf9a8ea2956b3127651cb \
                    size    11573

if {${name} ne ${subport}} {
    patchfiles      patch-remove-PyEval_ThreadsInitialized.diff

    patch.pre_args-replace  -p0 -p1

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