1 |
commit: 285f7d283e76da665c21b07933cefbeeb9efcef2 |
2 |
Author: soredake <fdsfgs <AT> krutt <DOT> org> |
3 |
AuthorDate: Thu Aug 31 21:15:46 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 2 18:58:55 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=285f7d28 |
7 |
|
8 |
sys-process/glances: fix installing /usr/CONTRIBUTING.md |
9 |
|
10 |
Closes: https://bugs.gentoo.org/628966 |
11 |
|
12 |
sys-process/glances/glances-2.10-r1.ebuild | 73 ++++++++++++++++++++++++++++++ |
13 |
1 file changed, 73 insertions(+) |
14 |
|
15 |
diff --git a/sys-process/glances/glances-2.10-r1.ebuild b/sys-process/glances/glances-2.10-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..98a897e02d6 |
18 |
--- /dev/null |
19 |
+++ b/sys-process/glances/glances-2.10-r1.ebuild |
20 |
@@ -0,0 +1,73 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+ |
26 |
+PYTHON_COMPAT=( python{2_7,3_{4,5}} ) |
27 |
+PYTHON_REQ_USE="ncurses" |
28 |
+ |
29 |
+inherit distutils-r1 eutils linux-info |
30 |
+ |
31 |
+DESCRIPTION="CLI curses based monitoring tool" |
32 |
+HOMEPAGE="https://github.com/nicolargo/glances" |
33 |
+SRC_URI="mirror://pypi/G/${PN^}/${P^}.tar.gz" |
34 |
+ |
35 |
+LICENSE="LGPL-3" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" |
38 |
+IUSE="doc" |
39 |
+ |
40 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
41 |
+# There is another optional extra batinfo, absent from portage |
42 |
+RDEPEND="${DEPEND} |
43 |
+ >=dev-python/psutil-2.0.0[${PYTHON_USEDEP}]" |
44 |
+ |
45 |
+CONFIG_CHECK="~TASK_IO_ACCOUNTING ~TASK_DELAY_ACCT ~TASKSTATS" |
46 |
+ |
47 |
+S="${WORKDIR}/${P^}" |
48 |
+ |
49 |
+pkg_setup() { |
50 |
+ linux-info_pkg_setup |
51 |
+} |
52 |
+ |
53 |
+python_prepare_all() { |
54 |
+ # Remove duplicate entries of a prebuilt doc build and |
55 |
+ # ensure install of the file glances.conf in /etc/${PN} |
56 |
+ sed \ |
57 |
+ -e '/share\/doc\/glances/d' \ |
58 |
+ -e "s/'CONTRIBUTING.md',//" \ |
59 |
+ -e "s:'conf/glances.conf':('/etc/glances', ['conf/glances.conf':g" \ |
60 |
+ -i setup.py || die |
61 |
+ |
62 |
+ distutils-r1_python_prepare_all |
63 |
+} |
64 |
+ |
65 |
+python_install_all() { |
66 |
+ # add an intended file from original data set from setup.py to DOCS |
67 |
+ local DOCS=( README.rst CONTRIBUTING.md conf/glances.conf ) |
68 |
+ # setup for pre-built html docs in setup.py |
69 |
+ use doc && local HTML_DOCS=( docs/_build/html/. ) |
70 |
+ |
71 |
+ distutils-r1_python_install_all |
72 |
+} |
73 |
+ |
74 |
+pkg_postinst() { |
75 |
+ optfeature "Action script feature" dev-python/pystache |
76 |
+ optfeature "Autodiscover mode" dev-python/zeroconf |
77 |
+ optfeature "Battery monitoring support" dev-python/batinfo |
78 |
+ optfeature "Docker monitoring support" dev-python/docker-py |
79 |
+ optfeature "Graphical/chart support" dev-python/matplotlib |
80 |
+ # https://bitbucket.org/gleb_zhulik/py3sensors |
81 |
+ # optfeature "Hardware monitoring support" dev-python/py3sensors |
82 |
+ optfeature "IP plugin" dev-python/netifaces |
83 |
+ optfeature "InfluxDB export module" dev-python/influxdb |
84 |
+ optfeature "Hard drive temperature monitoring" app-admin/hddtemp |
85 |
+ optfeature "Quicklook CPU info" dev-python/py-cpuinfo |
86 |
+ optfeature "RAID support" dev-python/pymdstat |
87 |
+ optfeature "RabbitMQ/ActiveMQ export module" dev-python/pika |
88 |
+ # https://github.com/banjiewen/bernhard |
89 |
+ # optfeature "Riemann export" dev-python/bernhard |
90 |
+ optfeature "SNMP support" dev-python/pysnmp |
91 |
+ optfeature "StatsD export module" dev-python/statsd |
92 |
+ optfeature "Web server mode" dev-python/bottle |
93 |
+} |