summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Helmert III <ajak@gentoo.org>2022-07-29 11:29:39 -0500
committerJohn Helmert III <ajak@gentoo.org>2022-07-29 11:30:05 -0500
commit2347137aa49c289cadb2e4fd3bff0fdeeccf527f (patch)
tree7f874a664c8ed2ddb24d300ea88b4a13d130f824 /sys-process
parentapp-containers/syft: add -extldflags switch to the linker flags (diff)
downloadgentoo-2347137aa49c289cadb2e4fd3bff0fdeeccf527f.tar.gz
gentoo-2347137aa49c289cadb2e4fd3bff0fdeeccf527f.tar.bz2
gentoo-2347137aa49c289cadb2e4fd3bff0fdeeccf527f.zip
sys-process/glances: add 3.2.7
Signed-off-by: John Helmert III <ajak@gentoo.org>
Diffstat (limited to 'sys-process')
-rw-r--r--sys-process/glances/Manifest1
-rw-r--r--sys-process/glances/glances-3.2.7.ebuild93
2 files changed, 94 insertions, 0 deletions
diff --git a/sys-process/glances/Manifest b/sys-process/glances/Manifest
index 7b9d5ab0f796..cc26997b8a87 100644
--- a/sys-process/glances/Manifest
+++ b/sys-process/glances/Manifest
@@ -2,3 +2,4 @@ DIST glances-3.2.2.tar.gz 6861708 BLAKE2B 99ed3298724a82f036660f05cfd374f8dfa488
DIST glances-3.2.4.2.tar.gz 6914758 BLAKE2B faab5df2689477c5b6df047a2e0d03b09981f064d13ece4e66bdabb816168e035771ed7fd8863723b57c88f47d42674ca3553b5538c0386eab32516fdc7e2a1d SHA512 74d495303b8c0e421a2139167d998c56adfb09434f72faf34c46e0be07087c0a152a1a637b62badaf3b1934ee7892c1a9e205c260aa10655b0bfff91491fc5e1
DIST glances-3.2.5.tar.gz 6913167 BLAKE2B 8dc96e59f3cfd624211e0e30d5c5c5bc790a2fea62cd92068bfb779048d51fd95e6c83e62fd70ad2d1e8450435616803e01f7434d419b4f4187ad41fc193121a SHA512 ebff1cf893ca4d3e490f4a6b72fa70df0afb4c36ac1b3fa762dcaa47206bc1e613c8d87f1b2fc5cae27636612a89b417ae91d016a129da4ac43a2a8a6f913945
DIST glances-3.2.6.4.gh.tar.gz 6950769 BLAKE2B 69437cce71640c4291bc9f91a6c65a05d608e91e834193fabb5b66c4a5fba92238a3aad3b972e71e8e4baff6c92045d1807e65bad43f1318a7cc077c89c4f978 SHA512 21e2a6dacd2181d9b84927365425d4cf7767b73f92949e778c42db68634cf655802c371418c51265c89099bbe11ed130e4b74ca0605601b7703dc0ee992f5417
+DIST glances-3.2.7.gh.tar.gz 6950597 BLAKE2B b76632787d39cb0f9388c00cc5838a9f553020b7ce1b502f205bbbf2255d7e2e02a2f2d629a84b23951b02a019d20b121dea7ea2cb7dec0a77b7c88ea4679cb1 SHA512 12edf99cf30c72a60eb7a604bce99bdac3ae290e910d0b88fc0b8b99045512dafd8d39bc61e8c768191335727ee5e2db4fa7d17ad92f63e849413a233c2ba5be
diff --git a/sys-process/glances/glances-3.2.7.ebuild b/sys-process/glances/glances-3.2.7.ebuild
new file mode 100644
index 000000000000..ae070a4b0976
--- /dev/null
+++ b/sys-process/glances/glances-3.2.7.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_SINGLE_IMPL=1
+PYTHON_COMPAT=( pypy3 python3_{8..11} )
+PYTHON_REQ_USE="ncurses"
+
+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}.gh.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="
+ $(python_gen_cond_dep '
+ dev-python/defusedxml[${PYTHON_USEDEP}]
+ dev-python/future[${PYTHON_USEDEP}]
+ dev-python/packaging[${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}/${PN}-3.2.5-disable-update-check.patch"
+)
+
+distutils_enable_tests setup.py
+distutils_enable_sphinx docs --no-autodoc
+
+pkg_setup() {
+ linux-info_pkg_setup
+ python-single-r1_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 "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
+}