# -*- 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.0.4
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  afc7d8c584a5ed0a11033af086e8af226a9c0b206f313e0301f8dd7b6b589602 \
                    rmd160  e89c5a2ece044281c4c3375ed605192d45117fdd \
                    size    269730

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}
    }
}
