# -*- 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-versioningit
version             3.3.0
revision            0

license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         Versioning It with your Version In Git
long_description    {*}${description}
homepage            https://github.com/jwodder/versioningit

checksums           rmd160  e862acb9bd5cfc43402b9feb9271aaa3d67d727d \
                    sha256  b91ad7d73e73d21220e69540f20213f2b729a1f9b35c04e9e137eaf28d2214da \
                    size    220280

python.versions     310 311 312 313 314

python.pep517_backend \
                    hatch

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

    if {${python.version} < 311} {
        depends_lib-append  \
                    port:py${python.version}-tomli
    }
}
