From patchwork Sun Aug 29 10:45:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre Langlois X-Patchwork-Id: 32373 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5593527BBE4; Sun, 29 Aug 2021 11:53:36 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 046B127BBE1 for ; Sun, 29 Aug 2021 11:53:36 +0100 (BST) Received: from localhost ([::1]:42802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKIRT-0000bC-3E for patchwork@mira.cbaines.net; Sun, 29 Aug 2021 06:53:35 -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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/tree-sitter.scm (tree-sitter-java): New variable. --- gnu/packages/tree-sitter.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) -- 2.33.0 diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm index e2a0757e30..174f0923f8 100644 --- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -325,3 +325,32 @@ This package includes the @command{tree-sitter} command-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)))