# -*- 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             6.1
revision            0
platforms           darwin
license             BSD
maintainers         nomaintainer

description         QR Code image generator
long_description    ${description}

homepage            https://github.com/lincolnloop/python-qrcode
master_sites        pypi:q/qrcode
distname            qrcode-${version}

checksums           rmd160  abf05f559e8d64fee4fb4f3e9cc75b5140066473 \
                    sha256  505253854f607f2abf4d16092c61d4e9d511a3b4392e60bff957a68592b04369 \
                    size    29363

python.versions     27 36 37 38

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 TESTING.rst ${destroot}${docdir}
    }

    livecheck.type      none
}
