commit:     e82db9c838c494ff8eba37d89949a57dc1bdcc5e
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Sun Jun 14 20:12:01 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Sun Jun 14 20:12:27 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e82db9c8

dev-python/quantities: allow doc building with newer sphinx

Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 dev-python/quantities/quantities-0.12.4.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dev-python/quantities/quantities-0.12.4.ebuild 
b/dev-python/quantities/quantities-0.12.4.ebuild
index 2a20bbc..f7d77e9 100644
--- a/dev-python/quantities/quantities-0.12.4.ebuild
+++ b/dev-python/quantities/quantities-0.12.4.ebuild
@@ -32,9 +32,12 @@ python_prepare_all() {
        sed -i -e 's:test_fix:_&:' \
                quantities/tests/test_umath.py || die
 
+       # pngmath replaced with imgmath in sphinx>1.8
+       sed -i -e 's:ext.pngmath:ext.imgmath:g' \
+               doc/conf.py || die
+
        distutils-r1_python_prepare_all
 }
 
 distutils_enable_tests unittest
-# wants ext.pngmath which got removed in sphinx-2
-distutils_enable_sphinx doc dev-python/numpydoc "<dev-python/sphinx-2"
+distutils_enable_sphinx doc dev-python/numpydoc ">dev-python/sphinx-1.8"

Reply via email to