From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +C62J5ywD2KtrAAAgWs5BA (envelope-from ) for ; Fri, 18 Feb 2022 15:43:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ALFbIJywD2KHJgEAG6o9tA (envelope-from ) for ; Fri, 18 Feb 2022 15:43:40 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 077FF25915 for ; Fri, 18 Feb 2022 15:43:39 +0100 (CET) Received: from localhost ([::1]:33322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nL4Tz-00081T-32 for larch@yhetil.org; Fri, 18 Feb 2022 09:43:39 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nL4RY-0005dr-Ns for guix-patches@gnu.org; Fri, 18 Feb 2022 09:41:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:59933) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nL4RY-0005Tt-Dg for guix-patches@gnu.org; Fri, 18 Feb 2022 09:41:08 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nL4RY-0008W9-C6 for guix-patches@gnu.org; Fri, 18 Feb 2022 09:41:08 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [PATCH v4 20/31] gnu: Add tree-sitter-php. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 18 Feb 2022 14:41:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49946 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49946@debbugs.gnu.org Cc: Pierre Langlois Received: via spool by 49946-submit@debbugs.gnu.org id=B49946.164519524332560 (code B ref 49946); Fri, 18 Feb 2022 14:41:08 +0000 Received: (at 49946) by debbugs.gnu.org; 18 Feb 2022 14:40:43 +0000 Received: from localhost ([127.0.0.1]:53806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nL4R8-0008T0-VZ for submit@debbugs.gnu.org; Fri, 18 Feb 2022 09:40:43 -0500 Received: from mout.gmx.net ([212.227.17.20]:51233) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nL4QX-0008O0-Py for 49946@debbugs.gnu.org; Fri, 18 Feb 2022 09:40:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1645195200; bh=eOSEF1aqo81mbSHLldmurqTzWHacdSxUo9buWxcAAig=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=gEp2X0QjOhrXrgAd81SsLycHZuCdXqCzEutBfivBgZcA9tmAoMvjToH4UfIKfDwQU pXh9eOb8aiDFq+LOYOHGZGdKAJ4Qwik76bsMYfBDvjmZ1cgZPmC5pk+meak1Oyn4Vp KYy7DS1ZsExpbu6IViePlKZjzKg5FbaBPrWBW+/I= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([82.69.64.142]) by mail.gmx.net (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1M9Fnj-1nNYSW3h6F-006LDe; Fri, 18 Feb 2022 15:40:00 +0100 From: Pierre Langlois Date: Fri, 18 Feb 2022 14:39:37 +0000 Message-Id: <20220218143948.28989-20-pierre.langlois@gmx.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220218143948.28989-1-pierre.langlois@gmx.com> References: <877d9s2qa9.fsf@gmx.com> <20220218143948.28989-1-pierre.langlois@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:wVROAKxSS7YTskVtXfry721Q1DOE0Qt9+rMOgUXP35hEslRDw2h flcccc5qbFbRreqWcYqXy2o9PKaPv9d6lrx2DdkMFcYGsfy66rNCF4/6mgihWdMa/H1SLG1 qvZ7WCFeP2YfTaygQcE1hz6CspdKhBa2oryKf09j49APBq1ZtwFU88xCjYvoXWi/Rr2KNi9 /jH7LL2Te/IDlSnkmQNZQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:kmeoWLcrFvM=:cmOSRmtUtz9Ya9lxrQmuwy 80GgPppOUaxD2Q7zSIAm9HCnc7/RCYHXE8C2fY86Q763hZfK92o7HDuoDzWBkFkcBlr8nfcja QpL2llBgOfMb8xXGgluT2OD3INOomRoRuakA8BHDNXiiOkgb5Ry8Pket3MFGcQyR2qMY8YLvj KcwUoqa6mBkao0CIT7JefPh7Be/LwuPs6CogzJFfsWJumMpVm1mfREjtQtRBWft16Lu8qdXW0 iRj/VnqHD5b4QinaJ6ZXDgVCyDMQtJ+yGINKOEwXiQ+H46ajXCd2G0w+1fcjgt+QJ5Hv21QiH uT0clSqLO6PadrOOe4jwRJQaLZWSkVvj0xXTYScZgc5nMrbo8sTDvvCeECAIuQxfJr769lvU/ G7+Y6qyqSSJnP3fF4z6pndLI7IxbjfpQkqgCnNCMKYyJA/c59wu6Md1qsSy700hr0ms6yqe1n oNJ1o8LQ2gnBgCU1PATMWuEfOTscMJs+lF4iXUi1oL381uXPMlq7pqiZxRzLGzxnJCNSZ/Zoj id0xC+j6UsrEsfOvcJdV6hX6rC2zR5WqtdWkW9P8F2hwYMuB3XrSFkAFllMyse9/5S/yWoAHY QTkpE7mCQ/gypgCRzda0BTP8O6JhemqM45uOCBKmerwleKpeG31M1c8uOmngCcd5fqk7Xtfcb 5JA0mUDSQK8wd9KBzN/GD8apBIs6O6OL09o5mmN7aEE+m0RsG40roUWq1toXGWyic3KEeYVWz /PU5iZgxitasQ8Ktq9lSwnXIbtLQWdZlVf8379ZjMIVR8TB6TbUyh8SM84ab1ntFM48H+wxa4 POSu/Q1FTPGbSDPvj8xxo3XbYZ9Rte0cr7KkaepdesLJzXNFFvptucWPqyJV796B+bNmDFb2W 2SWqptIgM7DEIxn/8Xr4Yu5T96rHT/0erU430LU2jMG11rkqNVirIBLtCjc0Z8Ea9AuY//zwF /4HjaKGRlXvPffwzpVW+FrC7YF1UIPXWbFdpEA80sxsUuhdYLlYE0q7Jk+FqALLl3Az9ti5ip YHk4fv/Thzo1rJ0YdRgAqFex0k9jrMUyVdRQpWg5H22WheM77nssqR1F2BsshammIY7DrFgGN bsStznOWya2UoI= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645195420; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=aHC63IajJFKl4swYPtqqaJvIhOvTVvX6ges1TPEykEk=; b=WS3Mg1DeduwtJkQfdqgAfr6SovF4cYWLGwpTsLVedekOKjWtd20TddRi8zOqJuvD9e/6+Q F4UQN75WE1hDq+vYQFh4AQDfNA68rgjr3DjcEm3ibzowjig7ulAFAw2Z77o2Oq66Z9GThR eN/euaEtS3XDAG4nY0Ztnm8l8l1dWclQrtsveT3hCpJjsq79AH9rkzXf0ci3CxeUnAe8lk fU/6v+BAyokZq6JpZD025sqjkVIB1XHpOjjLsl6P1YtL5hMV8mGm+n5OamxwSJFberDk2U SSB8buXkQzWSNR4VdsAUaFAelGdoT/jG7NNuxlMpsiRfS5DzkBiuBUy9OmW2xQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645195420; a=rsa-sha256; cv=none; b=h3Uqqe9oZpKRSmcRTPTgdPacKZN6kdlkiLXZ8VAa/8XvKIzhTZISSveIA48+RkSXTJDU7X vzsgq8umSnTyBnrWK1KUcwnpx+zmpr2GWmgPL7BM2+uaF5BTuml1uoECYQ5YidNSoSERi1 Jd2XGJp+q7gbou9AqBZPw+Z+tlUq2T+UgJybmzcoVFYbaDQ2hRR1dm/JrujRPv528NYaH3 ly2qRILqJcYnnbMRHl7xB0wqwY9s5+eqaBDvlU8GD5dHLEFkc8Xl6/ctZQfJgmhxwDoxol jpFKVwS17IIpG3YWTc4PUxq42sL9lktw7RXtKcR5i4DSjwUfQIwmOpP1kv8Fbw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=gEp2X0Qj; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.63 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=gEp2X0Qj; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 077FF25915 X-Spam-Score: -0.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: ZTIk0uSXe/c2 * gnu/packages/tree-sitter.scm (tree-sitter-php): New variable. =2D-- gnu/packages/tree-sitter.scm | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm index 904697154d..e64e248215 100644 =2D-- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -613,3 +613,41 @@ (define-public tree-sitter-ocaml (description "This package provides a OCaml grammar for the Tree-sitter librar= y.") (license license:expat)))) + +(define-public tree-sitter-php + (let ((commit "435fa00006c0d1515c37fbb4dd6a9de284af75ab") + (revision "1")) + (package (inherit tree-sitter-c) + (name "tree-sitter-php") + (version (git-version "0.19.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tree-sitter/tree-sitter-ph= p") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "05k4h58gi616gv41r0qqdb1x4rs8y94vghn2r10yczisgzq4vbad")= ) + (modules '((guix build utils))) + (snippet + '(begin + (delete-file "src/grammar.json") + (delete-file "src/node-types.json") + (delete-file "src/parser.c") + (delete-file-recursively "src/tree_sitter") + #t)))) + (arguments + (substitute-keyword-arguments (package-arguments tree-sitter-c) + ((#:phases phases) + `(modify-phases ,phases + (replace 'delete-dependencies + (lambda _ + (delete-dependencies '("tree-sitter-cli" + "nan" + "shelljs")))))))) + (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)))) =2D- 2.34.0