diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-12-23 12:52:13 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-12-23 12:52:13 +0000 |
| commit | 60c474b4849adab50b70b7cfbe81da8305056a0c (patch) | |
| tree | 64ea48a788a96b02782173a46dc1cfdcb12d7997 /dev-python/breathe | |
| parent | b2c3200882b55698cc652446041af86bc4585094 (diff) | |
| download | baldeagleos-repo-60c474b4849adab50b70b7cfbe81da8305056a0c.tar.gz baldeagleos-repo-60c474b4849adab50b70b7cfbe81da8305056a0c.tar.xz baldeagleos-repo-60c474b4849adab50b70b7cfbe81da8305056a0c.zip | |
Adding metadata
Diffstat (limited to 'dev-python/breathe')
| -rw-r--r-- | dev-python/breathe/breathe-4.34.0.ebuild | 9 | ||||
| -rw-r--r-- | dev-python/breathe/files/breathe-4.34.0-sphinx-5.3.0.patch | 43 |
2 files changed, 50 insertions, 2 deletions
diff --git a/dev-python/breathe/breathe-4.34.0.ebuild b/dev-python/breathe/breathe-4.34.0.ebuild index f5e78b372576..8bf4aa123706 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 + |
