# $Id: Portfile 58343 2009-09-26 23:30:19Z blb@macports.org $

PortSystem          1.0
PortGroup           python26 1.0
name                py26-pyfsevents
version             0.2b1
maintainers         blb openmaintainer
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            http://pypi.python.org/pypi/pyfsevents
master_sites        http://pypi.python.org/packages/source/p/pyfsevents/
distname            pyfsevents-${version}

checksums           md5     41b41d336ed402b9ad1486f441b51de4 \
                    sha1    b80645f726fd59544bc757b362ace0afd8ed26fd \
                    rmd160  a5f9486dc6ffd08e502aba7dd444c8aa7b9026dc

post-destroot {
   xinstall -m 644 -W ${worksrcpath} BUGS LICENSE README \
      ${destroot}${prefix}/share/doc/${name}
   xinstall -m 755 -d ${destroot}${prefix}/share/examples/${name}
   eval xinstall -m 644 [glob ${worksrcpath}/examples/*] \
      ${destroot}${prefix}/share/examples/${name}
}

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

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     pyfsevents-(\[\\w.\]+)${extract.suffix}

