# -*- mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-

PortSystem          1.0
PortGroup github    1.0
PortGroup python    1.0
PortGroup fuse      1.0

github.setup        libfuse python-fuse 0.2.1
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                py-fuse
revision            4
categories          fuse python
license             LGPL
maintainers         {dports @drkp} openmaintainer

description         Python interface for FUSE
long_description    {*}$description

checksums           rmd160  c0acad069284e3adba7db8aaf957c7d228c488fc \
                    sha256  e61f453aac7c4e7db8afefb1df0665949111e6685a20fad28876dc64ed5fe699

python.versions     27

if {${name} ne ${subport}} {
    platform darwin {
        patchfiles      patch-_fusemodule.c
    }

    post-destroot {
        foreach item [glob -directory ${worksrcpath} example/*] {
            file copy ${item} ${destroot}${prefix}/share/doc/${subport}/examples/
        }
    }
}
