From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WAcNL25qEGGCJAEAgWs5BA (envelope-from ) for ; Mon, 09 Aug 2021 01:36:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 4OuaKm5qEGFeOAAA1q6Kng (envelope-from ) for ; Sun, 08 Aug 2021 23:36:14 +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 302E010D77 for ; Mon, 9 Aug 2021 01:36:14 +0200 (CEST) Received: from localhost ([::1]:43738 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mCsKz-0001CN-Ci for larch@yhetil.org; Sun, 08 Aug 2021 19:36:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56884) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCsJx-0007xW-5n for guix-patches@gnu.org; Sun, 08 Aug 2021 19:35:09 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43472) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mCsJw-000675-VP for guix-patches@gnu.org; Sun, 08 Aug 2021 19:35:08 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mCsJw-0000vo-Sn for guix-patches@gnu.org; Sun, 08 Aug 2021 19:35:08 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [PATCH 16/31] gnu: Add tree-sitter-java. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 08 Aug 2021 23:35: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.16284656773405 (code B ref 49946); Sun, 08 Aug 2021 23:35:08 +0000 Received: (at 49946) by debbugs.gnu.org; 8 Aug 2021 23:34:37 +0000 Received: from localhost ([127.0.0.1]:54995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCsJQ-0000sl-Q4 for submit@debbugs.gnu.org; Sun, 08 Aug 2021 19:34:37 -0400 Received: from mout.gmx.net ([212.227.17.21]:60323) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCsJH-0000pA-OW for 49946@debbugs.gnu.org; Sun, 08 Aug 2021 19:34:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1628465662; bh=mBOJGm9JsV8arZvjDwt2lse4nTgdGqucvRss1PwYtYI=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=h8Zhi7FfYiKxtwVVC3Or1gySB+nCpSY5O6hO0gS51D1RfdNKescOvaaYj2FIcPELA mx4jyimCyYgH1DPsf1HRNbL2/cde6II+VHaygHzrdZjjfV8ze8u4t3QNueijgN4Hv+ oLUGSheiW9qpG5Uf0Jz8tTlP8lK++AM+Qb3VmIlE= 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 1M3UZG-1mDQXX3bhS-000ZiB; Mon, 09 Aug 2021 01:34:21 +0200 From: Pierre Langlois Date: Mon, 9 Aug 2021 00:33:39 +0100 Message-Id: <20210808233354.6745-16-pierre.langlois@gmx.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210808233354.6745-1-pierre.langlois@gmx.com> References: <87h7fztt60.fsf@gmx.com> <20210808233354.6745-1-pierre.langlois@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:2snYmM0kTzSfYbPFvmgvv/F/3vpuwihIBGNKrGMP21JTTvCU37e 4DluRnvRdqZT8AEIDsYkebMNmOnn9BYfyis3yShlETGIyXZ3xdWi7iyX9NEb/d4928JQibz os0zVHCKogLv/d7MmppAtskW9AF1IZJU7F5fFhub23nz20OaRCsv8jKUAX4QhM6czeDL/I6 ZwkYFO4MrKNS2NC+J882w== X-UI-Out-Filterresults: notjunk:1;V03:K0:q+L8LlTNt+M=:vup5puxGOTDpt90pQcb/9u 551EUcAOvNqw5ZFqSnwIHqpl52o3Lc/GMGFpJYY6XeJKtD6/p3yYLAOMbBAHWaP4LiaBIQhzd z9juD9dS5VLmQr9jEd78tfJPoOKr0UtewXd0luuvHQ14k5MLPh1Tvx7XLcX181SkKLm42c62i MHj8ok9p1nf8aVc/j8g0dMDtM6DKPUjg5RrfnsFKNsrl4FPZrtn9zf/kKT4KCn5nKvakFapVe muvOc8Xvt3kcZyXXKe9wrduB8sQl/0gA9YgKwe+drSqLsMwDDamq657z/mxjrnZB0Lue6AwaC 5lRIz+EhX5bRMLaEwhAX8YeVw145jZLB+3p4DwoC/lF9Syx02wNJa25j3YhCRVbahjviVM/9U iFP4q4G4QmLtXiZwA6MRd2StNJPUMOyRCVthMSCncv1K1FUT7gfE/YQkpB1t9vBUmyogLrX50 SFQHB1zhz/Wp1PTFyPNxxHtIZ8ClUZnP1v/YwLwahkR91nwTjapW1sfpyCKlkA8dvRxg+H1nF gHCvU9lRbCzuBrMbAk0kNWNlCBcTOE2P60coPQXhMGKwseb9vJybo+KWtizWxqXGiwo9tFW0N 4aunlL5tWhm8U9su3D9iluKMwRsUpucEaMmGar2O91XAGK5WomZJxVLf01ygWTSt45l932CmM 6V4gyzK+5SBVOw/YxbVA0jKRQWyKOZ2+u/AJ6loffAIxXa22zFHmaXkhrJsrBi0urc5kmkI9t 0VOMgZ80xx3yS2+U+MCCwA+ptllAarglSYXyS8YVt9w+mKMmHVHJRH07SstWvOUneYKIql3m6 Fisn0dyqevRpziSyFvyixMd//uA2jPAvL05OQTo6j+AQnPiV/Hw7y3xZgfSigk5ocbwQl8Ycz XcB9Np2objeyJfWisXVEcpZmCQmJG5e0FL6wY/XFIUChOOmBvBQ196e9toSDb4lHAmdV6Bcdg TcyXGo+5iijN76NS9mGJDyhDOAsl/rs0TZXdMEJLwx0h4dT3Y/kSIlaBHbIOoke4Y3LTc9obq 80ncrFurqQwxYlAFdI7V0KB5ZTCiS1bOVwBTO4Y7kLnLIcEQsfeg6H+7+WOLz8GZkAivBCdwA +mHs4VEUXelJ46OhVUL2MttrSgJkuJa8TaLFscXPSiGgYb/YdMg+6PJaw== 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=1628465774; 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=MECePh0CIQ+GT+k2y2kq8h3o4nR7TC7+ZxdqVeLuy6w=; b=kKnNNo6E/17UpojNg7WBOPcvCPVJwjZ+mxG9o9h/J7NI9Y/ciFT+6z5b/V1OtgukT7qQVF ZeZbU10EO1hjUmt4YdWQKv5+P3N3+UEzf3pLevv9f3o+Q/xZixzmZ8/uL80zbkS/K5rc/H Vp8lEJ5wbe/wNMjt+GMpGKUZHMogSj4USGbmnWBi9ybSIOg1miZJ/C3CYpb1JxwbCoOenn 5nFS415xDVZq5fP9bQudtJxgrTDV6wnPmMz3HyZo2PtBjWcnsnTrv0JdZ5ARKNjzlWBZ/E /BAcZ8Dm9/WzVl2iXq4w1gFSg3IBiJG3+Jk2pqhQ2sLpNAVoJeGubn2FIsVgdQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628465774; a=rsa-sha256; cv=none; b=n+al2BxZs1IHRUyTDMIgbvcak0vIuzLM+lAwKFsL/uMbryoAqwXywqkJ/FEt6WgSoiyJev nkiDAQfPz582iUGTIHN4XOX986Vqd5Quw2zQhs2tDvh5YEjkNcOMrsofPL2PgCqfGXEKVU EA/+MT7fOlfe4Uc+C0Qs7+3T3mk/dmiBJxGPQiqItflCO3MZRforRLL9RJTWsCbC4kicB0 Awb4M6o0T3ujJ8Bt00pz+HM9FO6kzTdFrX7DqjnaKDY1sTf7wxeeJiMQY78Xabi2n5eIqE kadWHNPZAU3Azw3iGSPRqhYersRjQzoKFoTATzeEZqxa/A1hmXktCp6uZV/wJA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=h8Zhi7Ff; 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.19 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=h8Zhi7Ff; 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: 302E010D77 X-Spam-Score: 2.19 X-Migadu-Scanner: scn0.migadu.com X-TUID: is1vM1F4HrjR * 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 c2ca5a842a..e671c3fbf9 100644 =2D-- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -251,3 +251,32 @@ library.") (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.32.0