summaryrefslogtreecommitdiff
path: root/dev-python/breathe
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/breathe')
-rw-r--r--dev-python/breathe/Manifest5
-rw-r--r--dev-python/breathe/breathe-4.34.0.ebuild9
-rw-r--r--dev-python/breathe/files/breathe-4.34.0-sphinx-5.3.0.patch43
-rw-r--r--dev-python/breathe/metadata.xml2
4 files changed, 54 insertions, 5 deletions
diff --git a/dev-python/breathe/Manifest b/dev-python/breathe/Manifest
index 11a1289b71b2..9a1b722ae984 100644
--- a/dev-python/breathe/Manifest
+++ b/dev-python/breathe/Manifest
@@ -1,3 +1,4 @@
+AUX breathe-4.34.0-sphinx-5.3.0.patch 1354 BLAKE2B 2cead0e34ec7a0c4e140f794f0212f9dc2e5e5fbc61981d1d7ca906bc462d36fec3032279874f41b893949b34dea43bbd28ef8a3f7c30663ac432330b5088ff9 SHA512 14beb1825fe1cdbc8de14cafe47cf9b855465929bd55f72b8c81239afa2115ec3d390abaa9ec0a16194f60a93776eef89cc04a8d4b246f69318b2fa923b03a26
DIST breathe-4.34.0.gh.tar.gz 206989 BLAKE2B 1c899165ae30de373f90c0fd0b3428d7f4d74e3f66720731c2d02bc2a8bd9c6e5bbd81909b8ab186304975f877d276ed0170c611105335032bee3b689cadef73 SHA512 7f3134575f1b8c4d7c96ebc735e33f656b5c6046de3fa2aee95d5e895fb33f0a83fb4b1c64dd69b9deca20b785868b42d6b1d5e39741500ff5f9d82bf3f130b4
-EBUILD breathe-4.34.0.ebuild 860 BLAKE2B 8fc6ce8f3275cee09bc0fc3bef6bd3df006d3d3acbcbe92e2f9896cf150dfb7d0d276b59d1e11212f02ff1880aacb5c76c3dcf59f40d45164be5a75047b4b7d6 SHA512 4962c20b7d9df7f3ffd6b26d9a3036ac1aafb50925567c1e73669c1dd4ac92776857d989fbceed4befa3d4a271a74f2b11aa054265438f184d396636def55a3c
-MISC metadata.xml 822 BLAKE2B a09a68e18fbcceb11eacf09d338bae8d49dd266e09fc6b622e0ababc35f626276b1d9aa7ffcc2724d036617cd3d81b4f6d8dfc04412cd35959a8468a3aa5118f SHA512 29da310d740a06aece98f36892d6f97c10f3f13de5bf8e70c238663a1b85bde5199766169242a786331d9cbe09a6f0207f186e18d6d13aa6e0b1fd9af5eeaa8f
+EBUILD breathe-4.34.0.ebuild 945 BLAKE2B 009d20f647e9dbdd234af359b0caa976881795b7394886469e2c1dc2f667d362de88973ee197365c9d1a1bb76e8e5b27557d6f955dede136b48ada6d897f28ac SHA512 b6ba5e5afa537fc79d19c3305f98be93b9ecb181a9571c86aaa0ad7f4ccd7562ccac7b268b6701f9b46d0930d884abcf5fce184e630c0aebe9e9cf797cb77aed
+MISC metadata.xml 821 BLAKE2B 4df48e03f2ad66f9a802bb6c238ee2459435e58153ce5cb8556b7b9feda45dd86017266bdf259faaa3e49963976bd61fbff5eccf18f2d9d95d61319995974fa1 SHA512 a14c0334a7029f762133252fcf7b8ae313be23059326876cd64d81fedaac4c37023288779450ff99524b6c3c99f62e7809befeb60476a9e838e6fa2f3169deb7
diff --git a/dev-python/breathe/breathe-4.34.0.ebuild b/dev-python/breathe/breathe-4.34.0.ebuild
index 653ebdf4f02d..7373a531ecb2 100644
--- a/dev-python/breathe/breathe-4.34.0.ebuild
+++ b/dev-python/breathe/breathe-4.34.0.ebuild
@@ -11,10 +11,11 @@ inherit distutils-r1
DESCRIPTION="Sphinx Doxygen renderer"
HOMEPAGE="
https://breathe.readthedocs.io/en/latest/
- https://github.com/michaeljones/breathe/
+ https://github.com/breathe-doc/breathe/
+ https://pypi.org/project/breathe/
"
SRC_URI="
- https://github.com/michaeljones/breathe/archive/v${PV}.tar.gz
+ https://github.com/breathe-doc/breathe/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
@@ -34,3 +35,7 @@ RDEPEND="
"
distutils_enable_tests pytest
+
+PATCHES=(
+ "${FILESDIR}"/${P}-sphinx-5.3.0.patch
+)
diff --git a/dev-python/breathe/files/breathe-4.34.0-sphinx-5.3.0.patch b/dev-python/breathe/files/breathe-4.34.0-sphinx-5.3.0.patch
new file mode 100644
index 000000000000..52c65b99ec4a
--- /dev/null
+++ b/dev-python/breathe/files/breathe-4.34.0-sphinx-5.3.0.patch
@@ -0,0 +1,43 @@
+From 877d88e5aecd1d39978a46fe7f3df35474d7cd8d Mon Sep 17 00:00:00 2001
+From: Daniel Garcia Moreno <daniel.garcia@suse.com>
+Date: Fri, 28 Oct 2022 08:45:33 +0200
+Subject: [PATCH] Fix tests for Sphinx 5.3.0
+
+Fix https://github.com/breathe-doc/breathe/issues/863
+---
+ tests/test_renderer.py | 12 +++++++++++-
+ 1 file changed, 11 insertions(+), 1 deletion(-)
+
+diff --git a/tests/test_renderer.py b/tests/test_renderer.py
+index 1688981..a858c65 100644
+--- a/tests/test_renderer.py
++++ b/tests/test_renderer.py
+@@ -109,6 +109,12 @@ class WrappedCompoundDef(compounddefTypeSub, WrappedDoxygenNode):
+ WrappedDoxygenNode.__init__(self, compounddefTypeSub, **kwargs)
+
+
++class MockMemo:
++ def __init__(self):
++ self.title_styles = ""
++ self.section_level = ""
++
++
+ class MockState:
+ def __init__(self, app):
+ from breathe.project import ProjectInfoFactory
+@@ -123,7 +129,11 @@ class MockState:
+ settings.env = env
+ self.document = utils.new_document("", settings)
+
+- def nested_parse(self, content, content_offset, contentnode):
++ # In sphinx 5.3.0 the method state.nested_parse is not called directly
++ # so this memo object should exists here
++ self.memo = MockMemo()
++
++ def nested_parse(self, content, content_offset, contentnode, match_titles=1):
+ pass
+
+
+--
+2.39.0
+
diff --git a/dev-python/breathe/metadata.xml b/dev-python/breathe/metadata.xml
index e3ae2e327501..8348e294cac4 100644
--- a/dev-python/breathe/metadata.xml
+++ b/dev-python/breathe/metadata.xml
@@ -16,6 +16,6 @@
<stabilize-allarches/>
<upstream>
<remote-id type="pypi">breathe</remote-id>
- <remote-id type="github">michaeljones/breathe</remote-id>
+ <remote-id type="github">breathe-doc/breathe</remote-id>
</upstream>
</pkgmetadata>