Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tree-sitter: update to 0.25.0 #23253

Merged
merged 2 commits into from
Feb 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mingw-w64-emacs/004-libtree-sitter.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
;; MSYS2 distributes libtree-sitter.dll, without API version
;; number...
- '(tree-sitter "libtree-sitter.dll" "libtree-sitter-0.dll")))
+ '(tree-sitter "libtree-sitter.dll" "libtree-sitter-0.dll" "libtree-sitter-0.24.dll")))
+ '(tree-sitter "libtree-sitter.dll" "libtree-sitter-0.dll" "libtree-sitter-0.25.dll")))

;;; multi-tty support
(defvar w32-initialized nil
4 changes: 2 additions & 2 deletions mingw-w64-emacs/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ _realname=emacs
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=29.4
pkgrel=3
pkgrel=4
pkgdesc="The extensible, customizable, self-documenting, real-time display editor (mingw-w64)"
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
Expand Down Expand Up @@ -54,7 +54,7 @@ sha256sums=('ba897946f94c36600a7e7bb3501d27aa4112d791bfe1445c61ed28550daca235'
'e1347064ec30094e21679764f784fa7557738946485359041473e6e9d7f3c3dc'
'd8732584a8f3bfd0badbd16d15384b7098e25c5df48632beb02d35f6050c358b'
'd128982d87af1e524ae809147613168153f0e5c1efb0ef633793df47b762c9e1'
'542cbe816eaa835a600920ea80d4aaacd82ccf902f961cbeee9c6451bdff374b'
'4a3f2f6a26c75a1b31f74d67a4208fa83b946690922d862469e73eaee40d70e0'
'bfe64602dbeeec85799c1156ca4f3837fdac42a076e83a4221768db3417220e1')
validpgpkeys=('28D3BED851FDF3AB57FEF93C233587A47C207910'
'17E90D521672C04631B1183EE78DAE0F3115E06B'
Expand Down
24 changes: 16 additions & 8 deletions mingw-w64-mesonlsp/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _realname=mesonlsp
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=4.3.7
pkgrel=2
pkgrel=3
pkgdesc='Meson language server (mingw-w64)'
arch=('any')
mingw_arch=('ucrt64')
Expand All @@ -29,15 +29,23 @@ checkdepends=("${MINGW_PACKAGE_PREFIX}-python-lsprotocol"
source=("git+${url}.git#tag=v${pkgver}"
"git+https://github.com/ada-url/ada#tag=v2.9.2"
"sha256::git+https://github.com/amosnier/sha-2#commit=49265c656f9b370da660531db8cc6bf0a2e110a6"
"git+https://github.com/JCWasmx86/muon"
"git+https://github.com/JCWasmx86/tree-sitter-ini"
"git+https://github.com/JCWasmx86/tree-sitter-meson")
"git+https://github.com/JCWasmx86/muon#commit=c44ff3d842eb9fb738b14e3c6e23693290c61601"
"git+https://github.com/JCWasmx86/tree-sitter-ini#commit=848b6269f7039739aebd169fbd3d5e6e34bef661"
"git+https://github.com/JCWasmx86/tree-sitter-meson#commit=09665faff74548820c10d77dd8738cd76d488572")
sha256sums=('dbddb485de460a1bfc0efb32d76517e589229e0e1a571aaa15e9700f871127b2'
'4a796665d17f4b050fd37395492f2fecb06cf98a3229a099b9b3786bbc137acc'
'324f8510ec22aa04350183bb37263c03fd81ad708fcbc0b82056f558db753cc7'
'SKIP'
'SKIP'
'SKIP')
'1fc46d8a15237ce5ec6803469e10a4545ce18ab2811bc0441d6901b22b0cba97'
'f6b7d4d26025b5e4c6abb6bc858254501ceddaa69b4435002d612abaa8a67b84'
'dfd1f1c88b727dfbe535446bb8e1fec2a17c410b5455a9a70dfce3f8d76c9380')

prepare() {
cd "${_realname}"

# apply patches that also fix build
git cherry-pick -n 8edb5af16db9d7651a88ae19d0574195a02e40b6
git cherry-pick -n 851eb422851406ca4221e7bd866cd97b51c9ac06
}

build() {
export MESON_PACKAGE_CACHE_DIR="${srcdir}"
Expand All @@ -57,7 +65,7 @@ build() {

package() {
meson install -C "build-${MSYSTEM}" --destdir "${pkgdir}"
rm "${pkgdir}${MINGW_PREFIX}/bin/Swift-MesonLSP"
rm "${pkgdir}${MINGW_PREFIX}"/bin/{Swift-MesonLSP,muon}

install -Dm644 "${_realname}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
}
2 changes: 1 addition & 1 deletion mingw-w64-neovim/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _realname=neovim
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=0.10.4
pkgrel=1
pkgrel=2
pkgdesc='Fork of Vim aiming to improve user experience, plugins, and GUIs (mingw-w64)'
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
Expand Down
1 change: 0 additions & 1 deletion mingw-w64-tree-sitter/.gitignore

This file was deleted.

14 changes: 4 additions & 10 deletions mingw-w64-tree-sitter/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ _realname=tree-sitter
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}"
"${MINGW_PACKAGE_PREFIX}-lib${_realname}")
pkgver=0.24.7
pkgrel=2
pkgver=0.25.0
pkgrel=1
pkgdesc="An incremental parsing system for programming tools (mingw-w64)"
arch=('any')
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
Expand All @@ -22,18 +22,14 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
"${MINGW_PACKAGE_PREFIX}-ninja"
"${MINGW_PACKAGE_PREFIX}-libwasmtime")
checkdepends=('git')
source=("https://github.com/tree-sitter/tree-sitter/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz"
"https://github.com/tree-sitter/tree-sitter/commit/178c5d93f4ca8c962dc977365148148edbce1f24.patch")
sha256sums=('7cbc13c974d6abe978cafc9da12d1e79e07e365c42af75e43ec1b5cdc03ed447'
'13296d59975d39b33a53d79caa1eee39b7bd18f5faf81aec1730a8ac84ef1010')
source=("https://github.com/tree-sitter/tree-sitter/archive/v${pkgver}/${_realname}-${pkgver}.tar.gz")
sha256sums=('3729e98e54a41a4c03f4f6c0be580d14ed88c113d75acf15397b16e05cf91129')
noextract=("${_realname}-${pkgver}.tar.gz")

prepare() {
tar -xzf "${_realname}-${pkgver}.tar.gz" || true
cd "${_realname}-${pkgver}"

patch -Np1 -i ../178c5d93f4ca8c962dc977365148148edbce1f24.patch

cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}

Expand All @@ -53,8 +49,6 @@ build() {
-DBUILD_SHARED_LIBS=ON \
-DTREE_SITTER_FEATURE_WASM=ON \
-DCMAKE_DLL_NAME_WITH_SOVERSION=ON \
-DWASMTIME_INCLUDE_DIR="${MINGW_PREFIX}/include/wasmtime" \
-DWASMTIME_LIBRARY="${MINGW_PREFIX}/bin/wasmtime.dll" \
-S "${_realname}-${pkgver}/lib" \
-B "build-${MSYSTEM}"

Expand Down