From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mAStOCBnK2EbbwAAgWs5BA (envelope-from ) for ; Sun, 29 Aug 2021 12:53:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 8IRMNCBnK2HEKQAAbx9fmQ (envelope-from ) for ; Sun, 29 Aug 2021 10:53:20 +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 9D399ED01 for ; Sun, 29 Aug 2021 12:53:20 +0200 (CEST) Received: from localhost ([::1]:42802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKIRD-0000bC-Jj for larch@yhetil.org; Sun, 29 Aug 2021 06:53:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40006) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKILH-00067B-S3 for guix-patches@gnu.org; Sun, 29 Aug 2021 06:47:15 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44068) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKILH-0001gz-KL for guix-patches@gnu.org; Sun, 29 Aug 2021 06:47:11 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mKILH-0000Hk-I2 for guix-patches@gnu.org; Sun, 29 Aug 2021 06:47:11 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [PATCH v2 18/33] gnu: Add tree-sitter-java. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 29 Aug 2021 10:47:11 +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.1630234024952 (code B ref 49946); Sun, 29 Aug 2021 10:47:11 +0000 Received: (at 49946) by debbugs.gnu.org; 29 Aug 2021 10:47:04 +0000 Received: from localhost ([127.0.0.1]:55588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKILA-0000FA-Ay for submit@debbugs.gnu.org; Sun, 29 Aug 2021 06:47:04 -0400 Received: from mout.gmx.net ([212.227.17.21]:35853) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKIKl-0000AR-UW for 49946@debbugs.gnu.org; Sun, 29 Aug 2021 06:46:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1630233994; bh=4xJuuTKlcku5sH4rT0cPJK5IoDn0xtD4L/ETf2qf/NE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Q0XqY7S3HPOpyAOwVC6uwb+NxxFo1l1dxDYcQQs/DFS+dIjgvyRmGP4IFv8RhHJ8D yI79+9uycagjbIvBpYSr2xdt8WifDTVIQ4uccMx4p/JAwsRxmJsoDgnFKoP0Q98AbF iKj4ADgJupXxntc6O3ipuLKwK+ipiyON2i2oGdfs= 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 1M2f5T-1mINK106Od-0049WT; Sun, 29 Aug 2021 12:46:34 +0200 From: Pierre Langlois Date: Sun, 29 Aug 2021 11:45:53 +0100 Message-Id: <20210829104608.3103-18-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:5UHI4Sx86FNRkImrtxuUYdpIEsYqthLfR1p6ICNLQpDXK5CZj6O 2B7UGfrD0tvh7JcR19lYHfSHQYi0fI7qm4rik1YRKPBeJlS0xxkpatwYjmfbyRGsX0tcYxP dCcglf8ZYK+PxqRIAonJhz4yD9eybcfyBoQn67yXhOHtOItTMbF1tMJD98y9pS8/+4fAo/l RwexzwsIwWvQwKREhDgBA== X-UI-Out-Filterresults: notjunk:1;V03:K0:HBfhtjoR2vw=:XtDr5vN1nkA+o+0fxoPx56 J9cuzDIW9Q61QWkw8ueVL+hpEDTMCN4oekTET5Hx75q1ujuY42a8C603H9k4I0zKGbXRSfsP2 ExKcF+ikvqUCXdj4cMTVJrSWiDvmNfr3a1rcsamXKON/GMiiYxgvrCNlBUyLnfeVSSWM3yTnc uxxsH4ipAq6Mii3VKrHx54IFJS/mzRBQjR8WpMEtKIFBMa4qSn/4x60Pak1XxP1tXQdyQqMSx hs/zVU9NqJRgkom0PrKsI1Z8Xb3WRNrErUxEMhCHAdRqO7S9C96FeGtkwAczieT0NkRRlXczH f2gVotHmLBuMUn1Hn2p3yc9HWqShcf1BC0rc7dDfTEcYOupagyg9b77vOjSNqy+huAVC42cFc zft1BGvpg8ifHfMkMBOx7OlD0AF8I+wSic4dQYTQc+qijSCxdAA0W4ED8DW+p1IF9dBFW52BE FpSW4sbhOmASyrRrclfsWER4lVEdvW0uvNSqft1+nMZPcEhd2MBx5KQuC1e6OzHQ6akJqiJuJ dL73SVxXTtC4qv/n7zJpvh8uuaSckJI1jfObLFMlg/Dl81S0FNyi1aDT+IMfbJcIDT8ILOgcY GWfwdWeKH+FcJYV1ZR2Jrv7K/66T1tP+uaG1rbIKNIrMNrp+jOyDMVFgjaVLJ9y6YTrLydR8s s0q/bnAufDvCPuqDnYXwS78nHrnaCLn8MSZvEzq1qqCZn8VTCllz68oRxSG1GiPJEVDKCU5Ny ib7c5tfLe0g07DVD2CCpfNtFUAhVAVEdgehbgEbrxh2ad4evUwjlXNGqhWmzbTq5EUXh1fZem 7rW9Onk4YsyvxeNfr6SlP/i9XER0T5KpSTUuuX8QTDJOH6kHtgl1TgePSFg8g7i5g/jH2KEKg +95v2peu4poUt6ldRvjWRt/Eqv0PXvF9QMnOkXpKBc6HHoYe0rEA6GSE3kofWcGgqebSYARGu rWumRMV6FsTd8okXdWQGq54wO+njvPUVzSzywSw4lun8MLbp1I1WxSYum1mFy/DL7P8OnsV+0 dpYRTw0rDEA95VTIvDZ+dPxVDLSuMC6fvb/pTSfn4lMk0oMTeSAwsiUsuU6jJDSFyFI0nxkUu vu3j0TnydlxtSYZ4VBk4edEEH7J76a1uc1RduYMTK1ty94EqWeQxVATJQ== 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=1630234400; 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=Ck/FgpLe6+EHvXwsujfv1NOP0bJDqGqrzcPpzUUi0Qo=; b=KCq/hU0V8J7lC0bSbsJP4dTQlVRXxYnNVyUScEshKP2jCl9O3II6oE9tV98PXp/0DTq2k6 0EEvecddcdI5tABFbNd+Y9Ph9Kc9XmxolcqyBt9az3hX2eubwHqpcYPHr5bnwOBPocWI4l Y5niJ3GYmE45dfAxgfM3OMMgjRqsLDHVipEM3uStm2UTGwaajWY1PIAN3Jyc54a69p2saK aRLkeTi9JdSwPCdrzQ0Bf1Ec45tU2qmky12a6MXuSZE3u9wJAv3HEB6bsy7HnhAJLZOHxd /NiCDyoA0hVWFzaU4X3a9gvIC7H2urKiW6nShdufdlqDz+ZTv0R0Yw1eSeWKzg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630234400; a=rsa-sha256; cv=none; b=BpeeMY3GwhHjM5cTfNUBHHIIHq4ww7CmXNnnTOoMhfHLaJXyQKDFdnUhqKrSvbRHgW3vSy z/9e/v/QbHsn+wzmzV9KRV9sldRSn2PycfDmqjwjrEQueilgA/8qnCulthiOvRJ1nPBTAA Ty10YTDt7D0i1TRIGwlVBPFZkuy5CVRddPS40R0oafGEliMFViE/g+UN0APgkzMexcFRgv +cyyo9aw9KYi8U5bccBOcBl5MY6c/KJjAyNWennP+Dwnm+orp8hDk8kpjIlLiaZH10tqoB fdxlwpKmztYIq+9JTLhdhjgZY5P+A1RF9nZoRyhl5Stgial7r+HvRwxtHp+Nqg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=Q0XqY7S3; 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=Q0XqY7S3; 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: 9D399ED01 X-Spam-Score: 2.17 X-Migadu-Scanner: scn0.migadu.com X-TUID: q2RhofuUWblg * gnu/packages/tree-sitter.scm (tree-sitter-java): 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 e2a0757e30..174f0923f8 100644 =2D-- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -325,3 +325,32 @@ This package includes the @command{tree-sitter} comma= nd-line tool.") (description "This package provides a HTML grammar for the Tree-sitter library."= ) (license license:expat))) + +(define-public tree-sitter-java + (package (inherit tree-sitter-c) + (name "tree-sitter-java") + (version "0.19.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/tree-sitter/tree-sitter-java") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "07zw9ygb45hnvlx9qlz7rlz8hc3byjy03d24v72i5iyhpiiwlhvl")))) + (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-java") + (synopsis "Tree-sitter Java grammar") + (description + "This package provides a Java grammar for the Tree-sitter library."= ) + (license license:expat))) =2D- 2.33.0