# -*- 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-spdx
version             2.5.1
revision            0

platforms           darwin
supported_archs     noarch
license             public-domain
maintainers         {@korusuke somaiya.edu:karan.sheth} openmaintainer

description         SPDX license list database
long_description    ${description}

homepage            https://github.com/bbqsrc/spdx-python

checksums           sha256  4d734b0bcc6c9ec34d238621633bd2ffa5b42773b055cbe0b18e925e1ee039b9 \
                    rmd160  40c3abc42d54cbdd8daa1821db1598694ba0cd03 \
                    size    616927

python.versions     37 38 39 310

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

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

    livecheck.type  none
}
