# -*- 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-qrcode
version             8.2
revision            0
license             BSD
platforms           {darwin any}
supported_archs     noarch
maintainers         nomaintainer

description         QR Code image generator
long_description    {*}${description}

homepage            https://github.com/lincolnloop/python-qrcode

checksums           rmd160  41a7e04d2e94f2106455da5ceca89cbc38413a63 \
                    sha256  35c3f2a4172b33136ab9f6b3ef1c00260dd2f66f858f24d88418a015f446506c \
                    size    43317

python.versions     39 310 311 312 313
python.pep517_backend \
                    poetry

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

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