Download raw body.
[update] textproc/tree-sitter 0.26.7
Hi ports@
update for textproc/tree-sitter to the latest version 0.26.7.
This version 0.26.x is needed to build Neovim 0.12 (released 2026/03/29, WIP to upgrade port).
- Bump SHARED_LIBS for this version => some API functions removed or modified.
- Update patches
Build OK on current/amd64.
Tests welcome and please commit if OK.
Laurent
Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/tree-sitter/Makefile,v
diff -u -p -r1.18 Makefile
--- Makefile 23 Feb 2026 09:47:35 -0000 1.18
+++ Makefile 30 Mar 2026 10:45:13 -0000
@@ -5,12 +5,9 @@ COMMENT = parser generator tool and incr
GH_ACCOUNT = tree-sitter
GH_PROJECT = tree-sitter
-# NOTE: neovim-0.11.* only builds with tree-sitter-0.25.x, so only update
-# tree-sitter at the same time as a neovim-0.12.x update (once released).
-# https://github.com/neovim/neovim/issues/36914
-GH_TAGNAME = v0.25.10
+GH_TAGNAME = v0.26.7
-SHARED_LIBS += tree-sitter 5.0 # 0.25.3
+SHARED_LIBS += tree-sitter 6.0 # 0.26.7
CATEGORIES = textproc
Index: distinfo
===================================================================
RCS file: /cvs/ports/textproc/tree-sitter/distinfo,v
diff -u -p -r1.10 distinfo
--- distinfo 23 Feb 2026 09:47:35 -0000 1.10
+++ distinfo 30 Mar 2026 10:45:13 -0000
@@ -1,2 +1,2 @@
-SHA256 (tree-sitter-0.25.10.tar.gz) = rVBAU3U3ASsW724SEKVyuSfHzcK5nR7ojUSn3Nw/9Ew=
-SIZE (tree-sitter-0.25.10.tar.gz) = 864648
+SHA256 (tree-sitter-0.26.7.tar.gz) = Q0MQetEJejXhBgkreeXdhwJxQsb7peRIax0dRNVJn4Q=
+SIZE (tree-sitter-0.26.7.tar.gz) = 907267
Index: patches/patch-Makefile
===================================================================
RCS file: /cvs/ports/textproc/tree-sitter/patches/patch-Makefile,v
diff -u -p -r1.5 patch-Makefile
--- patches/patch-Makefile 15 Apr 2025 18:45:51 -0000 1.5
+++ patches/patch-Makefile 30 Mar 2026 10:45:13 -0000
@@ -5,41 +5,41 @@ pkg-config file.
Index: Makefile
--- Makefile.orig
+++ Makefile
-@@ -7,7 +7,7 @@ DESCRIPTION := An incremental parsing system for progr
+@@ -3,7 +3,7 @@ DESCRIPTION := An incremental parsing system for progr
HOMEPAGE_URL := https://tree-sitter.github.io/tree-sitter/
-
+
# install directory layout
-PREFIX ?= /usr/local
+PREFIX ?= ${LOCALBASE}
INCLUDEDIR ?= $(PREFIX)/include
LIBDIR ?= $(PREFIX)/lib
- PCLIBDIR ?= $(LIBDIR)/pkgconfig
-@@ -43,8 +43,8 @@ ifneq ($(findstring darwin,$(shell $(CC) -dumpmachine)
+ BINDIR ?= $(PREFIX)/bin
+@@ -45,8 +45,8 @@ else ifneq ($(findstring mingw32,$(MACHINE)),)
else
SOEXT = so
SOEXTVER_MAJOR = $(SOEXT).$(SONAME_MAJOR)
- SOEXTVER = $(SOEXT).$(SONAME_MAJOR).$(SONAME_MINOR)
- LINKSHARED += -shared -Wl,-soname,libtree-sitter.$(SOEXTVER)
-+ SOEXTVER = so.${LIBtree-sitter_VERSION}
++ SOEXTVER = $(SOEXT).${LIBtree-sitter_VERSION}
+ LINKSHARED += -shared
- endif
ifneq ($(filter $(shell uname),FreeBSD NetBSD DragonFly),)
PCLIBDIR := $(PREFIX)/libdata/pkgconfig
-@@ -67,7 +67,7 @@ tree-sitter.pc: lib/tree-sitter.pc.in
+ endif
+@@ -73,7 +73,7 @@ tree-sitter.pc: lib/tree-sitter.pc.in
-e 's|@CMAKE_INSTALL_INCLUDEDIR@|$(INCLUDEDIR:$(PREFIX)/%=%)|' \
-e 's|@PROJECT_DESCRIPTION@|$(DESCRIPTION)|' \
-e 's|@PROJECT_HOMEPAGE_URL@|$(HOMEPAGE_URL)|' \
- -e 's|@CMAKE_INSTALL_PREFIX@|$(PREFIX)|' $< > $@
+ -e 's|@CMAKE_INSTALL_PREFIX@|$(LOCALBASE)|' $< > $@
-
- clean:
- $(RM) $(OBJ) tree-sitter.pc libtree-sitter.a libtree-sitter.$(SOEXT)
-@@ -78,8 +78,6 @@ install: all
- install -m644 tree-sitter.pc '$(DESTDIR)$(PCLIBDIR)'/tree-sitter.pc
- install -m644 libtree-sitter.a '$(DESTDIR)$(LIBDIR)'/libtree-sitter.a
+
+ shared: libtree-sitter.$(SOEXT)
+
+@@ -93,8 +93,6 @@ ifneq ($(findstring mingw32,$(MACHINE)),)
+ install -m755 libtree-sitter.dll.a '$(DESTDIR)$(LIBDIR)'/libtree-sitter.dll.a
+ else
install -m755 libtree-sitter.$(SOEXT) '$(DESTDIR)$(LIBDIR)'/libtree-sitter.$(SOEXTVER)
-- ln -sf libtree-sitter.$(SOEXTVER) '$(DESTDIR)$(LIBDIR)'/libtree-sitter.$(SOEXTVER_MAJOR)
-- ln -sf libtree-sitter.$(SOEXTVER_MAJOR) '$(DESTDIR)$(LIBDIR)'/libtree-sitter.$(SOEXT)
-
+- cd '$(DESTDIR)$(LIBDIR)' && ln -sf libtree-sitter.$(SOEXTVER) libtree-sitter.$(SOEXTVER_MAJOR)
+- cd '$(DESTDIR)$(LIBDIR)' && ln -sf libtree-sitter.$(SOEXTVER_MAJOR) libtree-sitter.$(SOEXT)
+ endif
+
uninstall:
- $(RM) '$(DESTDIR)$(LIBDIR)'/libtree-sitter.a \
[update] textproc/tree-sitter 0.26.7