* [gentoo-commits] repo/gentoo:master commit in: dev-python/pygccxml/files/, dev-python/pygccxml/
@ 2025-01-10 16:42 Thomas Beierlein
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Beierlein @ 2025-01-10 16:42 UTC (permalink / raw
To: gentoo-commits
commit: b7b09f9fa3636474af90e386df66f2e4609640e7
Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 10 16:38:57 2025 +0000
Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Fri Jan 10 16:42:28 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7b09f9f
dev-python/pygccxml: add 2.6.1
Had to deselect 109 of 288 tests. See bug for more information.
Bug: https://bugs.gentoo.org/947191
Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>
dev-python/pygccxml/Manifest | 1 +
.../files/pygccxml-2.6.1-xml_generator.patch | 9 +++
dev-python/pygccxml/pygccxml-2.6.1.ebuild | 70 ++++++++++++++++++++++
3 files changed, 80 insertions(+)
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
+}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/pygccxml/files/, dev-python/pygccxml/
@ 2024-10-28 18:46 Thomas Beierlein
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Beierlein @ 2024-10-28 18:46 UTC (permalink / raw
To: gentoo-commits
commit: 846c8c0619c27ff8be0135ba8082f0f0bacfb1d3
Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 28 18:39:21 2024 +0000
Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Mon Oct 28 18:39:21 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=846c8c06
dev-python/pygccxml: Fix test errors with >=sys-devel/clang-19.1.2
pygccxml uses dev-libs/castxml as a tool to parse a syntax tree.
castxml uses clang for that task. Actual >=clang-19.1.2 needs
'-fsized-deallocation' as additional compile flag.
The patch provides these flag.
Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>
dev-python/pygccxml/files/pygccxml-2.5.0-fix-test-flags.patch | 10 ++++++++++
dev-python/pygccxml/pygccxml-2.5.0.ebuild | 2 ++
2 files changed, 12 insertions(+)
diff --git a/dev-python/pygccxml/files/pygccxml-2.5.0-fix-test-flags.patch b/dev-python/pygccxml/files/pygccxml-2.5.0-fix-test-flags.patch
new file mode 100644
index 000000000000..c96ef5e8d7ab
--- /dev/null
+++ b/dev-python/pygccxml/files/pygccxml-2.5.0-fix-test-flags.patch
@@ -0,0 +1,10 @@
+diff --git a/unittests/xml_generator.cfg b/unittests/xml_generator.cfg
+index cb00818..58899b6 100644
+--- a/unittests/xml_generator.cfg
++++ b/unittests/xml_generator.cfg
+@@ -15,3 +15,5 @@ include_paths=
+ compiler=
+ # Keep xml files after errors (useful for debugging)
+ keep_xml=
++# needed with clang-19
++cflags=-fsized-deallocation
diff --git a/dev-python/pygccxml/pygccxml-2.5.0.ebuild b/dev-python/pygccxml/pygccxml-2.5.0.ebuild
index b01b31fa4e77..ade79ae8d672 100644
--- a/dev-python/pygccxml/pygccxml-2.5.0.ebuild
+++ b/dev-python/pygccxml/pygccxml-2.5.0.ebuild
@@ -47,6 +47,8 @@ python_prepare_all() {
"${FILESDIR}/${PN}-2.4.0-doc.patch"
# https://github.com/CastXML/pygccxml/pull/179
"${FILESDIR}/${P}-which.patch"
+ # fixes tests with clang-19
+ "${FILESDIR}/${PN}-2.5.0-fix-test-flags.patch"
)
distutils-r1_python_prepare_all
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/pygccxml/files/, dev-python/pygccxml/
@ 2024-08-26 20:07 Thomas Beierlein
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Beierlein @ 2024-08-26 20:07 UTC (permalink / raw
To: gentoo-commits
commit: 221b27ca6002eaccdd6a9bd30fab9eee8894c7e1
Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 26 20:05:26 2024 +0000
Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Mon Aug 26 20:06:31 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=221b27ca
dev-python/pygccxml: Fix tests
Closes: https://bugs.gentoo.org/936005
Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>
.../pygccxml/files/pygccxml-2.5.0-fix-tests.patch | 107 +++++++++++++++++++++
dev-python/pygccxml/pygccxml-2.5.0.ebuild | 1 +
2 files changed, 108 insertions(+)
diff --git a/dev-python/pygccxml/files/pygccxml-2.5.0-fix-tests.patch b/dev-python/pygccxml/files/pygccxml-2.5.0-fix-tests.patch
new file mode 100644
index 000000000000..5a65fd826fff
--- /dev/null
+++ b/dev-python/pygccxml/files/pygccxml-2.5.0-fix-tests.patch
@@ -0,0 +1,107 @@
+diff --git a/unittests/test_cpp_standards.py b/unittests/test_cpp_standards.py
+index eb28418..7c76c73 100644
+--- a/unittests/test_cpp_standards.py
++++ b/unittests/test_cpp_standards.py
+@@ -23,7 +23,8 @@ class Test(parser_test_case.parser_test_case_t):
+ if "gccxml" in self.config.xml_generator:
+ return True
+
+- parser.parse(["cpp_standards.hpp"], self.config)
++ parser.parse(["cpp_standards.hpp"], self.config,
++ parser.COMPILATION_MODE.ALL_AT_ONCE)
+
+ if platform.system() != 'Windows':
+ self.config.cflags = "-std=c++98"
+@@ -33,7 +34,8 @@ class Test(parser_test_case.parser_test_case_t):
+ parser.parse(["cpp_standards.hpp"], self.config)
+
+ self.config.cflags = "-std=c++11"
+- parser.parse(["cpp_standards.hpp"], self.config)
++ parser.parse(["cpp_standards.hpp"], self.config,
++ parser.COMPILATION_MODE.ALL_AT_ONCE)
+
+ # This is broken with llvm 3.6.2 (the one from homebrew)
+ # It should work with never llvms but I keep the test disabled
+diff --git a/unittests/test_non_copyable_recursive.py b/unittests/test_non_copyable_recursive.py
+index cd78a9a..e18d58f 100644
+--- a/unittests/test_non_copyable_recursive.py
++++ b/unittests/test_non_copyable_recursive.py
+@@ -27,7 +27,7 @@ class Test(parser_test_case.parser_test_case_t):
+ RuntimeError: maximum recursion depth exceeded while
+ calling a Python object
+ """
+- decls = parser.parse([self.header], self.config)
++ decls = parser.parse([self.header], self.config, parser.COMPILATION_MODE.ALL_AT_ONCE)
+ global_ns = declarations.get_global_namespace(decls)
+
+ # Description of the problem (before the fix):
+@@ -52,7 +52,7 @@ class Test(parser_test_case.parser_test_case_t):
+ RuntimeError: maximum recursion depth exceeded while
+ calling a Python object
+ """
+- decls = parser.parse([self.header], self.config)
++ decls = parser.parse([self.header], self.config, parser.COMPILATION_MODE.ALL_AT_ONCE)
+ global_ns = declarations.get_global_namespace(decls)
+
+ # Real life example of the bug. This leads to a similar error,
+diff --git a/unittests/test_null_comparison.py b/unittests/test_null_comparison.py
+index 51caf4a..787ae79 100644
+--- a/unittests/test_null_comparison.py
++++ b/unittests/test_null_comparison.py
+@@ -22,7 +22,7 @@ class Test(parser_test_case.parser_test_case_t):
+ Test for None comparisons with default arguments
+ """
+
+- decls = parser.parse([self.header], self.config)
++ decls = parser.parse([self.header], self.config, parser.COMPILATION_MODE.ALL_AT_ONCE)
+ global_ns = declarations.get_global_namespace(decls)
+
+ ns = global_ns.namespace("ns")
+diff --git a/unittests/test_overrides.py b/unittests/test_overrides.py
+index 9204efc..5ac1b25 100644
+--- a/unittests/test_overrides.py
++++ b/unittests/test_overrides.py
+@@ -23,7 +23,7 @@ class Test(parser_test_case.parser_test_case_t):
+ def setUp(self):
+
+ if not self.global_ns:
+- decls = parser.parse([self.header], self.config)
++ decls = parser.parse([self.header], self.config, parser.COMPILATION_MODE.ALL_AT_ONCE)
+ Test.global_ns = declarations.get_global_namespace(decls)
+ Test.xml_generator_from_xml_file = \
+ self.config.xml_generator_from_xml_file
+diff --git a/unittests/test_pattern_parser.py b/unittests/test_pattern_parser.py
+index 00a6805..4882c26 100644
+--- a/unittests/test_pattern_parser.py
++++ b/unittests/test_pattern_parser.py
+@@ -27,7 +27,7 @@ class Test(parser_test_case.parser_test_case_t):
+ if self.config.xml_generator == "gccxml":
+ return
+
+- decls = parser.parse([self.header], self.config)
++ decls = parser.parse([self.header], self.config, parser.COMPILATION_MODE.ALL_AT_ONCE)
+
+ for decl in declarations.make_flatten(decls):
+ if "myClass" in decl.name:
+@@ -44,7 +44,7 @@ class Test(parser_test_case.parser_test_case_t):
+ if self.config.xml_generator == "gccxml":
+ return
+
+- decls = parser.parse([self.header], self.config)
++ decls = parser.parse([self.header], self.config, parser.COMPILATION_MODE.ALL_AT_ONCE)
+ global_ns = declarations.get_global_namespace(decls)
+ criteria = declarations.declaration_matcher(name="myClass")
+ _ = declarations.matcher.find(criteria, global_ns)
+diff --git a/unittests/test_smart_pointer.py b/unittests/test_smart_pointer.py
+index e9183b7..4a85860 100644
+--- a/unittests/test_smart_pointer.py
++++ b/unittests/test_smart_pointer.py
+@@ -22,7 +22,7 @@ class Test(parser_test_case.parser_test_case_t):
+ def setUp(self):
+ if self.config.xml_generator == "gccxml":
+ return
+- decls = parser.parse([self.header], self.config)
++ decls = parser.parse([self.header], self.config, parser.COMPILATION_MODE.ALL_AT_ONCE)
+ self.global_ns = declarations.get_global_namespace(decls)
+
+ def test_is_smart_pointer(self):
diff --git a/dev-python/pygccxml/pygccxml-2.5.0.ebuild b/dev-python/pygccxml/pygccxml-2.5.0.ebuild
index ba61c6612e8e..f9950b4f3f47 100644
--- a/dev-python/pygccxml/pygccxml-2.5.0.ebuild
+++ b/dev-python/pygccxml/pygccxml-2.5.0.ebuild
@@ -40,6 +40,7 @@ EPYTEST_DESELECT=(
python_prepare_all() {
local PATCHES=(
+ "${FILESDIR}/${PN}-2.5.0-fix-tests.patch"
"${FILESDIR}/${PN}-2.4.0-doc.patch"
# https://github.com/CastXML/pygccxml/pull/179
"${FILESDIR}/${P}-which.patch"
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/pygccxml/files/, dev-python/pygccxml/
@ 2024-04-15 14:30 Michał Górny
0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2024-04-15 14:30 UTC (permalink / raw
To: gentoo-commits
commit: 54024ed6594d81a08715a50cd67bf0377350f67e
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 15 13:54:08 2024 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Apr 15 14:30:51 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54024ed6
dev-python/pygccxml: Bump to 2.5.0
Closes: https://bugs.gentoo.org/929489
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pygccxml/Manifest | 1 +
.../pygccxml/files/pygccxml-2.5.0-which.patch | 68 ++++++++++++++++++++++
dev-python/pygccxml/pygccxml-2.5.0.ebuild | 49 ++++++++++++++++
3 files changed, 118 insertions(+)
diff --git a/dev-python/pygccxml/Manifest b/dev-python/pygccxml/Manifest
index 01e9b3c3f3e8..2b29408d2234 100644
--- a/dev-python/pygccxml/Manifest
+++ b/dev-python/pygccxml/Manifest
@@ -1 +1,2 @@
DIST pygccxml-2.4.0.gh.tar.gz 3165189 BLAKE2B 855b0b6313be29e7719abe4cc6e654904657c11bfd7310d647227ce9d7760821eeb348dcd9892afbcc3d467db96daaf3010e92803fe28962db9a255cf81eae46 SHA512 48bf4887344c68d0a93a3908cc0a744f3d6a74dce92be88527e85cf7ba1a46f88560730dce0b858f31523cada836aad40461de935c5c2a041de0fa2ae5e38c30
+DIST pygccxml-2.5.0.gh.tar.gz 3163862 BLAKE2B 2a61474acab7e7a21b21bc7131a9b9aae2a318d3b761c9a3865055146331891e5fb2041a9136bd8816e60a4dc76a39a22d5f5632f22336341667eee537521a42 SHA512 499be7383ac9817c5620f7f0b2e6fdb9a6f5d934cc54a2ef9864877a2a7d896997ab5bc2e8b0c3c87df1ac7e4a384d3c8cbcc87f9496125502c97766df57b003
diff --git a/dev-python/pygccxml/files/pygccxml-2.5.0-which.patch b/dev-python/pygccxml/files/pygccxml-2.5.0-which.patch
new file mode 100644
index 000000000000..52ac56ed48f0
--- /dev/null
+++ b/dev-python/pygccxml/files/pygccxml-2.5.0-which.patch
@@ -0,0 +1,68 @@
+From 08f53536a0e76bab000df2837af4a13f06bbd4a7 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Mon, 15 Apr 2024 15:50:39 +0200
+Subject: [PATCH] Use `shutil.which()` to get compiler path
+
+Remove the `__get_first_compiler_in_path()` function that used
+`which(1)` / `where` program to get the compiler path, with built-in
+`shutil.which()`. This fixes pygccxml on systems where `which(1)`
+is no longer present (it is not a standard POSIX tool, and Linux
+distributions are working towards making it optional).
+---
+ src/pygccxml/parser/config.py | 28 +++++++---------------------
+ 1 file changed, 7 insertions(+), 21 deletions(-)
+
+diff --git a/src/pygccxml/parser/config.py b/src/pygccxml/parser/config.py
+index 1032b54e..4fe4a6a0 100644
+--- a/src/pygccxml/parser/config.py
++++ b/src/pygccxml/parser/config.py
+@@ -11,6 +11,7 @@
+ import os
+ import copy
+ import platform
++import shutil
+ import subprocess
+ import warnings
+ # In py3, ConfigParser was renamed to the more-standard configparser.
+@@ -451,35 +452,20 @@ def create_compiler_path(xml_generator, compiler_path):
+ if xml_generator == 'castxml' and compiler_path is None:
+ if platform.system() == 'Windows':
+ # Look for msvc
+- compiler_path = __get_first_compiler_in_path('where', 'cl')
++ compiler_path = shutil.which('cl')
+ # No msvc found; look for mingw
+- if compiler_path == '':
+- compiler_path = __get_first_compiler_in_path('where', 'mingw')
++ if compiler_path is None:
++ compiler_path = shutil.which('mingw')
+ else:
+ # OS X or Linux
+ # Look for clang first, then gcc
+- compiler_path = __get_first_compiler_in_path('which', 'clang++')
++ compiler_path = shutil.which('clang++')
+ # No clang found; use gcc
+- if compiler_path == '':
+- compiler_path = __get_first_compiler_in_path('which', 'c++')
+-
+- if compiler_path == "":
+- compiler_path = None
++ if compiler_path is None:
++ compiler_path = shutil.which('c++')
+
+ return compiler_path
+
+
+-def __get_first_compiler_in_path(command, compiler_name):
+- p = subprocess.Popen(
+- [command, compiler_name],
+- stdout=subprocess.PIPE,
+- stderr=subprocess.PIPE)
+- path = p.stdout.read().decode("utf-8").rstrip().split("\r\n")[0].rstrip()
+- p.wait()
+- p.stdout.close()
+- p.stderr.close()
+- return path
+-
+-
+ if __name__ == '__main__':
+ print(load_xml_generator_configuration('xml_generator.cfg').__dict__)
diff --git a/dev-python/pygccxml/pygccxml-2.5.0.ebuild b/dev-python/pygccxml/pygccxml-2.5.0.ebuild
new file mode 100644
index 000000000000..3a2e39187e16
--- /dev/null
+++ b/dev-python/pygccxml/pygccxml-2.5.0.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+
+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=(
+ # TODO; too new LLVM? upstream tests against LLVM 13
+ unittests/test_overrides.py::Test::test
+)
+
+python_prepare_all() {
+ local PATCHES=(
+ "${FILESDIR}/${PN}-2.4.0-doc.patch"
+ # https://github.com/CastXML/pygccxml/pull/179
+ "${FILESDIR}/${P}-which.patch"
+ )
+
+ distutils-r1_python_prepare_all
+}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/pygccxml/files/, dev-python/pygccxml/
@ 2023-11-20 15:15 Thomas Beierlein
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Beierlein @ 2023-11-20 15:15 UTC (permalink / raw
To: gentoo-commits
commit: 755264ae96140375e73dd274f7aa25bdfd0ef11a
Author: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 20 15:14:38 2023 +0000
Commit: Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Mon Nov 20 15:15:17 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=755264ae
dev-python/pygccxml: add 2.4.0
Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>
dev-python/pygccxml/Manifest | 1 +
.../pygccxml/files/pygccxml-2.4.0-pyproject.patch | 10 +++++++
dev-python/pygccxml/pygccxml-2.4.0.ebuild | 33 ++++++++++++++++++++++
3 files changed, 44 insertions(+)
diff --git a/dev-python/pygccxml/Manifest b/dev-python/pygccxml/Manifest
index c98076c800aa..c3d47e08d233 100644
--- a/dev-python/pygccxml/Manifest
+++ b/dev-python/pygccxml/Manifest
@@ -1,2 +1,3 @@
DIST pygccxml-2.2.1.gh.tar.gz 3170283 BLAKE2B b53123c59d098f56d97841225d10ffd4156b993244e48c4ad30e2f62b6d95d69e0ae4bbfc86bb492e88e8f52d916401f29a6ec7024277d1e32b3af691a12e919 SHA512 32013617d4d632617b616d3787631c5b09da441a87bb15b88e3b287f17b85e1388308e85dd385276966ac09114536a5863edd5fbb96539547783fd2d41c6e8ce
DIST pygccxml-2.3.0.gh.tar.gz 3165248 BLAKE2B 177591d818f3ff91b7981ee1b1af9d03f79869508cddd03ece8f3b5e447982dc2d9434fa42db290c98d8c5fb4f4ee4ae7ef86e2b065dc28ba4b7843a36cad4e1 SHA512 6c5710c842c8e6101af73335ea66dc18ae86861f9cd5c59b4aa1037f60914934ba22a821d7f35cf954f5c40800433bacfc0d4bd0ae1bb5946a4dd950c606ceea
+DIST pygccxml-2.4.0.gh.tar.gz 3165189 BLAKE2B 855b0b6313be29e7719abe4cc6e654904657c11bfd7310d647227ce9d7760821eeb348dcd9892afbcc3d467db96daaf3010e92803fe28962db9a255cf81eae46 SHA512 48bf4887344c68d0a93a3908cc0a744f3d6a74dce92be88527e85cf7ba1a46f88560730dce0b858f31523cada836aad40461de935c5c2a041de0fa2ae5e38c30
diff --git a/dev-python/pygccxml/files/pygccxml-2.4.0-pyproject.patch b/dev-python/pygccxml/files/pygccxml-2.4.0-pyproject.patch
new file mode 100644
index 000000000000..ba00ed45ad34
--- /dev/null
+++ b/dev-python/pygccxml/files/pygccxml-2.4.0-pyproject.patch
@@ -0,0 +1,10 @@
+--- pyproject.toml.orig 2023-11-20 13:59:55.807461669 +0100
++++ pyproject.toml 2023-11-20 14:00:37.335886130 +0100
+@@ -1,5 +1,6 @@
+ [build-system]
+-requires = ["setuptools", "wheel"]
++requires = ["setuptools"]
++build-backend = "setuptools.build_meta"
+
+ [project]
+ name = "pygccxml"
diff --git a/dev-python/pygccxml/pygccxml-2.4.0.ebuild b/dev-python/pygccxml/pygccxml-2.4.0.ebuild
new file mode 100644
index 000000000000..7c80f9e6c423
--- /dev/null
+++ b/dev-python/pygccxml/pygccxml-2.4.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..11} )
+inherit distutils-r1
+
+DESCRIPTION="A specialized XML reader to navigate C++ declarations"
+HOMEPAGE="https://github.com/CastXML/pygccxml"
+SRC_URI="https://github.com/CastXML/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="Boost-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~riscv ~x86"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ dev-libs/castxml
+"
+DEPEND="${RDEPEND}"
+
+distutils_enable_tests unittest
+distutils_enable_sphinx docs dev-python/sphinx-rtd-theme
+
+
+python_prepare_all() {
+ eapply -p0 "${FILESDIR}/${PN}-2.4.0-pyproject.patch"
+ eapply_user
+
+ distutils-r1_python_prepare_all
+}
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-01-10 16:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-10 16:42 [gentoo-commits] repo/gentoo:master commit in: dev-python/pygccxml/files/, dev-python/pygccxml/ Thomas Beierlein
-- strict thread matches above, loose matches on Subject: below --
2024-10-28 18:46 Thomas Beierlein
2024-08-26 20:07 Thomas Beierlein
2024-04-15 14:30 Michał Górny
2023-11-20 15:15 Thomas Beierlein
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox