diff options
Diffstat (limited to 'dev-python/pygccxml')
| -rw-r--r-- | dev-python/pygccxml/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pygccxml/files/pygccxml-2.4.0-doc.patch | 21 | ||||
| -rw-r--r-- | dev-python/pygccxml/metadata.xml | 15 | ||||
| -rw-r--r-- | dev-python/pygccxml/pygccxml-3.0.2.ebuild | 47 |
4 files changed, 84 insertions, 0 deletions
diff --git a/dev-python/pygccxml/Manifest b/dev-python/pygccxml/Manifest new file mode 100644 index 000000000000..16b7fb2b83a2 --- /dev/null +++ b/dev-python/pygccxml/Manifest @@ -0,0 +1 @@ +DIST pygccxml-3.0.2.gh.tar.gz 3156023 BLAKE2B add33e230db83cadd5fd394e7e65c8815227abb3d5f86e76c54bcbc13ba52ffa55698d98785802ac51d9396f009972a093476e489280548469d5000aff8aa010 SHA512 d94b9175bd88bc92d039b758e2052d3c72e510cc381cbd974d670ff6cc06f80f7918bcd8da06efd82729d294e0972cee60690c7b0e24ab2c62a53c366bae9fb5 diff --git a/dev-python/pygccxml/files/pygccxml-2.4.0-doc.patch b/dev-python/pygccxml/files/pygccxml-2.4.0-doc.patch new file mode 100644 index 000000000000..ecec89c14ed9 --- /dev/null +++ b/dev-python/pygccxml/files/pygccxml-2.4.0-doc.patch @@ -0,0 +1,21 @@ +diff --git a/docs/conf.py b/docs/conf.py +index 071ebb1..2ccec1f 100644 +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -23,7 +23,6 @@ import importlib.metadata + # documentation root, use os.path.abspath to make it absolute, like shown here. + sys.path.insert(0, os.path.abspath('.') + "/../src") + +-from release_utils import utils # nopep8 + + # -- General configuration ------------------------------------------------ + +@@ -284,7 +283,7 @@ def run_apidoc(_): + os.path.join(sys.prefix, 'bin', 'sphinx-apidoc')) + subprocess.check_call( + [cmd_path, '-o', output_path, +- os.path.abspath(cur_dir + "/../" + module), ++ os.path.abspath(cur_dir + "/../src/" + module), + '--separate', '--force', '--module-first', '--doc-project=API']) + + diff --git a/dev-python/pygccxml/metadata.xml b/dev-python/pygccxml/metadata.xml new file mode 100644 index 000000000000..632a76e14365 --- /dev/null +++ b/dev-python/pygccxml/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>tomjbe@gentoo.org</email> + <name>Thomas Beierlein</name> + </maintainer> + <maintainer type="project"> + <email>radio@gentoo.org</email> + </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + </maintainer> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-python/pygccxml/pygccxml-3.0.2.ebuild b/dev-python/pygccxml/pygccxml-3.0.2.ebuild new file mode 100644 index 000000000000..5d6b7bda5f62 --- /dev/null +++ b/dev-python/pygccxml/pygccxml-3.0.2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +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} +" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest +distutils_enable_sphinx docs dev-python/sphinx-rtd-theme + +EPYTEST_DESELECT=( + tests/test_smart_pointer.py +) + +python_prepare_all() { + local PATCHES=( + "${FILESDIR}/${PN}-2.4.0-doc.patch" + ) + + distutils-r1_python_prepare_all +} |
