# -*- 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-pypng
version             0.0.20
platforms           darwin
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

description         Pure Python PNG image encoder/decoder
long_description    {*}${description}

homepage            https://github.com/drj11/pypng

checksums           rmd160  cbc12a8c877ad7161ba3cf541dfe967bd73c2995 \
                    sha256  1032833440c91bafee38a42c38c02d00431b24c42927feb3e63b104d8550170b \
                    size    649538

python.versions     37 38 39

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

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

    livecheck.type  none
}
