Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/sshuttle/
Date: Mon, 17 May 2021 01:09:05
Message-Id: 1621212739.b36fcb064c9d30014e4d77bb350f16dd34436cf5.sam@gentoo
1 commit: b36fcb064c9d30014e4d77bb350f16dd34436cf5
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 17 00:52:19 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon May 17 00:52:19 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b36fcb06
7
8 net-proxy/sshuttle: fix installation with Sphinx 4.0
9
10 Sphinx 4.0 has changed the installation layout for man pages.
11
12 Closes: https://bugs.gentoo.org/789417
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 net-proxy/sshuttle/sshuttle-1.0.5.ebuild | 14 +++++++++++---
16 1 file changed, 11 insertions(+), 3 deletions(-)
17
18 diff --git a/net-proxy/sshuttle/sshuttle-1.0.5.ebuild b/net-proxy/sshuttle/sshuttle-1.0.5.ebuild
19 index 888000fa91a..5cc44739a20 100644
20 --- a/net-proxy/sshuttle/sshuttle-1.0.5.ebuild
21 +++ b/net-proxy/sshuttle/sshuttle-1.0.5.ebuild
22 @@ -32,10 +32,10 @@ CONFIG_CHECK="~NETFILTER_XT_TARGET_HL ~IP_NF_TARGET_REDIRECT ~IP_NF_MATCH_TTL ~N
23 distutils_enable_tests pytest
24
25 python_prepare_all() {
26 - # don't run tests via setup.py pytest
27 + # Don't run tests via setup.py pytest
28 sed -i "/setup_requires=/s/'pytest-runner'//" setup.py || die
29
30 - # don't require pytest-cov when running tests
31 + # Don't require pytest-cov when running tests
32 sed -i "s/^addopts =/#\0/" setup.cfg || die
33
34 distutils-r1_python_prepare_all
35 @@ -47,6 +47,14 @@ python_compile_all() {
36
37 python_install_all() {
38 HTML_DOCS=( docs/_build/html/. )
39 - doman docs/_build/man/*
40 +
41 + # Sphinx 4.0 changed the layout for installed man pages
42 + # https://bugs.gentoo.org/789417
43 + if has_version '>=dev-python/sphinx-4.0.0' ; then
44 + doman docs/_build/man/1/*
45 + else
46 + doman docs/_build/man/*
47 + fi
48 +
49 distutils-r1_python_install_all
50 }