diff options
author | John Helmert III <ajak@gentoo.org> | 2022-07-17 11:09:17 -0500 |
---|---|---|
committer | John Helmert III <ajak@gentoo.org> | 2022-07-17 11:09:54 -0500 |
commit | 8b917f43e3410ff3a5a9011ca170ae9b8a3439aa (patch) | |
tree | f068218e26b8330e7002310912505c794e0a8796 /sys-process/glances | |
parent | dev-util/rizin: remove unused patches (diff) | |
download | gentoo-8b917f43e3410ff3a5a9011ca170ae9b8a3439aa.tar.gz gentoo-8b917f43e3410ff3a5a9011ca170ae9b8a3439aa.tar.bz2 gentoo-8b917f43e3410ff3a5a9011ca170ae9b8a3439aa.zip |
sys-process/glances: add 3.2.5
Signed-off-by: John Helmert III <ajak@gentoo.org>
Diffstat (limited to 'sys-process/glances')
-rw-r--r-- | sys-process/glances/Manifest | 1 | ||||
-rw-r--r-- | sys-process/glances/files/glances-3.2.5-disable-update-check.patch | 31 | ||||
-rw-r--r-- | sys-process/glances/glances-3.2.5.ebuild | 93 |
3 files changed, 125 insertions, 0 deletions
diff --git a/sys-process/glances/Manifest b/sys-process/glances/Manifest index 87d56e6e4083..6884b3fd3103 100644 --- a/sys-process/glances/Manifest +++ b/sys-process/glances/Manifest @@ -1,2 +1,3 @@ DIST glances-3.2.2.tar.gz 6861708 BLAKE2B 99ed3298724a82f036660f05cfd374f8dfa4883ef3c710dfe789ed9f9986bfe873117096564f1dd46d91cd3d0304e0cd1876d17ecd6e3aad98c7dd9df2095265 SHA512 e77b62e5fa6131914b56f0b5249789b3bcac0c625cd429eeb0870a14be55f15c401956c002376e5868fa1332bbb219e9bd3a5bd14c739e3404b068a063af6821 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 diff --git a/sys-process/glances/files/glances-3.2.5-disable-update-check.patch b/sys-process/glances/files/glances-3.2.5-disable-update-check.patch new file mode 100644 index 000000000000..da12729eefd4 --- /dev/null +++ b/sys-process/glances/files/glances-3.2.5-disable-update-check.patch @@ -0,0 +1,31 @@ +Description: Disable nagging suggestion to upgrade using pip +Author: Sebastien Badia <sbadia@debian.org> +Bug-Debian: https://bugs.debian.org/877127 +Forwarded: not-needed +Last-Update: 2022-04-16 + +--- a/glances/standalone.py ++++ b/glances/standalone.py +@@ -107,9 +107,6 @@ + # Init screen + self.screen = GlancesCursesStandalone(config=config, args=args) + +- # Check the latest Glances version +- self.outdated = Outdated(config=config, args=args) +- + @property + def quiet(self): + return self._quiet +@@ -188,12 +185,3 @@ + + # Exit from export modules + self.stats.end() +- +- # Check Glances version versus PyPI one +- if self.outdated.is_outdated(): +- print( +- "You are using Glances version {}, however version {} is available.".format( +- self.outdated.installed_version(), self.outdated.latest_version() +- ) +- ) +- print("You should consider upgrading using: pip install --upgrade glances") diff --git a/sys-process/glances/glances-3.2.5.ebuild b/sys-process/glances/glances-3.2.5.ebuild new file mode 100644 index 000000000000..b19e2edb4389 --- /dev/null +++ b/sys-process/glances/glances-3.2.5.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}.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}/${P}-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 +} |