1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7} )
7 PYTHON_REQ_USE="ncurses"
9 inherit distutils-r1 eutils linux-info
11 DESCRIPTION="CLI curses based monitoring tool"
12 HOMEPAGE="https://github.com/nicolargo/glances"
13 SRC_URI="https://github.com/nicolargo/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
17 KEYWORDS="amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
19 RESTRICT="!test? ( test )"
21 RDEPEND=">=dev-python/psutil-5.4.3[${PYTHON_USEDEP}]"
23 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
25 dev-python/sphinx[${PYTHON_USEDEP}]
26 dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
31 CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS"
37 python_prepare_all() {
38 # Remove duplicate entries of a prebuilt doc build and
39 # ensure install of the file glances.conf in /etc/${PN}
41 -e '/share\/doc\/glances/d' \
42 -e "s/'CONTRIBUTING.md',//" \
43 -e "s:'conf/glances.conf':('${EPREFIX}/etc/glances', ['conf/glances.conf':g" \
46 distutils-r1_python_prepare_all
49 python_install_all() {
50 # add an intended file from original data set from setup.py to DOCS
51 local DOCS=( README.rst CONTRIBUTING.md conf/glances.conf )
57 local HTML_DOCS=( docs/_build/html/. )
59 distutils-r1_python_install_all
67 optfeature "Action script feature" dev-python/pystache
68 optfeature "Autodiscover mode" dev-python/zeroconf
69 optfeature "Cloud support" dev-python/requests
70 optfeature "Quicklook CPU info" dev-python/py-cpuinfo
71 optfeature "Docker monitoring support" dev-python/docker-py
72 #optfeature "Export module" \
73 # unpackaged/bernhard \
74 # unpackaged/cassandra-driver \
76 # dev-python/couchdb-python \
77 # dev-python/elasticsearch-py \
78 # dev-python/influxdb \
79 # dev-python/kafka-python \
81 # dev-python/paho-mqtt \
82 # dev-python/prometheus_client \
85 optfeature "Folder monitoring" dev-python/scandir
86 #optfeature "Nvidia GPU monitoring" unpackaged/nvidia-ml-py3
87 optfeature "SVG graph support" dev-python/pygal
88 optfeature "IP plugin" dev-python/netifaces
89 optfeature "RAID monitoring" dev-python/pymdstat
90 #optfeature "SMART support" unpackaged/pySMART.smartx
91 optfeature "RAID support" dev-python/pymdstat
92 optfeature "SNMP support" dev-python/pysnmp
93 optfeature "Web server mode" dev-python/bottle dev-python/requests
94 optfeature "WIFI plugin" net-wireless/python-wifi