dev-libs/mongo-c-driver: fix building against >=sphinx-3

Closes: https://bugs.gentoo.org/716774
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
This commit is contained in:
Thomas Deutschmann
2020-04-21 19:26:26 +02:00
parent ee4d32392f
commit 09f8e9f297
2 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
https://bugs.gentoo.org/716774
--- a/build/sphinx/taglist.py
+++ b/build/sphinx/taglist.py
@@ -24,7 +24,12 @@ THE SOFTWARE.
"""
from docutils import nodes, utils
-from sphinx.environment import NoUri
+
+try:
+ from sphinx.environment import NoUri
+except ImportError:
+ from sphinx.errors import NoUri
+
try:
from sphinx.util.compat import Directive
except ImportError:

View File

@@ -41,6 +41,7 @@ PATCHES=(
"${FILESDIR}/${PN}-1.14.0-no-docs.patch"
"${FILESDIR}/${PN}-1.16.2-enable-tests.patch" # enable tests with system libbson
"${FILESDIR}/${PN}-1.16.2-single-doc-job.patch"
"${FILESDIR}/${PN}-1.16.2-sphinx.patch"
)
src_prepare() {