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