commit: 353154e57fef8a6bdf310b06dc63f404c8e29f15 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Tue Feb 18 19:58:38 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Tue Feb 18 19:59:01 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=353154e5
dev-python/tree-sitter: fix building of 0.23.1 Closes: https://bugs.gentoo.org/949862 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> dev-python/tree-sitter/tree-sitter-0.23.1.ebuild | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dev-python/tree-sitter/tree-sitter-0.23.1.ebuild b/dev-python/tree-sitter/tree-sitter-0.23.1.ebuild index 453e180d3b38..1f51b81b6632 100644 --- a/dev-python/tree-sitter/tree-sitter-0.23.1.ebuild +++ b/dev-python/tree-sitter/tree-sitter-0.23.1.ebuild @@ -52,6 +52,14 @@ src_unpack() { rmdir "${S}/tree_sitter/core" || die } +src_prepare() { + sed -e 's/ts_node_child_containing_descendant/ts_node_child_with_descendant/' \ + -i tree_sitter/binding/node.c || die + sed -e 's/TSInputEncodingUTF16/TSInputEncodingUTF16LE/' \ + -i tree_sitter/binding/parser.c || die + distutils-r1_src_prepare +} + src_test() { rm -r tree_sitter || die distutils-r1_src_test
