1 |
commit: 429217398964cc9e867dd802b4b98c677764a42e |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jun 12 02:58:59 2021 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jun 12 02:58:59 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42921739 |
7 |
|
8 |
sys-process/glances: add 3.1.7 |
9 |
|
10 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
11 |
|
12 |
sys-process/glances/Manifest | 1 + |
13 |
sys-process/glances/glances-3.1.7.ebuild | 87 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 88 insertions(+) |
15 |
|
16 |
diff --git a/sys-process/glances/Manifest b/sys-process/glances/Manifest |
17 |
index a0e28366a63..ce44f07994a 100644 |
18 |
--- a/sys-process/glances/Manifest |
19 |
+++ b/sys-process/glances/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST glances-3.1.6.2.tar.gz 6775046 BLAKE2B 3f65acbb69f8fc4323cbfbd30e79a0d30a9e38e9ff52ea0dc2286213daa66929e6abfccec34e94704fb87f6931f2a17fb30205c14da91f36b37617431bf58363 SHA512 2c62a82ebbc0d562d65f6e1ab39bac14a4b13d13e5fcbb1e98c119d6ea375387ef33b78cd911804504e3fdaa94260de27c211ed1132aae61f10fef8ff8a80fec |
22 |
+DIST glances-3.1.7.tar.gz 6804822 BLAKE2B 7ae78e126da0aa0bfd604836fc66761224a0eedac119b5e74e27e133a27912deff0c2323dfa0b76c49bd542d995a1f60cf688df1792e69d0401d1192dcff14f6 SHA512 b6ebf3b8d0bc60cf77c30fa8dc24c9ad851eab8415e6ae7f50454d96e7bb14866197599d9e5ea9623375f4dca0ca86f017957f2e6a1a9c8b761c6b499b6db82a |
23 |
|
24 |
diff --git a/sys-process/glances/glances-3.1.7.ebuild b/sys-process/glances/glances-3.1.7.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..6978c8ab74c |
27 |
--- /dev/null |
28 |
+++ b/sys-process/glances/glances-3.1.7.ebuild |
29 |
@@ -0,0 +1,87 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( pypy3 python3_{7,8,9} ) |
36 |
+PYTHON_REQ_USE="ncurses" |
37 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
38 |
+ |
39 |
+inherit distutils-r1 linux-info optfeature |
40 |
+ |
41 |
+DESCRIPTION="CLI curses based monitoring tool" |
42 |
+HOMEPAGE="https://github.com/nicolargo/glances" |
43 |
+SRC_URI="https://github.com/nicolargo/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="LGPL-3" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
48 |
+IUSE="" |
49 |
+ |
50 |
+RDEPEND="dev-python/future[${PYTHON_USEDEP}] |
51 |
+ >=dev-python/psutil-5.4.3[${PYTHON_USEDEP}]" |
52 |
+ |
53 |
+# PYTHON_USEDEP omitted on purpose |
54 |
+BDEPEND="doc? ( dev-python/sphinx_rtd_theme )" |
55 |
+ |
56 |
+CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS" |
57 |
+ |
58 |
+PATCHES=( |
59 |
+ "${FILESDIR}/disable-update-check.patch" |
60 |
+) |
61 |
+ |
62 |
+distutils_enable_tests setup.py |
63 |
+distutils_enable_sphinx docs --no-autodoc |
64 |
+ |
65 |
+pkg_setup() { |
66 |
+ linux-info_pkg_setup |
67 |
+} |
68 |
+ |
69 |
+python_prepare_all() { |
70 |
+ # Remove duplicate entries of a prebuilt doc build and |
71 |
+ # ensure install of the file glances.conf in /etc/${PN} |
72 |
+ sed \ |
73 |
+ -e '/share\/doc\/glances/d' \ |
74 |
+ -e "s/'CONTRIBUTING.md',//" \ |
75 |
+ -e "s:'conf/glances.conf':('${EPREFIX}/etc/glances', ['conf/glances.conf':g" \ |
76 |
+ -i setup.py || die |
77 |
+ sed -i "s/, 'irq']/]/" unitest.py || die |
78 |
+ distutils-r1_python_prepare_all |
79 |
+} |
80 |
+ |
81 |
+python_install_all() { |
82 |
+ # add an intended file from original data set from setup.py to DOCS |
83 |
+ local DOCS=( README.rst CONTRIBUTING.md conf/glances.conf ) |
84 |
+ distutils-r1_python_install_all |
85 |
+} |
86 |
+ |
87 |
+pkg_postinst() { |
88 |
+ #optfeature "Action script feature" dev-python/pystache |
89 |
+ optfeature "Autodiscover mode" dev-python/zeroconf |
90 |
+ optfeature "Cloud support" dev-python/requests |
91 |
+ optfeature "Quicklook CPU info" dev-python/py-cpuinfo |
92 |
+ optfeature "Docker monitoring support" dev-python/docker-py |
93 |
+ #optfeature "Export module" \ |
94 |
+ # unpackaged/bernhard \ |
95 |
+ # unpackaged/cassandra-driver \ |
96 |
+ # unpackaged/potsdb \ |
97 |
+ # dev-python/couchdb-python \ |
98 |
+ # dev-python/elasticsearch-py \ |
99 |
+ # dev-python/influxdb \ |
100 |
+ # dev-python/kafka-python \ |
101 |
+ # dev-python/pika \ |
102 |
+ # dev-python/paho-mqtt \ |
103 |
+ # dev-python/prometheus_client \ |
104 |
+ # dev-python/pyzmq \ |
105 |
+ # dev-python/statsd |
106 |
+ #optfeature "Nvidia GPU monitoring" unpackaged/nvidia-ml-py3 |
107 |
+ optfeature "SVG graph support" dev-python/pygal |
108 |
+ optfeature "IP plugin" dev-python/netifaces |
109 |
+ optfeature "RAID monitoring" dev-python/pymdstat |
110 |
+ #optfeature "SMART support" unpackaged/pySMART.smartx |
111 |
+ optfeature "RAID support" dev-python/pymdstat |
112 |
+ optfeature "SNMP support" dev-python/pysnmp |
113 |
+ #optfeature "sparklines plugin" unpackaged/sparklines |
114 |
+ optfeature "Web server mode" dev-python/bottle dev-python/requests |
115 |
+ optfeature "WIFI plugin" net-wireless/python-wifi |
116 |
+} |