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

github.setup        nicolargo glances 4.5.4 v
revision            0
categories          sysutils
platforms           {darwin any}
license             GPL-3
maintainers         {hotmail.com:amtor @RobK88} \
                    openmaintainer
supported_archs     noarch

description         Glances is a CLI curses based monitoring tool for GNU/Linux and BSD OS.
long_description    Glances is a cross-platform monitoring tool which aims to present a large \
                    amount of monitoring information through a curses or Web based interface. \
                    The information dynamically adapts depending on the size of the user interface.
checksums           rmd160  17390bac1da059af38e196b0fa327b4458085c0a \
                    sha256  a4f421c608d6c40e926c0256f915f0e820d92e5837e6b5a9eea582cf9b241c4a \
                    size    7697791
github.tarball_from archive

python.default_version \
                    314

depends_lib-append  port:py${python.version}-future \
                    port:py${python.version}-jinja2 \
                    port:py${python.version}-packaging \
                    port:py${python.version}-psutil \
                    port:py${python.version}-setuptools

# Use non-rusty deps across the board.
# https://github.com/nicolargo/glances/issues/2930
depends_run-append  port:py${python.version}-ujson \
                    port:py${python.version}-defusedxml

post-patch {
    reinplace "s|/usr/local|${prefix}|" glances/config.py
}
