Gentoo Archives: gentoo-commits

From: Louis Sautier <sbraz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/supervisor/
Date: Sun, 01 Mar 2020 20:39:25
Message-Id: 1583095151.2b31f686b80091668d7d394c739f6e9c4e467dcc.sbraz@gentoo
1 commit: 2b31f686b80091668d7d394c739f6e9c4e467dcc
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 1 01:29:02 2020 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 1 20:39:11 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b31f686
7
8 app-admin/supervisor: bump to 4.1.0, add Py3.8, improvements
9
10 * Switch supervisor group to GLEP 81.
11 * Rely on distutils_enable_* functions.
12 * meld3 is now bundled with supervisor.
13 * Stop requiring mock for tests (not needed for Python 3).
14
15 Closes: https://bugs.gentoo.org/702732
16 Package-Manager: Portage-2.3.89, Repoman-2.3.20
17 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
18
19 app-admin/supervisor/Manifest | 1 +
20 app-admin/supervisor/supervisor-4.1.0.ebuild | 54 ++++++++++++++++++++++++++++
21 2 files changed, 55 insertions(+)
22
23 diff --git a/app-admin/supervisor/Manifest b/app-admin/supervisor/Manifest
24 index 1c7ee90462b..9f8a8819e14 100644
25 --- a/app-admin/supervisor/Manifest
26 +++ b/app-admin/supervisor/Manifest
27 @@ -1 +1,2 @@
28 DIST supervisor-4.0.4.tar.gz 437708 BLAKE2B 211726da07ce31c00da0d6edba57942d78ee5d2757927b22afe569364c29aaf55375d4895b381f06071bc6b6c39a926ca2073e8fcb8e0ea9673a89aafd08b346 SHA512 22a38f759b0584310f5e16acbfc7b0c4cc59f3206fbfaf6295bd40a826d50ad02c8b0093821362c5038dd987a6599879d82dcefe948a2eda702b89e9f92e471e
29 +DIST supervisor-4.1.0.tar.gz 459020 BLAKE2B 0c4bdc2c89f54c08ad536b43852941f1aadb0173013e0f73337302f500b779023bfa0fcf8cc3ace4968cfc724998a08ea5a63680e290051d13c7cd8ac788dd24 SHA512 1ae343293707ebf33d0a0c0bda2c6cc78278e12737940a79e51b2365e7a20b07d9f5e50134ed2abbf8e7af1ebd8f1746002a159cde1cfc35e83fda0a77dae9c5
30
31 diff --git a/app-admin/supervisor/supervisor-4.1.0.ebuild b/app-admin/supervisor/supervisor-4.1.0.ebuild
32 new file mode 100644
33 index 00000000000..66bc0c1f582
34 --- /dev/null
35 +++ b/app-admin/supervisor/supervisor-4.1.0.ebuild
36 @@ -0,0 +1,54 @@
37 +# Copyright 1999-2020 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=7
41 +
42 +PYTHON_COMPAT=( pypy3 python3_{6,7,8} )
43 +# xml.etree.ElementTree module required.
44 +PYTHON_REQ_USE="xml(+)"
45 +DISTUTILS_USE_SETUPTOOLS=rdepend
46 +
47 +inherit distutils-r1 systemd
48 +
49 +MY_PV="${PV/_beta/b}"
50 +
51 +DESCRIPTION="A system for controlling process state under UNIX"
52 +HOMEPAGE="http://supervisord.org/ https://pypi.org/project/supervisor/"
53 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${PN}-${MY_PV}.tar.gz"
54 +S="${WORKDIR}/${PN}-${MY_PV}"
55 +
56 +LICENSE="repoze ZPL BSD HPND GPL-2"
57 +SLOT="0"
58 +KEYWORDS="~amd64 ~x86"
59 +
60 +RDEPEND="acct-group/supervisor"
61 +
62 +distutils_enable_sphinx docs
63 +distutils_enable_tests pytest
64 +
65 +python_install_all() {
66 + distutils-r1_python_install_all
67 + newinitd "${FILESDIR}/init.d-r2" supervisord
68 + newconfd "${FILESDIR}/conf.d-r1" supervisord
69 + dodoc supervisor/skel/sample.conf
70 + keepdir /etc/supervisord.d
71 + insinto /etc
72 + doins "${FILESDIR}/supervisord.conf"
73 + keepdir /var/log/supervisor
74 + systemd_dounit "${FILESDIR}/supervisord.service"
75 +}
76 +
77 +pkg_preinst() {
78 + fowners :supervisor /var/log/supervisor
79 + fperms 750 /var/log/supervisor
80 +}
81 +
82 +pkg_postinst() {
83 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
84 + # This is a new installation
85 + elog "You may install your configuration files in ${EROOT}/etc/supervisord.d"
86 + elog "For config examples, see ${EROOT}/usr/share/doc/${PF}/sample.conf.bz2"
87 + elog ""
88 + elog "By default, only members of the supervisor group can run supervisorctl."
89 + fi
90 +}