# -*- 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           golang 1.0

go.setup            github.com/context-labs/mactop 0.2.2 v
go.package          github.com/context-labs/mactop/v2
github.tarball_from archive
revision            0

description         Apple Silicon Monitor Top written in pure Golang

long_description    \
    ${name} is a terminal-based monitoring tool \"top\" designed to display \
    real-time metrics for Apple Silicon chips. It provides a simple and \
    efficient way to monitor CPU and GPU usage, E-Cores and P-Cores, power \
    consumption, and other system metrics directly from your terminal.

categories          sysutils
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer
platforms           {darwin >= 18}

post-patch {
    reinplace       "s|/var/log|${prefix}/var/log|g" ${worksrcpath}/main.go
}

build.args-append   -o ./${name}

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}

checksums           ${distname}${extract.suffix} \
                        rmd160  27476a9e5195bde7fabb2a10e3462fcc14e14aba \
                        sha256  bbba285a00f7d2f92615bcb18adfc5d8ca0c94b801bfcf67e0084ad18882f4f9 \
                        size    3672368

go.vendors          howett.net/plist \
                        repo    github.com/DHowett/go-plist \
                        lock    v1.0.1 \
                        rmd160  63caa6a89b60804ac2bb87a3d7bdb27fd2504f83 \
                        sha256  4014ed4ef070ba24b885786145aec6c7ee059f3118a8548d25897b2537b48c8b \
                        size    53314 \
                    golang.org/x/sys \
                        lock    v0.19.0 \
                        rmd160  b8d5c2b9cfad17163b4f700b771438ccf303248a \
                        sha256  d66ea87fcd714685af230190cddc8a9de6343f1d0ab83a3688f6a4189c7ab478 \
                        size    1449936 \
                    github.com/yusufpapurcu/wmi \
                        lock    v1.2.4 \
                        rmd160  23599ad98727cca3e1678e909a1014e212d41fc7 \
                        sha256  05d3cee4c74f456174ea5538ee95fba675aeb520fd7bdd3872860a3c7dcafa11 \
                        size    12672 \
                    github.com/stretchr/testify \
                        lock    v1.2.2 \
                        rmd160  45703d5a082af570664fb80e99918077596349aa \
                        sha256  ea0e76528dc47d7d84739cd8a8c7560e3f12d4ff490bdd2641a9990a168e6f2f \
                        size    101747 \
                    github.com/shirou/gopsutil \
                        lock    v3.21.11 \
                        rmd160  240b3721ddc7eb328a57dfa52b6bd19c9be554ec \
                        sha256  4dd5548f75c89173f6dc471ac8453f426c87372d3edaba66538ab5f916a924cb \
                        size    314400 \
                    github.com/pmezard/go-difflib \
                        lock    v1.0.0 \
                        rmd160  fc879bfbdef9e3ff50844def58404e2b5a613ab8 \
                        sha256  7cd492737641847266115f3060489a67f63581e521a8ec51efbc280c33fc991f \
                        size    11409 \
                    github.com/nsf/termbox-go \
                        lock    02980233997d \
                        rmd160  c50ee71cddbc473ad15de6730f03b5e912a32f59 \
                        sha256  85a6ade966b2dac5e4e7d53c705283f94187dd7af62abcca5db3ad5332237195 \
                        size    31955 \
                    github.com/mitchellh/go-wordwrap \
                        lock    v1.0.0 \
                        rmd160  9019795baad40dfcaa09ac4b45a8ebc3ff13b6f0 \
                        sha256  319bf49230fa54f8cf5f18cbfcf5f22fca4aae90a517c77ae5d1fbb13684afa5 \
                        size    2781 \
                    github.com/mattn/go-runewidth \
                        lock    v0.0.4 \
                        rmd160  20081e360b3a667d21a7990197740bbaf51ec259 \
                        sha256  d3b074c23e9cebd7fe786eb4fcdb5f659a8afa7629e3ec9a142f4288067bf39b \
                        size    19840 \
                    github.com/go-ole/go-ole \
                        lock    v1.2.6 \
                        rmd160  70350a72faa92597facb55379e481ea049bb57da \
                        sha256  d818d3dab064c4f8f2be9460353318207f58d562f874d06c0bff91cd423dc2af \
                        size    52614 \
                    github.com/gizak/termui \
                        lock    v3.1.0 \
                        rmd160  f1be2950d4a743e6584c28a5e099c1b33efb53dd \
                        sha256  5e1ae80e56b28bd92d6fad83371235ab3b1761f5023ec80c2cbc90f9de02d461 \
                        size    185693 \
                    github.com/davecgh/go-spew \
                        lock    v1.1.1 \
                        rmd160  7c02883aa81f81aca14e13a27fdca9e7fbc136f7 \
                        sha256  e85d6afa83e64962e0d63dd4812971eccf2b9b5445eda93f46a4406f0c177d5f \
                        size    42171

