1 |
commit: 582b5b8f137514cb6ee34fbaf82b303d21305fb5 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 19 21:58:58 2019 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 19 22:12:12 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=582b5b8f |
7 |
|
8 |
sys-process/glances: bump to 3.1.0 |
9 |
|
10 |
Add python 3.7 support. Tests pass. |
11 |
Clarify deps |
12 |
Switch to github tarball to add tests. |
13 |
Re-visit and update optional features list. |
14 |
|
15 |
Package-Manager: Portage-2.3.56, Repoman-2.3.12 |
16 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
17 |
|
18 |
sys-process/glances/Manifest | 1 + |
19 |
sys-process/glances/glances-3.1.0.ebuild | 94 ++++++++++++++++++++++++++++++++ |
20 |
2 files changed, 95 insertions(+) |
21 |
|
22 |
diff --git a/sys-process/glances/Manifest b/sys-process/glances/Manifest |
23 |
index e3d314d6e2d..7e141c2af1b 100644 |
24 |
--- a/sys-process/glances/Manifest |
25 |
+++ b/sys-process/glances/Manifest |
26 |
@@ -1,2 +1,3 @@ |
27 |
DIST Glances-2.11.1.tar.gz 5665685 BLAKE2B 5de75e7770cc01a0ddd6fcb0583e5d23c02e5188c7d6cbd55d2999be9321a1affda351094b8614d206e640e5a1338266b5c77629ec53bb280b9166f7b6a996e2 SHA512 99adccff7d1531760834b76f9a9525df0bf9a8f6f57dbd1f7c3c0515ba3b5c94f26172e19bbc7c93cecbe4bdebcca87ab3a11dd592259509eff85346780ef43a |
28 |
DIST Glances-3.0.2.tar.gz 6248035 BLAKE2B 1f26788d1b1b66899bcbff8478cea75c8cc376a946b20299243f6f48aee59529560863eed329f10b58650b467a2c3032a1df613d5a8b5ea1e71085b3c0222a62 SHA512 db0ec256e2ae371db8840e7e51f0395a581efa89ab233bbaa219d5c138e751373aa79afd4de6120dd0085cd3305397c84435f22068b186e4a1d5fe83fae9d914 |
29 |
+DIST glances-3.1.0.tar.gz 6688798 BLAKE2B 9ae2e6a4944d1af871b88ea325bc23cad24f11e70ff4871eeb6e4a510eb3a1e6f03fa5fa2cfde30d8b9aa0c32137aacb51d2dcb335c7ee6729e8d5913ec4e999 SHA512 a888cafa5987ab7a88caa0248e0cb3d9f65466d71ee8f1ca63565c5a8a59282be77c14f29afb2302fba0e79294c39e96384791cd89d23aa7727bfd4f20e2814d |
30 |
|
31 |
diff --git a/sys-process/glances/glances-3.1.0.ebuild b/sys-process/glances/glances-3.1.0.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..f1b46883366 |
34 |
--- /dev/null |
35 |
+++ b/sys-process/glances/glances-3.1.0.ebuild |
36 |
@@ -0,0 +1,94 @@ |
37 |
+# Copyright 1999-2019 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=6 |
41 |
+ |
42 |
+PYTHON_COMPAT=( python{2_7,3_{4,5,6,7}} ) |
43 |
+PYTHON_REQ_USE="ncurses" |
44 |
+ |
45 |
+inherit distutils-r1 eutils linux-info |
46 |
+ |
47 |
+DESCRIPTION="CLI curses based monitoring tool" |
48 |
+HOMEPAGE="https://github.com/nicolargo/glances" |
49 |
+SRC_URI="https://github.com/nicolargo/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="LGPL-3" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" |
54 |
+IUSE="doc test" |
55 |
+ |
56 |
+RDEPEND=">=dev-python/psutil-5.4.3[${PYTHON_USEDEP}]" |
57 |
+ |
58 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
59 |
+ doc? ( |
60 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
61 |
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
62 |
+ ) |
63 |
+ test? ( ${RDEPEND} ) |
64 |
+" |
65 |
+ |
66 |
+CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS" |
67 |
+ |
68 |
+pkg_setup() { |
69 |
+ linux-info_pkg_setup |
70 |
+} |
71 |
+ |
72 |
+python_prepare_all() { |
73 |
+ # Remove duplicate entries of a prebuilt doc build and |
74 |
+ # ensure install of the file glances.conf in /etc/${PN} |
75 |
+ sed \ |
76 |
+ -e '/share\/doc\/glances/d' \ |
77 |
+ -e "s/'CONTRIBUTING.md',//" \ |
78 |
+ -e "s:'conf/glances.conf':('${EPREFIX}/etc/glances', ['conf/glances.conf':g" \ |
79 |
+ -i setup.py || die |
80 |
+ |
81 |
+ distutils-r1_python_prepare_all |
82 |
+} |
83 |
+ |
84 |
+python_install_all() { |
85 |
+ # add an intended file from original data set from setup.py to DOCS |
86 |
+ local DOCS=( README.rst CONTRIBUTING.md conf/glances.conf ) |
87 |
+ # build docs |
88 |
+ if use doc; then |
89 |
+ pushd docs |
90 |
+ make html |
91 |
+ popd |
92 |
+ local HTML_DOCS=( docs/_build/html/. ) |
93 |
+ fi |
94 |
+ distutils-r1_python_install_all |
95 |
+} |
96 |
+ |
97 |
+python_test() { |
98 |
+ esetup.py test |
99 |
+} |
100 |
+ |
101 |
+pkg_postinst() { |
102 |
+ optfeature "Action script feature" dev-python/pystache |
103 |
+ optfeature "Autodiscover mode" dev-python/zeroconf |
104 |
+ optfeature "Cloud support" dev-python/requests |
105 |
+ optfeature "Quicklook CPU info" dev-python/py-cpuinfo |
106 |
+ optfeature "Docker monitoring support" dev-python/docker-py |
107 |
+ #optfeature "Export module" \ |
108 |
+ # unpackaged/bernhard \ |
109 |
+ # unpackaged/cassandra-driver \ |
110 |
+ # unpackaged/potsdb \ |
111 |
+ # dev-python/couchdb-python \ |
112 |
+ # dev-python/elasticsearch-py \ |
113 |
+ # dev-python/influxdb \ |
114 |
+ # dev-python/kafka-python \ |
115 |
+ # dev-python/pika \ |
116 |
+ # dev-python/paho-mqtt \ |
117 |
+ # dev-python/prometheus_client \ |
118 |
+ # dev-python/pyzmq \ |
119 |
+ # dev-python/statsd |
120 |
+ optfeature "Folder monitoring" dev-python/scandir |
121 |
+ #optfeature "Nvidia GPU monitoring" unpackaged/nvidia-ml-py3 |
122 |
+ optfeature "SVG graph support" dev-python/pygal |
123 |
+ optfeature "IP plugin" dev-python/netifaces |
124 |
+ optfeature "RAID monitoring" dev-python/pymdstat |
125 |
+ #optfeature "SMART support" unpackaged/pySMART.smartx |
126 |
+ optfeature "RAID support" dev-python/pymdstat |
127 |
+ optfeature "SNMP support" dev-python/pysnmp |
128 |
+ optfeature "Web server mode" dev-python/bottle dev-python/requests |
129 |
+ optfeature "WIFI plugin" net-wireless/python-wifi |
130 |
+} |