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

github.setup        htop-dev htop 3.5.0
github.tarball_from releases
revision            0
epoch               1
use_xz              yes

checksums           rmd160  2e1e62e69cbe63c6474a7a7ebe72fa22d817c425 \
                    sha256  b6586e405c5223ebe5ac7828df21edad45cbf90288088bd1b18ad8fa700ffa05 \
                    size    461144

categories          sysutils
maintainers         {cal @neverpanic} openmaintainer
license             GPL-2

description         an interactive text-mode process viewer for Unix
long_description    ${name} is {*}${description} systems. It aims to be a better 'top'.

homepage            https://htop.dev

depends_build-append \
                    port:autoconf \
                    port:automake \
                    port:libtool \
                    port:pkgconfig

depends_lib-append  port:ncurses

pre-configure {
    system -W ${worksrcpath} "sh autogen.sh"
}

configure.args      --disable-unwind

post-destroot {
    # Delete the .png and .desktop files
    foreach dir [list applications pixmaps] {
        delete ${destroot}${prefix}/share/${dir}
    }
}

# Exclude beta releases from livecheck
github.livecheck.regex  {([0-9.]+)}
