Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/urwid/
Date: Sat, 30 Oct 2021 15:37:44
Message-Id: 1635608247.06c52e590713065b351419cd5bb7a9c451a8054c.arthurzam@gentoo
1 commit: 06c52e590713065b351419cd5bb7a9c451a8054c
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 30 15:36:16 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 30 15:37:27 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06c52e59
7
8 dev-python/urwid: add optfeature on dev-python/trio
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/urwid/urwid-2.1.2.ebuild | 9 ++++++++-
13 1 file changed, 8 insertions(+), 1 deletion(-)
14
15 diff --git a/dev-python/urwid/urwid-2.1.2.ebuild b/dev-python/urwid/urwid-2.1.2.ebuild
16 index 8e5ca05854a..f2501abefd2 100644
17 --- a/dev-python/urwid/urwid-2.1.2.ebuild
18 +++ b/dev-python/urwid/urwid-2.1.2.ebuild
19 @@ -5,7 +5,7 @@ EAPI=8
20
21 PYTHON_COMPAT=( python3_{8..10} )
22 PYTHON_REQ_USE="ncurses"
23 -inherit distutils-r1
24 +inherit distutils-r1 optfeature
25
26 DESCRIPTION="Curses-based user interface library for Python"
27 HOMEPAGE="http://urwid.org/ https://pypi.org/project/urwid/ https://github.com/urwid/urwid/"
28 @@ -27,6 +27,9 @@ src_prepare() {
29 # Fix doc generation
30 sed -e 's/!defindex/layout/' -i docs/tools/templates/indexcontent.html || die
31
32 + # Fix for >=dev-python/trio-0.15
33 + sed -e 's/hazmat/lowlevel/' -i urwid/_async_kw_event_loop.py || die
34 +
35 distutils-r1_src_prepare
36 }
37
38 @@ -34,3 +37,7 @@ python_install_all() {
39 use examples && dodoc -r examples
40 distutils-r1_python_install_all
41 }
42 +
43 +pkg_postinst() {
44 + optfeature "Trio event loop" "dev-python/trio"
45 +}