From fe4c7410bf5714742c32b833e125c8f6ab2c82c6 Mon Sep 17 00:00:00 2001 From: Gabriel Sanches Date: Mon, 8 Mar 2021 17:47:17 -0300 Subject: [PATCH 1/2] tree-sitter: update to 0.19.2. --- common/shlibs | 2 +- srcpkgs/tree-sitter/template | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/shlibs b/common/shlibs index 42f37d8a08b..a4c37034bec 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3965,4 +3965,4 @@ libsimavr.so.1 simavr-1.6_2 libsimavrparts.so.1 simavr-1.6_2 libsword-1.8.1.so libsword-1.8.1_6 libpari-gmp.so.7 pari-2.13.0_1 -libtree-sitter.so.0 tree-sitter-0.19.0_1 +libtree-sitter.so.0 tree-sitter-0.19.2_1 diff --git a/srcpkgs/tree-sitter/template b/srcpkgs/tree-sitter/template index e3218d9b444..fc1d074a5aa 100644 --- a/srcpkgs/tree-sitter/template +++ b/srcpkgs/tree-sitter/template @@ -1,6 +1,6 @@ # Template file for 'tree-sitter' pkgname=tree-sitter -version=0.19.0 +version=0.19.2 revision=1 build_style=gnu-makefile short_desc="Parser generator tool and incremental parsing library" @@ -8,7 +8,7 @@ maintainer="Érico Nogueira " license="MIT" homepage="https://tree-sitter.github.io" distfiles="https://github.com/tree-sitter/${pkgname}/archive/v${version}.tar.gz" -checksum=7fa56a76b29b170ae11026a5c965e5a1177c158e251bec103d353ffff16a84e9 +checksum=c1b0eace3264799a5b55415bfb8a17ef064ea086205e5e842d47df2296812fe9 post_install() { vlicense LICENSE From 717276b950c72f0852c7f667ed1d4ffaaf3a89e8 Mon Sep 17 00:00:00 2001 From: Gabriel Sanches Date: Sat, 6 Mar 2021 14:56:08 -0300 Subject: [PATCH 2/2] tree-sitter: package the CLI. --- srcpkgs/tree-sitter/template | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/srcpkgs/tree-sitter/template b/srcpkgs/tree-sitter/template index fc1d074a5aa..273bf5e5217 100644 --- a/srcpkgs/tree-sitter/template +++ b/srcpkgs/tree-sitter/template @@ -2,7 +2,8 @@ pkgname=tree-sitter version=0.19.2 revision=1 -build_style=gnu-makefile +build_style=cargo +make_install_args="--path=cli" short_desc="Parser generator tool and incremental parsing library" maintainer="Érico Nogueira " license="MIT" @@ -10,7 +11,19 @@ homepage="https://tree-sitter.github.io" distfiles="https://github.com/tree-sitter/${pkgname}/archive/v${version}.tar.gz" checksum=c1b0eace3264799a5b55415bfb8a17ef064ea086205e5e842d47df2296812fe9 +post_build() { + # Build libtree-sitter, since do_build builds the tree-sitter CLI. + make +} + +do_check() { + : # tests require generating fixtures from remote repositories +} + post_install() { + # Install libtree-sitter, since do_install installs the tree-sitter CLI. + make STRIP=true PREFIX=/usr DESTDIR=${DESTDIR} install + vlicense LICENSE } @@ -18,6 +31,7 @@ tree-sitter-devel_package() { short_desc+=" - development files" depends="${sourcepkg}>=${version}_${revision}" pkg_install() { + vmove usr/bin vmove usr/include vmove "usr/lib/*.a" vmove "usr/lib/*.so"