1 |
commit: 65df71168d095bf95a10aaf58072503d2429b809 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 30 15:16:34 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 30 15:37:26 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65df7116 |
7 |
|
8 |
dev-python/urwid: add 2.1.2 |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/urwid/Manifest | 1 + |
13 |
dev-python/urwid/urwid-2.1.2.ebuild | 36 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 37 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/urwid/Manifest b/dev-python/urwid/Manifest |
17 |
index b500cab7847..6e038e00a76 100644 |
18 |
--- a/dev-python/urwid/Manifest |
19 |
+++ b/dev-python/urwid/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST urwid-2.1.1.tar.gz 633082 BLAKE2B 93393cc9f8e755cf2e25119f26487e062ab145ff4c966c69ad0b153cc2a286aac4f70be9b7e82c57f644fb850f70c88c0c9562cf1c07dcdd427e0afe409a01b0 SHA512 08fc51205f0adeea0ecce876ca17d921961b665894aef440fd826ef0f8b9230cd8d22c5db85fcf4e227f8e70841e3439860e5035ff874b8d0c1834111c3a97db |
22 |
+DIST urwid-2.1.2.tar.gz 634621 BLAKE2B ce274820c27708fd0b10f22359923316576b895f6888c9b174b42dedcd551353b6c3ba797c68d61a082ecf23b8f0108a58454bdb44806e33b74d9e6e5bd28537 SHA512 f102bdde5f5d39d4bce455020bbe4f18290589da0750a3b15b1e2bc8acf8a405f02295d7efa3009877801a36bfbfade92ec963086122e9b133db137d816a1ea5 |
23 |
|
24 |
diff --git a/dev-python/urwid/urwid-2.1.2.ebuild b/dev-python/urwid/urwid-2.1.2.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..8e5ca05854a |
27 |
--- /dev/null |
28 |
+++ b/dev-python/urwid/urwid-2.1.2.ebuild |
29 |
@@ -0,0 +1,36 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..10} ) |
36 |
+PYTHON_REQ_USE="ncurses" |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+DESCRIPTION="Curses-based user interface library for Python" |
40 |
+HOMEPAGE="http://urwid.org/ https://pypi.org/project/urwid/ https://github.com/urwid/urwid/" |
41 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="LGPL-2.1" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
46 |
+IUSE="examples" |
47 |
+ |
48 |
+distutils_enable_sphinx docs |
49 |
+distutils_enable_tests setup.py |
50 |
+ |
51 |
+src_prepare() { |
52 |
+ # optional tests broken by modern tornado versions |
53 |
+ sed -e 's:import tornado:&_broken:' \ |
54 |
+ -i urwid/tests/test_event_loops.py || die |
55 |
+ |
56 |
+ # Fix doc generation |
57 |
+ sed -e 's/!defindex/layout/' -i docs/tools/templates/indexcontent.html || die |
58 |
+ |
59 |
+ distutils-r1_src_prepare |
60 |
+} |
61 |
+ |
62 |
+python_install_all() { |
63 |
+ use examples && dodoc -r examples |
64 |
+ distutils-r1_python_install_all |
65 |
+} |