# -*- 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-click
version             8.3.3
revision            0
categories-append   devel
platforms           {darwin any}
license             BSD
supported_archs     noarch

python.versions     27 310 311 312 313 314

python.pep517_backend flit

maintainers         {stromnov @stromnov} openmaintainer

description         A simple wrapper around optparse for powerful command line utilities.
long_description    {*}${description}

homepage            https://github.com/pallets/click

checksums           rmd160  3b3916bf46f98b60caace92f4a59ea18ea6cb3cc \
                    sha256  398329ad4837b2ff7cbe1dd166a4c0f8900c3ca3a218de04466f38f6497f18a2 \
                    size    328061

if {${name} ne ${subport}} {
    if {${python.version} eq 27} {
        depends_build-append \
                            port:py${python.version}-setuptools
        depends_lib-append  port:py${python.version}-importlib-metadata
        version             7.1.2
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  fdad02d3ace749f9a10f8f33b22bfdc05fcb5f4e \
                            sha256  d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a \
                            size    297279
        python.pep517_backend setuptools
    }

    test.run        yes
    test.env-append PYTHONPATH=${destroot}${python.pkgd}

    livecheck.type  none
}
