# -*- 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-pyfsevents
version             0.2b1
maintainers         nomaintainer
description         Python interface to Mac OS X's FSEvents
long_description \
   pyfsevents is a C extension providing a Python interface for Mac OS X \
   10.5 and later which allows monitoring for file system events, using \
   FSEvents.

platforms           darwin

license             MIT

homepage            https://pypi.python.org/pypi/pyfsevents
master_sites        pypi:p/pyfsevents/
distname            pyfsevents-${version}

checksums           rmd160  a5f9486dc6ffd08e502aba7dd444c8aa7b9026dc \
                    sha256  3ce90f5c235f413178dfd78e8bef878077193a16ef3b38402a85e06f946c45c1 \
                    size    11992

python.versions     27

if {$subport ne $name} {
    post-destroot {
       xinstall -m 644 -W ${worksrcpath} BUGS LICENSE README \
          ${destroot}${prefix}/share/doc/${subport}
       xinstall -m 755 -d ${destroot}${prefix}/share/examples/${subport}
       xinstall -m 644 {*}[glob ${worksrcpath}/examples/*] \
          ${destroot}${prefix}/share/examples/${subport}
    }
    livecheck.type      none
} else {
    livecheck.regex     pyfsevents-(\[\\w.\]+)${extract.suffix}
}

platform darwin 8 {
   pre-fetch {
      error "${subport} needs at least 10.5 to function"
   }
}
