ports/contrib (3.7): tree-sitter-vimdoc: initial commit, version 1.2.5
commit 248c5953220fc9413448432162ed64990b488cfd Author: Tim Biermann <tbier@posteo.de> Date: Sun Nov 27 17:59:17 2022 +0000 tree-sitter-vimdoc: initial commit, version 1.2.5 diff --git a/tree-sitter-vimdoc/.footprint b/tree-sitter-vimdoc/.footprint new file mode 100644 index 000000000..cf540e878 --- /dev/null +++ b/tree-sitter-vimdoc/.footprint @@ -0,0 +1,8 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib/ +-rw-r--r-- root/root usr/lib/libtree-sitter-vimdoc.so +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/nvim/ +drwxr-xr-x root/root usr/share/nvim/runtime/ +drwxr-xr-x root/root usr/share/nvim/runtime/parser/ +lrwxrwxrwx root/root usr/share/nvim/runtime/parser/vimdoc.so -> /usr/lib/libtree-sitter-vimdoc.so diff --git a/tree-sitter-vimdoc/.signature b/tree-sitter-vimdoc/.signature new file mode 100644 index 000000000..d01dea388 --- /dev/null +++ b/tree-sitter-vimdoc/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF3x4Dz6p6sJEbNzokjw1Eko68QMrPRVOSIbrNwpmcPmux0eIZzsYZgQ0I/ao/uW1UkGtEc4f/Wz9NUvZ95SOrtwk= +SHA256 (Pkgfile) = bfb5a23ff2e52cb6c712bbf33eced7f6e8b25b662d4eb60b0e4a046317638e5a +SHA256 (.footprint) = 91a4386a9207d55af4390238c01ff839aa127e3a206f0b7f277bdd53750439cc +SHA256 (tree-sitter-vimdoc-1.2.5.tar.gz) = 379d764937a0e3a38e3f9ce9a62c93ba24211a236c74181dd04ee3b4631472a8 diff --git a/tree-sitter-vimdoc/Pkgfile b/tree-sitter-vimdoc/Pkgfile new file mode 100644 index 000000000..8950c08fc --- /dev/null +++ b/tree-sitter-vimdoc/Pkgfile @@ -0,0 +1,23 @@ +# Description: Tree-sitter parser for Vim help files +# URL: https://github.com/neovim/tree-sitter-vimdoc +# Maintainer: Tim Biermann, tbier at posteo dot de +# Depends on: npm tree-sitter + +name=tree-sitter-vimdoc +version=1.2.5 +release=1 +source=(https://github.com/neovim/tree-sitter-vimdoc/archive/v$version/$name-$versio...) + +build() { + cd $name-$version + + tree-sitter generate --log + cd src + export CFLAGS+=' -fPIC' + cc $CFLAGS -std=c99 -c parser.c + cc $LDFLAGS -shared parser.o -o parser.so + + install -Dm 644 parser.so $PKG/usr/lib/libtree-sitter-vimdoc.so + install -d $PKG/usr/share/nvim/runtime/parser/ + ln -s /usr/lib/libtree-sitter-vimdoc.so $PKG/usr/share/nvim/runtime/parser/vimdoc.so +}
participants (1)
-
crux@crux.nu