Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/glances/
Date: Fri, 25 Nov 2016 21:49:43
Message-Id: 1480110567.fb1facd7eb7eb4fb5f5d15706603e3632d9cbcce.monsieurp@gentoo
1 commit: fb1facd7eb7eb4fb5f5d15706603e3632d9cbcce
2 Author: soredake <fdsfgs <AT> krutt <DOT> org>
3 AuthorDate: Mon Nov 7 18:24:38 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 25 21:49:27 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb1facd7
7
8 sys-process/glances: version bump to 2.7.
9
10 Closes: https://github.com/gentoo/gentoo/pull/2776
11
12 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
13
14 sys-process/glances/Manifest | 1 +
15 sys-process/glances/glances-2.7.ebuild | 73 ++++++++++++++++++++++++++++++++++
16 sys-process/glances/metadata.xml | 5 ++-
17 3 files changed, 78 insertions(+), 1 deletion(-)
18
19 diff --git a/sys-process/glances/Manifest b/sys-process/glances/Manifest
20 index 87f3507..14933bd 100644
21 --- a/sys-process/glances/Manifest
22 +++ b/sys-process/glances/Manifest
23 @@ -1,3 +1,4 @@
24 DIST Glances-2.4.2.tar.gz 5497895 SHA256 31f1e4c2e129904a373f3b20d6800472375e415e01161168469ccebb320c9517 SHA512 ada7e2a9766dec54b26fa1fccac3b1abe6b9abcc16a96c6bb30d537370648732a99cff41c6c812908531a4995e118cb3d1127196184f40dee7a01a6a8a85d9b9 WHIRLPOOL 91cd5dfbe891c16bbbe5c6ae17500498c230d36a0795ba134a0384770cae04cbdf08b5236fd56157e438eaff17a7bd9cac3bc42bee7980239faf5c9fc18fc683
25 DIST Glances-2.5.1.tar.gz 5807072 SHA256 d3db40ce50b7157a94195aa0076d0eadae85dc4f24557e51c3b1a4dbd972359e SHA512 ea099f5db7e73676aaedcd8b416708f2374de57afe0b8292b86f2d0e6295053f0af7bfdb51e3e6cafcb3d7f2b967b788c8d2d1ec806256d2e11b413a7e25ed98 WHIRLPOOL 64a758068436647027a602095194bffdea3cb8b8ac04107b1306f15aa69f23a2c2e9d8b2d222c18434ad5cf26f88e12dd63e4a30b17b3f8665355f0d9d8f292c
26 DIST Glances-2.6.1.tar.gz 8233445 SHA256 822f0f37455d46732a059f8e2b49762edb90ad66edd61cdf869a4b3683ac2b59 SHA512 09cc8a8a96b53de14de4c0476273e1f3b9655d2d9b4d3220342851b476073ef30ea2c1ac4a33c240ead7911ec2e193398c1e1032860ace607afd4de277249c14 WHIRLPOOL 8e7742368051c6c2c7c5cdf8f093e1aaee5bca012801ac9edaf9043b7e3a3b508daa3dea199407c1ad5947b7cc001071491afc1336d877dd81a14106816888c0
27 +DIST Glances-2.7.tar.gz 13277344 SHA256 4beab1d9532fb016a8236a7449b1ce994f391b7021d66b5cb23d8a26233ad48e SHA512 f2613207cd4f0deed88a8a1949cf78b2b2b334d2313c4b6bf0762bbc6e083b3365cd2a107a5dc52e330595a01f69c3ea8fda9278f22155fe3b16cd71d5b721c7 WHIRLPOOL 16e2d3364a4b382d278fb9d0fd3ac6e6518fd324263330fa5fe80d4159bc8e2824a18cb461810a913c4524e293f3c1e99f5c60c985dce92e58dc373f95c16374
28
29 diff --git a/sys-process/glances/glances-2.7.ebuild b/sys-process/glances/glances-2.7.ebuild
30 new file mode 100644
31 index 00000000..0edf3a9
32 --- /dev/null
33 +++ b/sys-process/glances/glances-2.7.ebuild
34 @@ -0,0 +1,73 @@
35 +# Copyright 1999-2016 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +# $Id$
38 +
39 +EAPI=6
40 +
41 +PYTHON_COMPAT=( python{2_7,3_{4,5}} )
42 +PYTHON_REQ_USE="ncurses"
43 +
44 +inherit distutils-r1 eutils linux-info
45 +
46 +DESCRIPTION="CLI curses based monitoring tool"
47 +HOMEPAGE="https://github.com/nicolargo/glances"
48 +SRC_URI="mirror://pypi/${PN^:0:1}/${PN^}/${P^}.tar.gz"
49 +
50 +LICENSE="LGPL-3"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
53 +IUSE="doc"
54 +
55 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
56 +# There is another optional extra batinfo, absent from portage
57 +RDEPEND="${DEPEND}
58 + >=dev-python/psutil-2.0.0[${PYTHON_USEDEP}]"
59 +
60 +CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS"
61 +
62 +S="${WORKDIR}/${P^}"
63 +
64 +pkg_setup() {
65 + linux-info_pkg_setup
66 +}
67 +
68 +python_prepare_all() {
69 + # Remove duplicate entries of a prebuilt doc build and
70 + # ensure install of the file glances.conf in /etc/${PN}
71 + sed -i -r '\|share/doc/glances|,/\),/ {
72 + s.*share/doc/glances.*|("etc/glances", ["conf/glances.conf"]),|p
73 + d
74 + }' -- 'setup.py' || die
75 +
76 + distutils-r1_python_prepare_all
77 +}
78 +
79 +python_install_all() {
80 + # add an intended file from original data set from setup.py to DOCS
81 + local DOCS=( README.rst conf/glances.conf )
82 + # setup for pre-built html docs in setup.py
83 + use doc && local HTML_DOCS=( docs/_build/html/. )
84 +
85 + distutils-r1_python_install_all
86 +}
87 +
88 +pkg_postinst() {
89 + optfeature "Action script feature" dev-python/pystache
90 + optfeature "Autodiscover mode" dev-python/zeroconf
91 + optfeature "Battery monitoring support" dev-python/batinfo
92 + optfeature "Docker monitoring support" dev-python/docker-py
93 + optfeature "Graphical/chart support" dev-python/matplotlib
94 + # https://bitbucket.org/gleb_zhulik/py3sensors
95 + # optfeature "Hardware monitoring support" dev-python/py3sensors
96 + optfeature "IP plugin" dev-python/netifaces
97 + optfeature "InfluxDB export module" dev-python/influxdb
98 + optfeature "Hard drive temperature monitoring" app-admin/hddtemp
99 + optfeature "Quicklook CPU info" dev-python/py-cpuinfo
100 + optfeature "RAID support" dev-python/pymdstat
101 + optfeature "RabbitMQ/ActiveMQ export module" dev-python/pika
102 + # https://github.com/banjiewen/bernhard
103 + # optfeature "Riemann export" dev-python/bernhard
104 + optfeature "SNMP support" dev-python/pysnmp
105 + optfeature "StatsD export module" dev-python/statsd
106 + optfeature "Web server mode" dev-python/bottle
107 +}
108
109 diff --git a/sys-process/glances/metadata.xml b/sys-process/glances/metadata.xml
110 index 26e84e6..4b75e76 100644
111 --- a/sys-process/glances/metadata.xml
112 +++ b/sys-process/glances/metadata.xml
113 @@ -1,7 +1,10 @@
114 <?xml version="1.0" encoding="UTF-8"?>
115 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
116 <pkgmetadata>
117 - <!-- maintainer-needed -->
118 + <maintainer type="person">
119 + <email>fdsfgs@×××××.org</email>
120 + <name>soredake</name>
121 + </maintainer>
122 <longdescription>
123 Glances is a cross-platform curses-based monitoring tool written in Python.
124 </longdescription>