# HG changeset patch # User Hans-G?nter Theisgen # Date 1677255712 -3600 # Node ID b7693f5d4c8171b37adf553e45af993eea8d4558 # Parent 00914815b485c25c56b177d29a6fd1bf487bc673 created recipes for tree-sitter and tree-sitter-dev 0.20.7 diff -r 00914815b485 -r b7693f5d4c81 tree-sitter-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tree-sitter-dev/receipt Fri Feb 24 17:21:52 2023 +0100 @@ -0,0 +1,17 @@ +# SliTaz package receipt. + +PACKAGE="tree-sitter-dev" +VERSION="0.20.7" +CATEGORY="development" +SHORT_DESC="An incremental parsing system for programming tools - development files." +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://tree-sitter.github.io/tree-sitter/" + +WANTED="tree-sitter" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + get_dev_files +} diff -r 00914815b485 -r b7693f5d4c81 tree-sitter/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tree-sitter/description.txt Fri Feb 24 17:21:52 2023 +0100 @@ -0,0 +1,14 @@ +Tree-sitter is a parser generator tool and +an incremental parsing library. +It can build a concrete syntax tree for a +source file and efficiently update the +syntax tree as the source file is edited. + +Tree-sitter aims to be: +* General enough to parse any programming language +* Fast enough to parse on every keystroke in a text editor +* Robust enough to provide useful results even in the + presence of syntax errors +* Dependency-free so that the runtime library + (which is written in pure C) can be embedded in + any application diff -r 00914815b485 -r b7693f5d4c81 tree-sitter/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tree-sitter/receipt Fri Feb 24 17:21:52 2023 +0100 @@ -0,0 +1,25 @@ +# SliTaz package receipt. + +PACKAGE="tree-sitter" +VERSION="0.20.7" +CATEGORY="development" +SHORT_DESC="An incremental parsing system for programming tools." +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://tree-sitter.github.io/tree-sitter/" + +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/refs/tags/v$VERSION.tar.gz" + +# Rules to configure and make the package. +compile_rules() +{ + make PREFIX=/usr && + make install PREFIX=/usr +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cook_copy_files *.so* +}