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

github.setup        bvaisvil zenith 0.15.0
github.tarball_from archive
revision            0

description         Zenith - sort of like top or htop but with zoomable \
                    charts, CPU, GPU, network, and disk usage

long_description    {*}${description} \
                    \nFeatures:\n\n \
                    - Optional CPU, Memory, Network, and Disk usage charts \n \
                    - Quick glances at Disk free space, NIC IP addresses, CPU \
                      frequency \n \
                    - Highlight top users of CPU, Memory, & Disk \n \
                    - Battery percentage, time to charge or discharge, power \
                      used \n \
                    - A top-like filterable process table that includes per \
                      process disk usage \n \
                    - Change process priority \n \
                    - Zoomable chart views (with support to scroll back in \
                      time) \n \
                    - Managing processes with signals \n \
                    - Performance data saved between runs \n

categories          sysutils
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  9d4ecb7a14a1593c873543fb874a784c36419ee4 \
                    sha256  f92ed87b66f97b1f6c5863a62cc795ec877510dcd0284fba822ef5dc091b9355 \
                    size    746455

# Issues having zenith 0.12.0 build with vendored cargo.crates
# Allow it to fetch dependencies as needed during build time
build.pre_args-delete       --frozen

depends_build-append \
                    port:git

destroot {
    xinstall -m 0755 \
        ${worksrcpath}/target/[cargo.rust_platform]/release/${name} \
        ${destroot}${prefix}/bin/
}

github.livecheck.regex {([0-9.]+)}
