# -*- 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
PortGroup           compiler_wrapper 1.0

name                py-zopfli
version             0.4.2
revision            0

license             Apache-2
maintainers         nomaintainer

description         Zopfli module for python
long_description    {*}${description}

homepage            https://github.com/fonttools/py-zopfli

checksums           rmd160  dbf68b34e08640f9f906230f4b3b497c84541360 \
                    sha256  a75e646fed3a2a42a82e69a81644009189c8ab4271691f020d52da8630d0580e \
                    size    179062

python.versions     310 311 312 313 314

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

    test.run        yes

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst COPYING \
            ${destroot}${docdir}
    }
}
