Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/err/
Date: Fri, 26 Feb 2021 14:26:38
Message-Id: 1614349559.ebbc52e34fa1c2f702c06154bad8540bfcfeefe4.sam@gentoo
1 commit: ebbc52e34fa1c2f702c06154bad8540bfcfeefe4
2 Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
3 AuthorDate: Thu Feb 25 18:01:52 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 26 14:25:59 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebbc52e3
7
8 net-im/err: Bump to 6.1.7
9
10 Closes: https://bugs.gentoo.org/751865
11 Closes: https://bugs.gentoo.org/754663
12 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 net-im/err/Manifest | 1 +
16 net-im/err/err-6.1.7.ebuild | 94 +++++++++++++++++++++++++++++++++++++++++++++
17 2 files changed, 95 insertions(+)
18
19 diff --git a/net-im/err/Manifest b/net-im/err/Manifest
20 index 3b52fdf76ff..9b09a0caeaa 100644
21 --- a/net-im/err/Manifest
22 +++ b/net-im/err/Manifest
23 @@ -1 +1,2 @@
24 +DIST err-6.1.7.tar.gz 1359383 BLAKE2B 400bbf4a4180f74993a4414dc55f07a69b34b04277fecd073bd860df9dcd5da4873949df766c0c2f6b7a43b4e87153d0aa77b0abaf95bf9702d76c3c7b290abe SHA512 cd0dadc5ff380c71631bae7711bdba7345046fbe14e369c8efa8eed98752b9ea03f6e4fa3171df257a9d76686c610e28fac5f39f7e8e107348a5746e4354694b
25 DIST errbot-6.1.4.tar.gz 207370 BLAKE2B 187e87cc36393f85c1405a29d332d703cdd2ac9d9c6b50178ff7382bc5feb620b69a77dc21ce8144fc24045f11067865c7273118fc25ec1ad9afb93d6ccc635e SHA512 60cc8f070e2420e4ef5f0124eb6d03b3cf01c44e148ebb8b92f5b504eb6968c754fd82771da9528daab62c9e9f4d6ef97ab1063f1093163208521b26e36b2f2d
26
27 diff --git a/net-im/err/err-6.1.7.ebuild b/net-im/err/err-6.1.7.ebuild
28 new file mode 100644
29 index 00000000000..981a4a81c27
30 --- /dev/null
31 +++ b/net-im/err/err-6.1.7.ebuild
32 @@ -0,0 +1,94 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python3_{7..9} )
39 +DISTUTILS_USE_SETUPTOOLS=rdepend
40 +inherit distutils-r1
41 +
42 +MY_PN="errbot"
43 +MY_P="${MY_PN}-${PV}"
44 +
45 +DESCRIPTION="Multiprotocol chatbot designed to be easily deployable and maintainable"
46 +HOMEPAGE="https://errbot.readthedocs.io/en/latest/"
47 +SRC_URI="https://github.com/errbotio/errbot/archive/${PV}.tar.gz -> ${P}.tar.gz"
48 +
49 +KEYWORDS="~amd64"
50 +LICENSE="GPL-3"
51 +SLOT="0"
52 +IUSE="irc +xmpp"
53 +
54 +DEPEND="
55 + acct-group/err
56 + acct-user/err"
57 +RDEPEND="${DEPEND}
58 + dev-python/ansi[${PYTHON_USEDEP}]
59 + dev-python/bottle[${PYTHON_USEDEP}]
60 + dev-python/colorlog[${PYTHON_USEDEP}]
61 + dev-python/cryptography[${PYTHON_USEDEP}]
62 + dev-python/daemonize[${PYTHON_USEDEP}]
63 + dev-python/deepmerge[${PYTHON_USEDEP}]
64 + dev-python/dulwich[${PYTHON_USEDEP}]
65 + dev-python/flask[${PYTHON_USEDEP}]
66 + dev-python/jinja[${PYTHON_USEDEP}]
67 + dev-python/markdown[${PYTHON_USEDEP}]
68 + dev-python/pygments[${PYTHON_USEDEP}]
69 + dev-python/pyopenssl[${PYTHON_USEDEP}]
70 + dev-python/requests[${PYTHON_USEDEP}]
71 + dev-python/webtest[${PYTHON_USEDEP}]
72 + irc? (
73 + dev-python/irc[${PYTHON_USEDEP}]
74 + )
75 + xmpp? (
76 + dev-python/pyasn1[${PYTHON_USEDEP}]
77 + dev-python/pyasn1-modules[${PYTHON_USEDEP}]
78 + dev-python/slixmpp[${PYTHON_USEDEP}]
79 + )
80 +"
81 +S="${WORKDIR}/${MY_P}"
82 +
83 +distutils_enable_tests pytest
84 +
85 +# NOTES:
86 +# 1. Support for BOT_SENTRY option is missing, cause
87 +# we do not have apropriate packages in portage yet
88 +# 2. Currently only XMPP is supported(IRC still untested)
89 +# 3. Internal web server is temporarily removed (rocket-err from requires.txt)
90 +# 4. pygments-markdown-lexer dependency(needed only for debugging?) is temporarily removed (pygments-markdown-lexer from requires.txt)
91 +
92 +python_prepare_all() {
93 + sed -i -e '/pygments-markdown-lexer/d' setup.py || die
94 +
95 + # NameError: name 'slack' is not defined
96 + rm tests/backend_tests/slack_test.py || die
97 +
98 + distutils-r1_python_prepare_all
99 +}
100 +
101 +python_test() {
102 + local deselect=(
103 + --deselect tests/commands_test.py::test_plugin_cycle
104 + --deselect tests/commands_test.py::test_broken_plugin
105 + --deselect tests/commands_test.py::test_backup
106 + --deselect tests/plugin_management_test.py::test_check_dependencies_requi
107 + )
108 +
109 + pytest -vv "${deselect[@]}" || die "Tests failed with ${EPYTHON}"
110 +}
111 +
112 +python_install_all() {
113 + distutils-r1_python_install_all
114 +
115 + newinitd "${FILESDIR}"/errd.initd.2 errd
116 + newconfd "${FILESDIR}"/errd.confd errd
117 +
118 + dodir /etc/${PN}
119 + keepdir /var/lib/${PN}
120 + keepdir /var/log/${PN}
121 + fowners -R err:err /var/lib/${PN}
122 + fowners -R err:err /var/log/${PN}
123 +
124 + insinto /etc/${PN}
125 + newins errbot/config-template.py config.py
126 +}