commit:     fe7d7d4531666fff3c9052748a983966352adfa2
Author:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 30 17:41:40 2022 +0000
Commit:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Sat Apr 30 17:42:06 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe7d7d45

dev-python/ansi2html: Fix USE=doc compilation

Closes: https://bugs.gentoo.org/840155
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org>
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(-)

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
 }

Reply via email to