# -*- 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.4.1
revision            0
platforms           darwin
supported_archs     noarch
license             Apache-2
maintainers         {emcrisostomo @emcrisostomo} {jonesc @cjones051073} 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/64/21/eebd23060763fedeefb78bc2b286e00fa1d8abda6f70efa2ee08c28af0d4/

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

checksums           rmd160  0e9abde4901d779a720afbc9803300ab62c85046 \
                    sha256  7b8c53c396069b618f6f276ec94fc45d17e3282d668979216e5d30be472115e4 \
                    size    10636001

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

extract.suffix      .whl
extract.only

python.versions        37 38 39
python.default_version 38

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

    depends_build-append \
        port:py${python.version}-pip

    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.cmd        pip-${python.branch}
    destroot.args       \
        --ignore-installed \
        --no-cache-dir \
        --no-dependencies \
        --root ${destroot} \
        ${distpath}/${distfiles}
    destroot.post_args

    livecheck.type      none
}
