# -*- 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-lookup
version             0.3.3
revision            0

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

description         SPDX license list query tool
long_description    {*}${description}

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

checksums           sha256  d41e08ecebb9a6720e8b1dff029b43802c9d929e06dcb648aea58ba93d8f125e \
                    rmd160  21a16e838c5daa36a414413764b56cf7432c65b9 \
                    size    4987

python.versions     310 311 312 313 314

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

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