1 |
commit: 8e9679eaa043e23257e1a784c2be5a187cf46351 |
2 |
Author: Guillaume Seren <guillaumeseren <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Jun 23 14:31:18 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 5 10:47:25 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e9679ea |
7 |
|
8 |
dev-python/urwidtrees: Add python3_7 + EAPI7 |
9 |
|
10 |
Signed-off-by: Guillaume Seren <guillaumeseren <AT> gmail.com> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/11515 |
12 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
13 |
|
14 |
dev-python/urwidtrees/urwidtrees-1.0.2-r1.ebuild | 45 ++++++++++++++++++++++++ |
15 |
1 file changed, 45 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/urwidtrees/urwidtrees-1.0.2-r1.ebuild b/dev-python/urwidtrees/urwidtrees-1.0.2-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..57257e1b356 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/urwidtrees/urwidtrees-1.0.2-r1.ebuild |
22 |
@@ -0,0 +1,45 @@ |
23 |
+# Copyright 1999-2019 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+DESCRIPTION="Tree widgets for urwid" |
32 |
+HOMEPAGE="https://github.com/pazz/urwidtrees" |
33 |
+SRC_URI="https://github.com/pazz/urwidtrees/archive/${PV}.tar.gz -> ${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="GPL-3" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64 ~x86" |
38 |
+IUSE="doc" |
39 |
+ |
40 |
+DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" |
41 |
+RDEPEND=">=dev-python/urwid-1.1.0[${PYTHON_USEDEP}]" |
42 |
+ |
43 |
+src_prepare() { |
44 |
+ find -name '*.py' -exec \ |
45 |
+ sed -i -e '1i# -*- coding: utf-8 -*-' {} + || die |
46 |
+ |
47 |
+ distutils-r1_src_prepare |
48 |
+ |
49 |
+ local md |
50 |
+ for md in *.md; do |
51 |
+ mv "${md}" "${md%.md}" || die |
52 |
+ done |
53 |
+} |
54 |
+ |
55 |
+src_compile() { |
56 |
+ distutils-r1_src_compile |
57 |
+ |
58 |
+ use doc && emake -C docs html |
59 |
+} |
60 |
+ |
61 |
+src_install() { |
62 |
+ distutils-r1_src_install |
63 |
+ |
64 |
+ if use doc; then |
65 |
+ dodoc -r docs/build/html/. |
66 |
+ fi |
67 |
+} |