1 |
commit: d1c76a77e45040bbb59c0f34e87f1f7391f9fa7e |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 21 00:35:21 2020 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 21 00:36:37 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1c76a77 |
7 |
|
8 |
dev-python/ansi2html: Fix test deps + QA |
9 |
|
10 |
Closes: https://bugs.gentoo.org/723688 |
11 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
13 |
|
14 |
dev-python/ansi2html/ansi2html-1.5.2-r1.ebuild | 45 ++++++++++++++++++++++++++ |
15 |
1 file changed, 45 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/ansi2html/ansi2html-1.5.2-r1.ebuild b/dev-python/ansi2html/ansi2html-1.5.2-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..68135b1df10 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/ansi2html/ansi2html-1.5.2-r1.ebuild |
22 |
@@ -0,0 +1,45 @@ |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+PYTHON_COMPAT=( python3_{6,7} ) |
29 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
30 |
+ |
31 |
+inherit distutils-r1 |
32 |
+ |
33 |
+DESCRIPTION="Convert text with ANSI color codes to HTML" |
34 |
+HOMEPAGE="https://pypi.org/project/ansi2html/ https://github.com/ralphbean/ansi2html" |
35 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
36 |
+ |
37 |
+LICENSE="LGPL-3+" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64 ~arm ~x86" |
40 |
+IUSE="test" |
41 |
+RESTRICT="!test? ( test )" |
42 |
+ |
43 |
+RDEPEND=" |
44 |
+ >=dev-python/six-1.7.3[${PYTHON_USEDEP}]" |
45 |
+DEPEND=" |
46 |
+ test? ( |
47 |
+ ${RDEPEND} |
48 |
+ dev-python/mock[${PYTHON_USEDEP}] |
49 |
+ dev-python/nose[${PYTHON_USEDEP}] |
50 |
+ ) |
51 |
+ " |
52 |
+ |
53 |
+src_compile() { |
54 |
+ distutils-r1_src_compile |
55 |
+} |
56 |
+ |
57 |
+python_test() { |
58 |
+ chmod -x "${S}"/tests/* || die |
59 |
+ esetup.py check |
60 |
+ esetup.py test |
61 |
+} |
62 |
+ |
63 |
+python_install_all() { |
64 |
+ doman man/${PN}.1 |
65 |
+ DOCS=( README.rst man/${PN}.1.txt ) |
66 |
+ distutils-r1_python_install_all |
67 |
+} |