# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8::et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0
PortGroup           python 1.0

github.setup        nicolargo glances 3.1.0 v
categories          sysutils
license             GPL-3
maintainers         {g5pw @g5pw} 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.

platforms           darwin

checksums           rmd160  64d3b6dcf1081e18f018fb637fe71d21ada309cb \
                    sha256  e4f5c35dd73ceafc05f3f428ca4bcca2438402104404b8860845c1b67ae990c3 \
                    size    6688747

python.default_version 37
depends_lib         port:py${python.version}-psutil \
                    port:py${python.version}-setuptools

patch {
    reinplace "s|/usr/local|${prefix}|" setup.py
}

variant html_export description {Adds HTML export option} {
    depends_lib-append port:py${python.version}-jinja2
}