# -*- 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           github 1.0
PortGroup           python 1.0

github.setup        google gin-config 8508e8b7846123bfd11686bd9e8444b46fb3e4ee
version             0.4.1
revision            20210219
name                py-${github.project}

platforms           darwin
license             Apache-2
maintainers         nomaintainer

description         Gin Config A lightweight configuration library for Python
long_description    ${description}

homepage            https://github.com/google/gin-config

checksums           rmd160  092e47cc424f02b1d38be91a52409cbcd3459534 \
                    sha256  43ed0613933c1b26a4075a3515cebd5e25bd447fad20a92ad79be776ae65cdcd \
                    size    81062

python.versions     37 38 39

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

    depends_run-append \
                    port:py${python.version}-six

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

    livecheck.type  none
}
