summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralbestro <9337627+albestro@users.noreply.github.com>2021-12-23 04:18:09 +0100
committerGitHub <noreply@github.com>2021-12-22 19:18:09 -0800
commitb5ba20ada44321c3162e9286de092f2f925bcc52 (patch)
tree0e8de80369d2e363aa9204cfc357e9a19c7481d3
parentd236b9438d0c3db05eec256d7f58398bb8fa8349 (diff)
downloadspack-b5ba20ada44321c3162e9286de092f2f925bcc52.tar.gz
spack-b5ba20ada44321c3162e9286de092f2f925bcc52.tar.bz2
spack-b5ba20ada44321c3162e9286de092f2f925bcc52.tar.xz
spack-b5ba20ada44321c3162e9286de092f2f925bcc52.zip
New package: tree-sitter (#28110)
-rw-r--r--var/spack/repos/builtin/packages/tree-sitter/package.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/tree-sitter/package.py b/var/spack/repos/builtin/packages/tree-sitter/package.py
new file mode 100644
index 0000000000..c75a0a28ca
--- /dev/null
+++ b/var/spack/repos/builtin/packages/tree-sitter/package.py
@@ -0,0 +1,23 @@
+# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+
+from spack import *
+
+
+class TreeSitter(MakefilePackage):
+ """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."""
+
+ homepage = "https://tree-sitter.github.io/tree-sitter/"
+ url = "https://github.com/tree-sitter/tree-sitter/archive/refs/tags/v0.20.1.tar.gz"
+
+ maintainers = ['albestro']
+
+ version('0.20.1', sha256='12a3f7206af3028dbe8a0de50d8ebd6d7010bf762db918acae76fc7585f1258d')
+
+ def edit(self, spec, prefix):
+ env['PREFIX'] = prefix