# -*- 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-flit_core
version             4.2.0
revision            0
platforms           {darwin any}
supported_archs     noarch
maintainers         {jmr @jmroot} openmaintainer
license             BSD

description         Distribution-building parts of Flit.
long_description    {*}${description}

homepage            https://github.com/takluyver/flit

checksums           rmd160 f3e073c3a28307c46e637abd6958154b62d4356d \
                    sha256 84e4e4d8fdd45ba2613800a3ebc6834de26d47ec9746efc3719f94181137b460

python.versions     37 38 39 310 311 312 313 314 315

python.pep517_backend

if {$subport ne $name} {
    if {${python.version} >= 38} {
        patchfiles-append   zip-timestamps.patch
    }

    if {${python.version} == 37} {
        version     3.12.0
        revision    0
        checksums   md5 c538415c1f27bd69cbbbf3cdd5135d39 \
                    rmd160 26a073eff618f9415815667608a8ffe5c33c9a9a \
                    sha256 18f63100d6f94385c6ed57a72073443e1a71a4acb4339491615d0f16d6ff01b2
    }
    livecheck.type  none
}
