# -*- 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-semver
version             3.1.0
revision            0

supported_archs     noarch
platforms           {darwin any}
license             BSD
maintainers         {@korusuke somaiya.edu:karan.sheth} openmaintainer

description         Python helper for Semantic Versioning
long_description    {*}${description}

homepage            https://github.com/k-bx/python-semver

checksums           sha256  14bc073439513d7773662a338f4db9829cf16c12b74b9568e2d2689975fbd7fc \
                    rmd160  f0d31b5e22e166ce3b403e7059f6608d66135e64 \
                    size    304162

python.versions     310 311 312 313 314

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

    test.run        yes

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst CHANGELOG.rst \
            LICENSE.txt ${destroot}${docdir}
    }
}
