commit: fcbb79699132efc69452a63025da0ddd1f52caf7
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 19 15:02:24 2025 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Feb 19 15:02:24 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcbb7969
dev-python/tree-sitter: fix stable-stable pairing with dev-libs/${PN}
- Stable dev-python/tree-sitter (0.23.1) has a sed that's effective only
against unstable dev-libs/tree-sitter (>0.25), but which in turn breaks the
build when still using stable dev-libs/tree-sitter (<0.25). Apply a band-aid
fix for now. Revbumped to prevent possible runtime issues.
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
.../{tree-sitter-0.23.1.ebuild => tree-sitter-0.23.1-r1.ebuild} | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/dev-python/tree-sitter/tree-sitter-0.23.1.ebuild
b/dev-python/tree-sitter/tree-sitter-0.23.1-r1.ebuild
similarity index 91%
rename from dev-python/tree-sitter/tree-sitter-0.23.1.ebuild
rename to dev-python/tree-sitter/tree-sitter-0.23.1-r1.ebuild
index 1cec9f1c06e0..7daad9224eb1 100644
--- a/dev-python/tree-sitter/tree-sitter-0.23.1.ebuild
+++ b/dev-python/tree-sitter/tree-sitter-0.23.1-r1.ebuild
@@ -25,7 +25,7 @@ SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390
sparc x86"
# setuptools is needed for distutils import
-DEPEND=">=dev-libs/tree-sitter-0.24.0:="
+DEPEND="<dev-libs/tree-sitter-0.25.0:="
RDEPEND="${DEPEND}
$(python_gen_cond_dep '
dev-python/setuptools[${PYTHON_USEDEP}]
@@ -55,8 +55,6 @@ src_unpack() {
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
}