# -*- 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-setuptools-git-versioning
python.rootname     setuptools_git_versioning
version             3.1.0
revision            0

license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         Use git repo data (latest tag, current commit hash, etc) for \
                    building a version number according PEP 440.
long_description    {*}${description}
homepage            https://github.com/dolfinus/setuptools-git-versioning

platforms           {darwin any}
supported_archs     noarch

checksums           rmd160  a70da5c95f8c59c09c7207db727c841084e501ac \
                    sha256  612dfcf184addac9e1c2216f4f229724b2390e5bf613fb925ae80b84f2529172 \
                    size    17418

python.versions     310 311 312 313 314

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

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