1 |
commit: fe7d7d4531666fff3c9052748a983966352adfa2 |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 30 17:41:40 2022 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 30 17:42:06 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe7d7d45 |
7 |
|
8 |
dev-python/ansi2html: Fix USE=doc compilation |
9 |
|
10 |
Closes: https://bugs.gentoo.org/840155 |
11 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
12 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
13 |
|
14 |
dev-python/ansi2html/ansi2html-1.7.0.ebuild | 9 ++++++++- |
15 |
1 file changed, 8 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/dev-python/ansi2html/ansi2html-1.7.0.ebuild b/dev-python/ansi2html/ansi2html-1.7.0.ebuild |
18 |
index ca696089677e..64ae09c0f98d 100644 |
19 |
--- a/dev-python/ansi2html/ansi2html-1.7.0.ebuild |
20 |
+++ b/dev-python/ansi2html/ansi2html-1.7.0.ebuild |
21 |
@@ -32,6 +32,13 @@ BDEPEND=" |
22 |
|
23 |
distutils_enable_tests --install pytest |
24 |
|
25 |
+src_prepare() { |
26 |
+ # Workaround man page compilation issue with removed setup.py file |
27 |
+ # https://bugs.gentoo.org/841134 |
28 |
+ echo '.PHONY: setup.py' >> Makefile |
29 |
+ eapply_user |
30 |
+} |
31 |
+ |
32 |
python_install_all() { |
33 |
use doc && doman man/${PN}.1 |
34 |
distutils-r1_python_install_all |
35 |
@@ -39,6 +46,6 @@ python_install_all() { |
36 |
|
37 |
src_compile() { |
38 |
# Upstream https://github.com/pycontribs/ansi2html/issues/124 |
39 |
- use doc && emake man/ansi2html.1 |
40 |
+ use doc && emake _MANUAL_VERSION="${PV}" man/ansi2html.1 |
41 |
distutils-r1_src_compile |
42 |
} |