# -*- 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.14.1
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  0a0a7c32cbb12c9119faffd83c4ccbfc9b50f238 \
                    sha256  73d704b3cbf93506c22f3a7d98ae1a75011434a27a978dd0a7b6b30c7794423b \
                    size    770548

# 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.]+)}
