summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/pygccxml/Manifest1
-rw-r--r--dev-python/pygccxml/files/pygccxml-2.6.1-xml_generator.patch9
-rw-r--r--dev-python/pygccxml/pygccxml-2.6.1.ebuild70
3 files changed, 80 insertions, 0 deletions
diff --git a/dev-python/pygccxml/Manifest b/dev-python/pygccxml/Manifest
index 2e8b7633ee94..b7d38bf3437f 100644
--- a/dev-python/pygccxml/Manifest
+++ b/dev-python/pygccxml/Manifest
@@ -1 +1,2 @@
DIST pygccxml-2.5.0.gh.tar.gz 3163862 BLAKE2B 2a61474acab7e7a21b21bc7131a9b9aae2a318d3b761c9a3865055146331891e5fb2041a9136bd8816e60a4dc76a39a22d5f5632f22336341667eee537521a42 SHA512 499be7383ac9817c5620f7f0b2e6fdb9a6f5d934cc54a2ef9864877a2a7d896997ab5bc2e8b0c3c87df1ac7e4a384d3c8cbcc87f9496125502c97766df57b003
+DIST pygccxml-2.6.1.gh.tar.gz 3154561 BLAKE2B 95fb9df63f4175eab707211cb14d178437928ddad76eeb416d8cf4a48b29c211d80ba55533deb0a12e6bad4435df9bf82a1321b37cdc8db39d217f2995d1215e SHA512 b0ccd12b50d93287189fa86be6e11f44e28869045e6d7f6f84f34220cea642fc267eee150fe544bb54839b7f467f64af4a6025c84b94df7793645f2d444ae60d
diff --git a/dev-python/pygccxml/files/pygccxml-2.6.1-xml_generator.patch b/dev-python/pygccxml/files/pygccxml-2.6.1-xml_generator.patch
new file mode 100644
index 000000000000..1daf9e7afbf1
--- /dev/null
+++ b/dev-python/pygccxml/files/pygccxml-2.6.1-xml_generator.patch
@@ -0,0 +1,9 @@
+diff --git a/tests/xml_generator.cfg b/tests/xml_generator.cfg
+new file mode 100644
+index 0000000..44aea50
+--- /dev/null
++++ b/tests/xml_generator.cfg
+@@ -0,0 +1,3 @@
++[xml_generator]
++cflags="-std=c++14"
++
diff --git a/dev-python/pygccxml/pygccxml-2.6.1.ebuild b/dev-python/pygccxml/pygccxml-2.6.1.ebuild
new file mode 100644
index 000000000000..f9872baf8620
--- /dev/null
+++ b/dev-python/pygccxml/pygccxml-2.6.1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit distutils-r1
+
+DESCRIPTION="A specialized XML reader to navigate C++ declarations"
+HOMEPAGE="
+ https://github.com/CastXML/pygccxml/
+ https://pypi.org/project/pygccxml/
+"
+SRC_URI="
+ https://github.com/CastXML/pygccxml/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="Boost-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~riscv ~x86"
+
+DEPEND="
+ ${PYTHON_DEPS}
+ dev-libs/castxml
+"
+RDEPEND="
+ ${DEPEND}
+"
+
+distutils_enable_tests pytest
+distutils_enable_sphinx docs dev-python/sphinx-rtd-theme
+
+EPYTEST_DESELECT=(
+ # fails with >=gcc-14
+ # with 'unable to find actual class definition 'type''
+ tests/test_cached_source_file.py
+ tests/test_core.py
+ tests/test_cpp_standards.py
+ tests/test_decl_printer.py
+ tests/test_declarations_comparison.py
+ tests/test_file_cache.py
+ tests/test_non_copyable_recursive.py
+ tests/test_null_comparison.py
+ tests/test_overrides.py
+ tests/test_pattern_parser.py::test_template_split_std_vector
+ tests/test_project_reader_correctness.py
+ tests/test_xmlfile_reader.py
+
+ tests/test_example.py
+
+ # spaces inside < >
+ tests/test_variable_matcher.py::test_no_defaults
+ tests/test_vector_traits.py::test_element_type
+ tests/test_remove_template_defaults.py
+ tests/test_find_container_traits.py
+)
+
+python_prepare_all() {
+ local PATCHES=(
+ # force -std=c++14 as default for tests because of errors due to
+ # test files with dynamic exception specification
+ "${FILESDIR}/${PN}-2.6.1-xml_generator.patch"
+ "${FILESDIR}/${PN}-2.4.0-doc.patch"
+ )
+
+ distutils-r1_python_prepare_all
+}