tree-sitter-vim: 0.3.0 -> 0.4.0

This commit is contained in:
Tim Biermann 2024-06-12 16:39:14 +02:00
parent 449978fd18
commit 6e55fd6a06
Signed by: tb
GPG Key ID: 42F8B4E30B673606
3 changed files with 5 additions and 31 deletions

View File

@ -1,6 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF349f5FJlDpYem7VEfG0W9WsLv3/BxkO3YHwr/Pcj1IdYv/ZG/AT0uP2+mgMaSS6ZUwj3dPCqL/tW2TBm+LwLsQI= RWSagIOpLGJF30+BJaIpjEig78/qemg5w+OG1NneUvLP18kkWvhMBQ+NL14bmHK2SUrIV3qOcDs/EH/uIuPG1O21SX+Ds39EKQY=
SHA256 (Pkgfile) = d9641242e7244d2fc6fb8463ca19b9171ffb15c011469cdeb5f203cdbe32b269 SHA256 (Pkgfile) = 60dc4f33ad0117bd4c544daa30fc07b7b70f604528ba947c99546134c932f156
SHA256 (.footprint) = d54ff3e392ae984e50a236dc913c6ef827ab4e9496b58c5243d0c83c3983e6b9 SHA256 (.footprint) = d54ff3e392ae984e50a236dc913c6ef827ab4e9496b58c5243d0c83c3983e6b9
SHA256 (tree-sitter-vim-0.3.0.tar.gz) = 403acec3efb7cdb18ff3d68640fc823502a4ffcdfbb71cec3f98aa786c21cbe2 SHA256 (tree-sitter-vim-0.4.0.tar.gz) = 9f856f8b4a10ab43348550fa2d3cb2846ae3d8e60f45887200549c051c66f9d5
SHA256 (32c76f150347c1cd044e90b8e2bc73c00677fa55.patch) = 4a2dde4222d300224295848e07e576e17c7ba52636f42b2a255fd65b476d4da0

View File

@ -1,22 +0,0 @@
From 32c76f150347c1cd044e90b8e2bc73c00677fa55 Mon Sep 17 00:00:00 2001
From: Christian Clason <c.clason@uni-graz.at>
Date: Sat, 30 Sep 2023 15:42:23 +0200
Subject: [PATCH] fix(scanner): use local include
tree-sitter CLI no longer installs the header globally
---
src/scanner.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/scanner.c b/src/scanner.c
index 1a2d96a..f77fefd 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -1,6 +1,6 @@
#include "stdio.h"
#include "stdlib.h"
-#include <tree_sitter/parser.h>
+#include "tree_sitter/parser.h"
#include <string.h>
#include <wctype.h>
#include <assert.h>

View File

@ -4,16 +4,13 @@
# Depends on: npm tree-sitter-cli # Depends on: npm tree-sitter-cli
name=tree-sitter-vim name=tree-sitter-vim
version=0.3.0 version=0.4.0
release=1 release=1
source=(https://github.com/tree-sitter-grammars/tree-sitter-vim/archive/v$version/$name-$version.tar.gz source=(https://github.com/tree-sitter-grammars/tree-sitter-vim/archive/v$version/$name-$version.tar.gz)
32c76f150347c1cd044e90b8e2bc73c00677fa55.patch)
build() { build() {
cd $name-$version cd $name-$version
patch -Np1 -i $SRC/32c76f150347c1cd044e90b8e2bc73c00677fa55.patch
tree-sitter generate --log tree-sitter generate --log
cd src cd src
export CFLAGS+=' -fPIC' export CFLAGS+=' -fPIC'