diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2019-01-19 13:58:58 -0800 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2019-01-19 14:12:12 -0800 |
commit | 582b5b8f137514cb6ee34fbaf82b303d21305fb5 (patch) | |
tree | 356cdd7a3a43c31af4a3b86cea768637ad36d680 /sys-process | |
parent | media-plugins/kodi-pvr-mediaportal-tvserver: Cleanup old versions (diff) | |
download | gentoo-582b5b8f137514cb6ee34fbaf82b303d21305fb5.tar.gz gentoo-582b5b8f137514cb6ee34fbaf82b303d21305fb5.tar.bz2 gentoo-582b5b8f137514cb6ee34fbaf82b303d21305fb5.zip |
sys-process/glances: bump to 3.1.0
Add python 3.7 support. Tests pass.
Clarify deps
Switch to github tarball to add tests.
Re-visit and update optional features list.
Package-Manager: Portage-2.3.56, Repoman-2.3.12
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'sys-process')
-rw-r--r-- | sys-process/glances/Manifest | 1 | ||||
-rw-r--r-- | sys-process/glances/glances-3.1.0.ebuild | 94 |
2 files changed, 95 insertions, 0 deletions
diff --git a/sys-process/glances/Manifest b/sys-process/glances/Manifest index e3d314d6e2dc..7e141c2af1bf 100644 --- a/sys-process/glances/Manifest +++ b/sys-process/glances/Manifest @@ -1,2 +1,3 @@ DIST Glances-2.11.1.tar.gz 5665685 BLAKE2B 5de75e7770cc01a0ddd6fcb0583e5d23c02e5188c7d6cbd55d2999be9321a1affda351094b8614d206e640e5a1338266b5c77629ec53bb280b9166f7b6a996e2 SHA512 99adccff7d1531760834b76f9a9525df0bf9a8f6f57dbd1f7c3c0515ba3b5c94f26172e19bbc7c93cecbe4bdebcca87ab3a11dd592259509eff85346780ef43a DIST Glances-3.0.2.tar.gz 6248035 BLAKE2B 1f26788d1b1b66899bcbff8478cea75c8cc376a946b20299243f6f48aee59529560863eed329f10b58650b467a2c3032a1df613d5a8b5ea1e71085b3c0222a62 SHA512 db0ec256e2ae371db8840e7e51f0395a581efa89ab233bbaa219d5c138e751373aa79afd4de6120dd0085cd3305397c84435f22068b186e4a1d5fe83fae9d914 +DIST glances-3.1.0.tar.gz 6688798 BLAKE2B 9ae2e6a4944d1af871b88ea325bc23cad24f11e70ff4871eeb6e4a510eb3a1e6f03fa5fa2cfde30d8b9aa0c32137aacb51d2dcb335c7ee6729e8d5913ec4e999 SHA512 a888cafa5987ab7a88caa0248e0cb3d9f65466d71ee8f1ca63565c5a8a59282be77c14f29afb2302fba0e79294c39e96384791cd89d23aa7727bfd4f20e2814d diff --git a/sys-process/glances/glances-3.1.0.ebuild b/sys-process/glances/glances-3.1.0.ebuild new file mode 100644 index 000000000000..f1b468833669 --- /dev/null +++ b/sys-process/glances/glances-3.1.0.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_{4,5,6,7}} ) +PYTHON_REQ_USE="ncurses" + +inherit distutils-r1 eutils linux-info + +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 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc test" + +RDEPEND=">=dev-python/psutil-5.4.3[${PYTHON_USEDEP}]" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] + ) + test? ( ${RDEPEND} ) +" + +CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS" + +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 + + 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 ) + # build docs + if use doc; then + pushd docs + make html + popd + local HTML_DOCS=( docs/_build/html/. ) + fi + distutils-r1_python_install_all +} + +python_test() { + esetup.py test +} + +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 "Folder monitoring" dev-python/scandir + #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 "Web server mode" dev-python/bottle dev-python/requests + optfeature "WIFI plugin" net-wireless/python-wifi +} |