Skip to content

Commit ac53bb7

Browse files
committed
tree-sitter: update to 0.26.7
1 parent c746c2d commit ac53bb7

3 files changed

Lines changed: 34 additions & 6 deletions

File tree

common/shlibs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4198,7 +4198,7 @@ libsword-1.9.0.so libsword-1.9.0_1
41984198
libgivaro.so.9 givaro-4.1.1_1
41994199
liblinbox.so.0 linbox-1.6.3_1
42004200
libpari-gmp-tls.so.9 pari-2.17.0_1
4201-
libtree-sitter.so.0.25 tree-sitter-0.25.2_1
4201+
libtree-sitter.so.0.26 tree-sitter-0.26.7_1
42024202
libplanarity.so.2 planarity-4.0.0.0_1
42034203
libgap.so.10 gap-4.15.1_1
42044204
libgtkdatabox.so.1 gtkdatabox3-1.0.0_1
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
--- a/crates/cli/Cargo.toml
2+
+++ b/crates/cli/Cargo.toml
3+
@@ -30,7 +30,7 @@ name = "benchmark"
4+
harness = false
5+
6+
[features]
7+
-default = ["qjs-rt"]
8+
+default = []
9+
wasm = ["tree-sitter/wasm", "tree-sitter-loader/wasm"]
10+
qjs-rt = ["tree-sitter-generate/qjs-rt"]
11+
12+
--- a/crates/generate/Cargo.toml
13+
+++ b/crates/generate/Cargo.toml
14+
@@ -20,7 +20,7 @@ path = "src/generate.rs"
15+
workspace = true
16+
17+
[features]
18+
-default = ["qjs-rt"]
19+
+default = ["load"]
20+
load = ["dep:semver"]
21+
qjs-rt = ["load", "rquickjs", "pathdiff"]

srcpkgs/tree-sitter/template

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,27 @@
11
# Template file for 'tree-sitter'
22
pkgname=tree-sitter
3-
version=0.25.10
3+
version=0.26.7
44
revision=1
55
build_style=cargo
6-
make_install_args="--path=cli"
6+
make_install_args="--path=crates/cli"
7+
hostmakedepends="clang perl"
78
short_desc="Parser generator tool and incremental parsing library"
89
maintainer="Érico Nogueira <[email protected]>"
910
license="MIT"
1011
homepage="https://tree-sitter.github.io"
1112
changelog="https://github.com/tree-sitter/tree-sitter/releases"
1213
distfiles="https://github.com/tree-sitter/tree-sitter/archive/refs/tags/v${version}.tar.gz"
13-
checksum=ad5040537537012b16ef6e1210a572b927c7cdc2b99d1ee88d44a7dcdc3ff44c
14+
checksum=4343107ad1097a35e106092b79e5dd87027142c6fba5e4486b1d1d44d5499f84
1415
make_check=no # tests require generating fixtures from remote repositories
1516

16-
post_build() {
17-
# Build libtree-sitter, since do_build builds the tree-sitter CLI.
17+
post_patch() {
18+
perl -i -0pe 's/\[\[package\]\]\nname = "rquickjs.*?(?=\[\[package\]\]|\z)//gs' Cargo.lock
19+
perl -i -0pe 's/ "rquickjs",\n//g' Cargo.lock
20+
}
21+
22+
do_build() {
23+
cargo auditable build --release --offline --no-default-features \
24+
--target ${RUST_TARGET} --manifest-path=crates/cli/Cargo.toml
1825
make
1926
}
2027

0 commit comments

Comments
 (0)