summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2021-07-03 03:01:29 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2021-07-03 03:07:09 -0700
commite8e91547c381d75212dde481c74f5438372175d7 (patch)
treeedb25f466080a7b1c37a6dcc90894dcec31b5864 /sys-process
parentnet-misc/wol: keyworded 0.7.1-r2 for hppa, bug #799773 (diff)
downloadgentoo-e8e91547c381d75212dde481c74f5438372175d7.tar.gz
gentoo-e8e91547c381d75212dde481c74f5438372175d7.tar.bz2
gentoo-e8e91547c381d75212dde481c74f5438372175d7.zip
sys-process/glances: add 3.2.0
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'sys-process')
-rw-r--r--sys-process/glances/Manifest1
-rw-r--r--sys-process/glances/glances-3.2.0.ebuild87
2 files changed, 88 insertions, 0 deletions
diff --git a/sys-process/glances/Manifest b/sys-process/glances/Manifest
index ce44f07994ae..e70caee5da41 100644
--- a/sys-process/glances/Manifest
+++ b/sys-process/glances/Manifest
@@ -1,2 +1,3 @@
DIST glances-3.1.6.2.tar.gz 6775046 BLAKE2B 3f65acbb69f8fc4323cbfbd30e79a0d30a9e38e9ff52ea0dc2286213daa66929e6abfccec34e94704fb87f6931f2a17fb30205c14da91f36b37617431bf58363 SHA512 2c62a82ebbc0d562d65f6e1ab39bac14a4b13d13e5fcbb1e98c119d6ea375387ef33b78cd911804504e3fdaa94260de27c211ed1132aae61f10fef8ff8a80fec
DIST glances-3.1.7.tar.gz 6804822 BLAKE2B 7ae78e126da0aa0bfd604836fc66761224a0eedac119b5e74e27e133a27912deff0c2323dfa0b76c49bd542d995a1f60cf688df1792e69d0401d1192dcff14f6 SHA512 b6ebf3b8d0bc60cf77c30fa8dc24c9ad851eab8415e6ae7f50454d96e7bb14866197599d9e5ea9623375f4dca0ca86f017957f2e6a1a9c8b761c6b499b6db82a
+DIST glances-3.2.0.tar.gz 6851053 BLAKE2B f4a4c4c4d824616e977ef3564a62e9b5bfc7e9695fe3807303b16eddb2e8d6952ea8be47918e04024f35c45111785720c8bba04c3a0abc061ad58c65332b4df0 SHA512 fdb8ff473461108d33d0d28df9b05cb49e7d294572352aa7f87018de70f2c02514ad5692f2bcb8da2b4a7517d6d80f25a1bb341339108caeafc82242ab30110a
diff --git a/sys-process/glances/glances-3.2.0.ebuild b/sys-process/glances/glances-3.2.0.ebuild
new file mode 100644
index 000000000000..6978c8ab74ca
--- /dev/null
+++ b/sys-process/glances/glances-3.2.0.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( pypy3 python3_{7,8,9} )
+PYTHON_REQ_USE="ncurses"
+DISTUTILS_USE_SETUPTOOLS=rdepend
+
+inherit distutils-r1 linux-info optfeature
+
+DESCRIPTION="CLI curses based monitoring tool"
+HOMEPAGE="https://github.com/nicolargo/glances"
+SRC_URI="https://github.com/nicolargo/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="dev-python/future[${PYTHON_USEDEP}]
+ >=dev-python/psutil-5.4.3[${PYTHON_USEDEP}]"
+
+# PYTHON_USEDEP omitted on purpose
+BDEPEND="doc? ( dev-python/sphinx_rtd_theme )"
+
+CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS"
+
+PATCHES=(
+ "${FILESDIR}/disable-update-check.patch"
+)
+
+distutils_enable_tests setup.py
+distutils_enable_sphinx docs --no-autodoc
+
+pkg_setup() {
+ linux-info_pkg_setup
+}
+
+python_prepare_all() {
+ # Remove duplicate entries of a prebuilt doc build and
+ # ensure install of the file glances.conf in /etc/${PN}
+ sed \
+ -e '/share\/doc\/glances/d' \
+ -e "s/'CONTRIBUTING.md',//" \
+ -e "s:'conf/glances.conf':('${EPREFIX}/etc/glances', ['conf/glances.conf':g" \
+ -i setup.py || die
+ sed -i "s/, 'irq']/]/" unitest.py || die
+ distutils-r1_python_prepare_all
+}
+
+python_install_all() {
+ # add an intended file from original data set from setup.py to DOCS
+ local DOCS=( README.rst CONTRIBUTING.md conf/glances.conf )
+ distutils-r1_python_install_all
+}
+
+pkg_postinst() {
+ #optfeature "Action script feature" dev-python/pystache
+ optfeature "Autodiscover mode" dev-python/zeroconf
+ optfeature "Cloud support" dev-python/requests
+ optfeature "Quicklook CPU info" dev-python/py-cpuinfo
+ optfeature "Docker monitoring support" dev-python/docker-py
+ #optfeature "Export module" \
+ # unpackaged/bernhard \
+ # unpackaged/cassandra-driver \
+ # unpackaged/potsdb \
+ # dev-python/couchdb-python \
+ # dev-python/elasticsearch-py \
+ # dev-python/influxdb \
+ # dev-python/kafka-python \
+ # dev-python/pika \
+ # dev-python/paho-mqtt \
+ # dev-python/prometheus_client \
+ # dev-python/pyzmq \
+ # dev-python/statsd
+ #optfeature "Nvidia GPU monitoring" unpackaged/nvidia-ml-py3
+ optfeature "SVG graph support" dev-python/pygal
+ optfeature "IP plugin" dev-python/netifaces
+ optfeature "RAID monitoring" dev-python/pymdstat
+ #optfeature "SMART support" unpackaged/pySMART.smartx
+ optfeature "RAID support" dev-python/pymdstat
+ optfeature "SNMP support" dev-python/pysnmp
+ #optfeature "sparklines plugin" unpackaged/sparklines
+ optfeature "Web server mode" dev-python/bottle dev-python/requests
+ optfeature "WIFI plugin" net-wireless/python-wifi
+}