From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4B5ILCxnK2EbbwAAgWs5BA (envelope-from ) for ; Sun, 29 Aug 2021 12:53:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KCp3JyxnK2EhHwAAB5/wlQ (envelope-from ) for ; Sun, 29 Aug 2021 10:53:32 +0000 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 37DDBEACE for ; Sun, 29 Aug 2021 12:53:32 +0200 (CEST) Received: from localhost ([::1]:42964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKIRP-0000io-5C for larch@yhetil.org; Sun, 29 Aug 2021 06:53:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKIPz-0007sr-C7 for guix-patches@gnu.org; Sun, 29 Aug 2021 06:52:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44098) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKIPz-0005w9-1w for guix-patches@gnu.org; Sun, 29 Aug 2021 06:52:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mKIPy-0000Qs-WF for guix-patches@gnu.org; Sun, 29 Aug 2021 06:52:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [PATCH v2 22/33] gnu: Add tree-sitter-php. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 29 Aug 2021 10:52:02 +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.16302343051600 (code B ref 49946); Sun, 29 Aug 2021 10:52:02 +0000 Received: (at 49946) by debbugs.gnu.org; 29 Aug 2021 10:51:45 +0000 Received: from localhost ([127.0.0.1]:55637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKIPh-0000PY-0t for submit@debbugs.gnu.org; Sun, 29 Aug 2021 06:51:45 -0400 Received: from mout.gmx.net ([212.227.17.22]:35591) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKIPe-0000OS-IE for 49946@debbugs.gnu.org; Sun, 29 Aug 2021 06:51:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1630234296; bh=t0RWa1UxeqzH8MRS4ZDM3LQ8CaHPyHDeRunP/ahO0uM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=O9Nz+SZSg+mPWsjfC0SIOjizq5ZrrdSZhTM7ny2euW7Ct8SLqYxX/Qxzv25eO3D1P 7uo+M6V8nzJZAIiunqkCV8aOg9H8WTyG/AGS9UzgoQ1/QqblN2fpUwcKomBFU8rgPv EQJgJR5c1WK1FUsmH+XARhgTvC07TdWLzCYjjfoM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([82.69.64.142]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MKbkC-1majHr3Dg4-00Kzej; Sun, 29 Aug 2021 12:46:35 +0200 From: Pierre Langlois Date: Sun, 29 Aug 2021 11:45:57 +0100 Message-Id: <20210829104608.3103-22-pierre.langlois@gmx.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210829104608.3103-1-pierre.langlois@gmx.com> References: <87czpwzg9e.fsf@gmx.com> <20210829104608.3103-1-pierre.langlois@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:UGGxURTBmB5Y6hVvlyxqFY+YSdOKYUT8N3ocxuVEGLHk4Acmv67 BztKVHJPqyzKZQnk2XvjleOuQLiDfUVb/9DFkl3/LqJvYI1+uiHd5zl/dXbeqCi4s4Oj8cU or98A2w3HyqEq6qrGUcftY/ce1ITzqtumt5wPKv6h8hf/IXVabVGMCUR7e+HEDnkeCh+zSL HaH4I+JFYxIhH7bj6Qdyw== X-UI-Out-Filterresults: notjunk:1;V03:K0:EkC7b6NdWyo=:v6xaqg7mdohKM1wnKBfq2P b8K0xYhNfWlTUKRF4yE0WmZsGh8ZrgYKCqANjrukWZ2/Fydl/e4ygft1DmBzMshYhSGSa12n+ +tLIXKf7YoRBt/zzQ4cZS4CefnAobhg/EBNwdG3QhLEM74XtD23635i1U/5xVGJIT7cAeTGRf aHa2mOnuYbQdmVwUhStLQS2BqDZtqtWmEAJvtRsnml4mQX4JFmlMSSeCmjhLO8WP+BitS3ANX 8Ce0Q5nRdbVPTw3kkAvg7tx09ShcGay5Cen9KyGiZlR7B+spTzkvEQnWY4e3TvFduwCuRu0nT vgA7I+ksfB7JBJfRuzECHJwFek3helchk/qiRFE+xKz2X79gjdsQCiZ8ShniCmzW/IWA2vpkN ttuDGYwlbl5mu3wqbnFVUPDFRpUvLm1QlEhAJWD6VC5C+FnW0pk9hy0zmIES3MEMWtM7tdHg2 X/pzW6dfgnYlhAao91e86zelJr15zyrwceY8SGvUGv2dPjSCQeH4dx3Bd+6Vb0hiao47L8u3R Xlc6+gE/kdaoT+0mmI1gvVA9BLYgxL6+54VrNWsTKRKXP5RXaQrD/sWmEmV0AGmRA3bae+sia yFZjV0is+TMaTb4iFbdNdjKQTQpLqrxPSJBr7NMS0i31Vu1aM1Lu7Yy0fVxEnpP4lgMJblq7/ f2BwxL/uyFNcn/POlOyTJ0w8ROHHkBE01A8kN6BuUtWu2BqQFqTTl8EUrzeVUnpGJBDbQ8vb6 jv0War7F3Paz2gATeDgg9s0pekyCxGA5L6XDXS1MxtaEITT6WxIoiTD93Uu3krM5QAWM7nK9O csQ660iLbtGs+oXQ2H9yw1qm1e1FjhaCMrCFSpQnUN9nv4YWTY7DYWgnhxHF1ra7JlBmAGfg3 aEP2MS6X+H3PZiTX3izI2QUDUPD8z3McYReyV032HPzW1D3xFEvSSvBoFLSrNCeBgTix6WoTf 1MKwWqQOUQuGvT7W7a/KuGmqHx4uiIh7w8lsCoQdzDl1Pia+5ExW3UID20ofzRSa5n2b+Qgdt UY+NnarrVzMERTXGy1RHYYxOOzHLRNhR4+CNOGOdVN+VjtcvtocPO6M/L87TjyA7jBqgmGEa/ sZcAtgjJkRjwJtCdSqNK625TESjS4AR7Crqdx1CAgkAc8shFKFudgDIAw== 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630234412; 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=ctnocy1toeDVsOzTR/SFYOGQ3CdUj/29GVuD3BX3zRc=; b=WpiE/JWXWDxrR6K26/tzvmJ36dzFBkfcby5VuuqsyfnPHG0aPlxldSlSCKn4xLQW0gB4ac WZ3dyzlBqInhVt5h8GD6Dn4XgYwuUa0VtxSaKJaML+TrJqa2B8czCiVL6bAda2272/M47e T4xnoCboZuWjt9I/H4CiMEMER5sQXl8C2kq2ZuCMrCHldvPQsry29xeI8I0dXfMa8YH2bz lgaCfCrDU0i592g63aoSGB/RO2tsybw7HAVol3hAn3dxhu4cG16TwhASpbN3vy3RRXc+Q8 JOGRPIstZd9a1sXtdoBiHHUfCYiB0yNH25iw6xn5QzJ3hopyA0fZU36/7ZUGlQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630234412; a=rsa-sha256; cv=none; b=q7PEQbLkMhN/6BCMgg/qW8nZX2UaAiLohoMKu/ifH8x7iALpaqQjZQe3cMmtKI6l8C2h8G YxJaE167Q2orMJq0Wp3n1eAdN37CFGGomRSpPlYt3hwN6gD/sFvcPvzesj/8wciF2KElo+ GY8rTat7HRG4UPaHZhGEirYGC0s4M7uRxB9hPUzu3IU/E1zvhkEiEB7U2E6WjPzVziKbHb cTzgFh/C7Mw3pWmVzEJ93cy2jv9ZcE3y0HzMzBGRvcv1G+aFtybebfPS9fKZZslWIIahBv u5HdF4GBc7bpjnhXxHYKS+1BU10ypNMlGkYJtgfDabwbFXZnbVNma2zwGQ5kdw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=O9Nz+SZS; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 2.17 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=O9Nz+SZS; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 37DDBEACE X-Spam-Score: 2.17 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7adNRdSkvF/S * gnu/packages/tree-sitter.scm (tree-sitter-php): New variable. =2D-- 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 36831b00b6..d717bbf7b0 100644 =2D-- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -433,3 +433,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))) =2D- 2.33.0