diff mbox series

[meta-oe,1/2] libtreesitter: add recipe for 0.27.2

Message ID 20261119102542.104648-1-f_l_k@t-online.de
State Under Review
Headers show
Series [meta-oe,1/2] libtreesitter: add recipe for 0.27.2 | expand

Commit Message

Markus Volk Nov. 19, 2026, 10:25 a.m. UTC
Tree-sitter is an incremental parsing library used by editors for
syntax highlighting and code navigation: neovim requires it, and GNU
Emacs uses it for its tree-sitter major modes since version 29.
Language grammars are built as separate shared libraries against it.

The recipe builds only the C runtime library, without the wasm
feature; the tree-sitter CLI, which is written in Rust, is not needed.

Tested on intel-corei7-64 by building emacs with the new tree-sitter
PACKAGECONFIG and neovim 0.12.5 against it; both parse C code with
tree-sitter-c 0.24.1.

AI-Generated: Uses Claude Code (Claude Opus 5.5)
Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 .../tree-sitter/libtreesitter_0.27.2.bb       | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/tree-sitter/libtreesitter_0.27.2.bb
diff mbox series

Patch

diff --git a/meta-oe/recipes-devtools/tree-sitter/libtreesitter_0.27.2.bb b/meta-oe/recipes-devtools/tree-sitter/libtreesitter_0.27.2.bb
new file mode 100644
index 0000000000..e1e9ab1dce
--- /dev/null
+++ b/meta-oe/recipes-devtools/tree-sitter/libtreesitter_0.27.2.bb
@@ -0,0 +1,19 @@ 
+SUMMARY = "Tree-sitter parsing library"
+DESCRIPTION = "Tree-sitter is an incremental parsing system for programming tools. \
+This is the C runtime library libtree-sitter, which editors such as neovim and \
+emacs use to load language grammars."
+HOMEPAGE = "https://tree-sitter.github.io/tree-sitter/"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=b83e3e9ab94483903b3bc21d9a1d41ed"
+
+SRC_URI = "git://github.com/tree-sitter/tree-sitter.git;protocol=https;branch=release-0.27;tag=v${PV}"
+SRCREV = "3fb7be49145acfb07e33b61ed5689e2b6771b2e9"
+
+inherit cmake pkgconfig
+
+EXTRA_OECMAKE = " \
+    -DBUILD_SHARED_LIBS=ON \
+    -DTREE_SITTER_FEATURE_WASM=OFF \
+"
+
+BBCLASSEXTEND = "native"