1 |
commit: a6b726225bd29a564fff3efa405b0a7f11658a82 |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 7 00:25:34 2019 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 7 00:36:24 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6b72622 |
7 |
|
8 |
app-admin/supervisor: bump to 4.0.0, adds support for Python 3 |
9 |
|
10 |
Also remove now-unnecessary namespace package removal. |
11 |
|
12 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
13 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
14 |
|
15 |
app-admin/supervisor/Manifest | 1 + |
16 |
app-admin/supervisor/supervisor-4.0.0.ebuild | 75 ++++++++++++++++++++++++++++ |
17 |
2 files changed, 76 insertions(+) |
18 |
|
19 |
diff --git a/app-admin/supervisor/Manifest b/app-admin/supervisor/Manifest |
20 |
index 270d4e2c9c7..71d54af1e63 100644 |
21 |
--- a/app-admin/supervisor/Manifest |
22 |
+++ b/app-admin/supervisor/Manifest |
23 |
@@ -1,3 +1,4 @@ |
24 |
DIST supervisor-3.1.4.tar.gz 392321 BLAKE2B 316789fae200f02242a90d3a22a3c6486576f74dbab81b95efc72768a89c54999a370625f9589afe1edff08351840fbe27a7ef8674e6f1e3bbdd4237f3227df6 SHA512 7182db4169d37aa8f7a2a4e1d57ce40f6dea21759ed73fb49286dd5ffb2bdede0fccdc71344e93c8f8c067a2cbc4e3cb0a9a50b22bacdb1b8bc1378581ed5f07 |
25 |
DIST supervisor-3.3.4.tar.gz 419794 BLAKE2B b916c22f3ec1cc180d495f08dac1a66cfd5a93c060906c015a85b2bf64733b4ed298b67050db1332639902a1c6601118a5c05e01c54ed4fc32910d1c24431131 SHA512 fab141b52a548a3efd26f175798b1b8fbb46ce465aa48c3281cb80584b829ecef90ae1355e4106632d13c84363ae03f081d69fb4148303ff387ab7d4e778d21a |
26 |
DIST supervisor-3.3.5.tar.gz 421220 BLAKE2B 63e9db005596921c4a4426de361fc20992a27b67b67ee1256cd64fe6d385909682a5055e4797512410f36f6855592f53c9c5720c54a2dae967578691d05ff3fc SHA512 66c43d40c216e5c3120e083407c848295fa1e59d6d9da916a4bae5c37d4d13208c3bf7c0c8b8a5d570270eb44fac0b1bbcceddb2e84e4f3fc1b6241b43116af7 |
27 |
+DIST supervisor-4.0.0.tar.gz 432825 BLAKE2B 2eca01119f6bfd6bea728ea297424e6e08cc94cc8da78e53fc431013b83b5620a8c88f1a6ef0fcf5f57df46ad43f04215425bede83c02479731795b326dd27c4 SHA512 cca945179aaa16cd7042160b44a2d80e4a6aa388dcabd1572c6ed8610dc6af06cb446a18a5f8fa868a891482032380bf176c1331d9d09702d59fbf8b01651577 |
28 |
|
29 |
diff --git a/app-admin/supervisor/supervisor-4.0.0.ebuild b/app-admin/supervisor/supervisor-4.0.0.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..2741d256322 |
32 |
--- /dev/null |
33 |
+++ b/app-admin/supervisor/supervisor-4.0.0.ebuild |
34 |
@@ -0,0 +1,75 @@ |
35 |
+# Copyright 1999-2019 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+PYTHON_COMPAT=( python{2_7,3_{5,6,7}} ) |
41 |
+# xml.etree.ElementTree module required. |
42 |
+PYTHON_REQ_USE="xml(+)" |
43 |
+ |
44 |
+inherit distutils-r1 systemd user |
45 |
+ |
46 |
+MY_PV="${PV/_beta/b}" |
47 |
+ |
48 |
+DESCRIPTION="A system for controlling process state under UNIX" |
49 |
+HOMEPAGE="http://supervisord.org/ https://pypi.org/project/supervisor/" |
50 |
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${PN}-${MY_PV}.tar.gz" |
51 |
+ |
52 |
+LICENSE="repoze ZPL BSD HPND GPL-2" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~amd64 ~x86" |
55 |
+IUSE="doc test" |
56 |
+ |
57 |
+RDEPEND=" |
58 |
+ >=dev-python/meld3-1.0.0[${PYTHON_USEDEP}] |
59 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
60 |
+" |
61 |
+BDEPEND=" |
62 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
63 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
64 |
+ test? ( |
65 |
+ ${RDEPEND} |
66 |
+ dev-python/mock[${PYTHON_USEDEP}] |
67 |
+ ) |
68 |
+" |
69 |
+ |
70 |
+S="${WORKDIR}/${PN}-${MY_PV}" |
71 |
+ |
72 |
+python_compile_all() { |
73 |
+ if use doc; then |
74 |
+ emake -C docs html |
75 |
+ HTML_DOCS=( docs/.build/html/. ) |
76 |
+ fi |
77 |
+} |
78 |
+ |
79 |
+python_test() { |
80 |
+ esetup.py test |
81 |
+} |
82 |
+ |
83 |
+python_install_all() { |
84 |
+ distutils-r1_python_install_all |
85 |
+ newinitd "${FILESDIR}/init.d-r2" supervisord |
86 |
+ newconfd "${FILESDIR}/conf.d-r1" supervisord |
87 |
+ dodoc supervisor/skel/sample.conf |
88 |
+ keepdir /etc/supervisord.d |
89 |
+ insinto /etc |
90 |
+ doins "${FILESDIR}/supervisord.conf" |
91 |
+ keepdir /var/log/supervisor |
92 |
+ systemd_dounit "${FILESDIR}/supervisord.service" |
93 |
+} |
94 |
+ |
95 |
+pkg_preinst() { |
96 |
+ enewgroup supervisor |
97 |
+ fowners :supervisor /var/log/supervisor |
98 |
+ fperms 750 /var/log/supervisor |
99 |
+} |
100 |
+ |
101 |
+pkg_postinst() { |
102 |
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then |
103 |
+ # This is a new installation |
104 |
+ elog "You may install your configuration files in ${EROOT%/}/etc/supervisord.d" |
105 |
+ elog "For config examples, see ${EROOT%/}/usr/share/doc/${PF}/sample.conf.bz2" |
106 |
+ elog "" |
107 |
+ elog "By default, only members of the supervisor group can run supervisorctl." |
108 |
+ fi |
109 |
+} |