# -*- 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-google-api
python.rootname     google-api-python-client
version             2.41.0
revision            0

categories-append   www devel
supported_archs     noarch
platforms           {darwin any}
license             Apache-2 MIT
maintainers         nomaintainer

description         client library for accessing the Plus, Moderator, and many \
                    other Google APIs
long_description    {*}${description}

homepage            https://github.com/googleapis/google-api-python-client

checksums           rmd160  9b5160018ac3a3482d86459d2bb51552e1b7fc60 \
                    sha256  facbe8e25ea9d07241299bf7704f53dec154ad3dc52fec2ea23ca6d6e5f6b392 \
                    size    7873449

python.versions     39 310 311 312 313

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-httplib2 \
                    port:py${python.version}-google-auth \
                    port:py${python.version}-google-auth-httplib2 \
                    port:py${python.version}-google-api-core \
                    port:py${python.version}-uritemplate

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