[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49946] [PATCH 20/31] gnu: Add tree-sitter-php.
From: |
Pierre Langlois |
Subject: |
[bug#49946] [PATCH 20/31] gnu: Add tree-sitter-php. |
Date: |
Mon, 9 Aug 2021 00:33:43 +0100 |
* gnu/packages/tree-sitter.scm (tree-sitter-php): New variable.
---
gnu/packages/tree-sitter.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm
index aa72348347..9f1a30f0cc 100644
--- a/gnu/packages/tree-sitter.scm
+++ b/gnu/packages/tree-sitter.scm
@@ -359,3 +359,32 @@ library.")
(description
"This package provides a Julia grammar for the Tree-sitter library.")
(license license:expat)))
+
+(define-public tree-sitter-php
+ (package (inherit tree-sitter-c)
+ (name "tree-sitter-php")
+ (version "0.19.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tree-sitter/tree-sitter-php")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "17cmybgpprw7w9d2v7lmc6zmr90d70g0jqq279gzg0mpwfzla53s"))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments tree-sitter-c)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ ;; The parse-example script tries to clone git repositories.
+ (add-after 'unpack 'remove-parse-example
+ (lambda _
+ (substitute* "package.json"
+ ((" && script\\/parse-examples") ""))))))))
+ (home-page "https://github.com/tree-sitter/tree-sitter-php")
+ (synopsis "Tree-sitter PHP grammar")
+ (description
+ "This package provides a PHP grammar for the Tree-sitter library.")
+ (license license:expat)))
--
2.32.0
- [bug#49946] [PATCH 15/31] gnu: Add tree-sitter-html., (continued)
- [bug#49946] [PATCH 15/31] gnu: Add tree-sitter-html., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 17/31] gnu: Add tree-sitter-javascript., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 13/31] gnu: Add tree-sitter-css., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 12/31] gnu: Add tree-sitter-cpp., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 11/31] gnu: Add tree-sitter-c., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 14/31] gnu: Add tree-sitter-go., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 16/31] gnu: Add tree-sitter-java., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 18/31] gnu: Add tree-sitter-json., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 19/31] gnu: Add tree-sitter-julia., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 20/31] gnu: Add tree-sitter-php.,
Pierre Langlois <=
- [bug#49946] [PATCH 21/31] gnu: Add tree-sitter-python., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 22/31] gnu: Add tree-sitter-rust., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 23/31] gnu: Add tree-sitter-typescript., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 27/31] gnu: rust-emacs-macros: Update to 0.17., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 28/31] gnu: rust-emacs: Update to 0.17., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 25/31] gnu: Add rust-tree-sitter., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 26/31] gnu: rust-emacs-module: Update to 0.16., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 24/31] gnu: Add rust-bindgen@0.56., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 29/31] gnu: Add emacs-tree-sitter-core., Pierre Langlois, 2021/08/08
- [bug#49946] [PATCH 30/31] gnu: Add emacs-tree-sitter., Pierre Langlois, 2021/08/08