# -*- 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-tensorboard
version             2.9.0
revision            0
platforms           {darwin any}
supported_archs     noarch
license             Apache-2
maintainers         {emcrisostomo @emcrisostomo} openmaintainer

description         TensorFlow's Visualization Toolkit
long_description    TensorBoard is a suite of web applications for inspecting \
                    and understanding your TensorFlow runs and graphs.

homepage            https://github.com/tensorflow/tensorboard

master_sites        https://files.pythonhosted.org/packages/69/80/a3abccc4ea941c36741751206e40e619afe28652cf76f74cfa4c3e4248ba/

distname            tensorboard-${version}-py3-none-any

checksums           rmd160  caa11afc9f671f8e5b37da0480f2a0fff41144d8 \
                    sha256  bd78211076dca5efa27260afacfaa96cd05c7db12a6c09cc76a1d6b2987ca621 \
                    size    5797045

livecheck.url       https://pypi.org/project/tensorboard/
livecheck.type      regex
livecheck.regex     /project/tensorboard/(\\d+(\\.\\d+)+)/

extract.suffix      .whl
extract.only

python.versions     39 310
python.pep517_backend

if {${name} ne ${subport}} {
    conflicts   py${python.version}-tensorboard1

    depends_lib-append \
        port:py${python.version}-absl \
        port:py${python.version}-grpcio \
        port:py${python.version}-markdown \
        port:py${python.version}-numpy \
        port:py${python.version}-protobuf3 \
        port:py${python.version}-six \
        port:py${python.version}-werkzeug \
        port:py${python.version}-wheel

    build {
    }

    destroot.target       \
        ${distpath}/${distfiles}
}
