From fe7d7d4531666fff3c9052748a983966352adfa2 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sat, 30 Apr 2022 19:41:40 +0200 Subject: dev-python/ansi2html: Fix USE=doc compilation Closes: https://bugs.gentoo.org/840155 Signed-off-by: Sebastian Pipping Package-Manager: Portage-3.0.30, Repoman-3.0.3 --- dev-python/ansi2html/ansi2html-1.7.0.ebuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'dev-python/ansi2html/ansi2html-1.7.0.ebuild') diff --git a/dev-python/ansi2html/ansi2html-1.7.0.ebuild b/dev-python/ansi2html/ansi2html-1.7.0.ebuild index ca696089677e..64ae09c0f98d 100644 --- a/dev-python/ansi2html/ansi2html-1.7.0.ebuild +++ b/dev-python/ansi2html/ansi2html-1.7.0.ebuild @@ -32,6 +32,13 @@ BDEPEND=" distutils_enable_tests --install pytest +src_prepare() { + # Workaround man page compilation issue with removed setup.py file + # https://bugs.gentoo.org/841134 + echo '.PHONY: setup.py' >> Makefile + eapply_user +} + python_install_all() { use doc && doman man/${PN}.1 distutils-r1_python_install_all @@ -39,6 +46,6 @@ python_install_all() { src_compile() { # Upstream https://github.com/pycontribs/ansi2html/issues/124 - use doc && emake man/ansi2html.1 + use doc && emake _MANUAL_VERSION="${PV}" man/ansi2html.1 distutils-r1_src_compile } -- cgit v1.2.3