From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 EA8/C1yYBWJdSgEAgWs5BA (envelope-from ) for ; Thu, 10 Feb 2022 23:57:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sBSmCFyYBWKsAgAA9RJhRA (envelope-from ) for ; Thu, 10 Feb 2022 23:57:32 +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 E91A12FEA7 for ; Thu, 10 Feb 2022 23:57:31 +0100 (CET) Received: from localhost ([::1]:39636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nIINX-0000Rw-4h for larch@yhetil.org; Thu, 10 Feb 2022 17:57:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36012) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIIMA-0007kA-4i for guix-patches@gnu.org; Thu, 10 Feb 2022 17:56:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35417) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nIIM9-0006Jr-Ph for guix-patches@gnu.org; Thu, 10 Feb 2022 17:56:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nIIM9-0000xZ-Pf for guix-patches@gnu.org; Thu, 10 Feb 2022 17:56:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#49946] [WIP PATCH v3 12/26] gnu: Add tree-sitter-java. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 10 Feb 2022 22:56:05 +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.16445337523577 (code B ref 49946); Thu, 10 Feb 2022 22:56:05 +0000 Received: (at 49946) by debbugs.gnu.org; 10 Feb 2022 22:55:52 +0000 Received: from localhost ([127.0.0.1]:57530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIILw-0000vX-Aa for submit@debbugs.gnu.org; Thu, 10 Feb 2022 17:55:52 -0500 Received: from mout.gmx.net ([212.227.17.20]:49121) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIILk-0000s6-8Q for 49946@debbugs.gnu.org; Thu, 10 Feb 2022 17:55:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644533734; bh=8YqDy8iNKGhS9Enh6cJhqfIXUK9v3lEgzKS9trlB+r0=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=ehwvzo/lad+gWfticU9VovEbbOyMaiqwoBYrGijBFMT4+sG2YXjnOXtJQJW7+Z40j NW1deTY4iQy11dFYJVnrZKlq7ZFK4REluFQ+XMCGzvMxtLly4OWdcFuyziW94DUq9U JVOvp/wdG3Q4ji+5XYcbqRBbGa2LMfYe4YObfco0= 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 1MI5QF-1nUg8v1Y75-00FARs; Thu, 10 Feb 2022 23:55:34 +0100 From: Pierre Langlois Date: Thu, 10 Feb 2022 22:55:13 +0000 Message-Id: <20220210225527.25189-12-pierre.langlois@gmx.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220210225527.25189-1-pierre.langlois@gmx.com> References: <87leyinxly.fsf@gmx.com> <20220210225527.25189-1-pierre.langlois@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:5jHasRJ/7D9cg/tGBt1X+8xrB2Nd1vzKmV+TjoLeWpBYE+BLKFm DSds/Hd08Nvf5OU8Tlesw73OxdmRt2o7R1L9RHgCteoLhQRqaStIMEUdEGuTu8ICM8Kv8HD qE/otOqpPAbMyNoBbs75OTezXPtPh2Ofilki+KT7rYzz9Eic10BWfuwZGmMvcTghEdTkeLF Ud837CyUFruVnQoDA1ymQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:aCxGb+wSozg=:TjY8bw+qu9X5rOj90VI/Iw 4V4ielfCCw0J90P6e+Kgu1pXPljm0Cl1ny0gNdSF1J0CodjCEGeFf4Ze1+KAPy49S2QRvORhI ImDmfvsEt6ftSggeXKsbEBTLGJA1Q+eszgrpaDwU/Jhgq9DCeNDoXsjjjnZ2MjEVIxYzStPkF j9eFP6F++VeGOqFHjfOVF7sz6V++acyMSMekcwF1NZ2A54sbkB6BX+y0TZXfK8YnD7i6PxWvU 2kcP1GutfmuA1ZRs12T54hLvR9Jp8RfURBPrZ92bIIi6RMnsVhyMHI+Kn7kb7xtejxNoAcTIG 7GiZoRivXhGI1INP4eHqsx3AyZvuFn4dKARkjwXWMWK8vJJezofvlOVmorXf0KDVy2Alj4OsM zPbhJL0vUBXoeL0nRTFgYbKu6vsUCXIBaqKqLnpv71FESpWvFe3WnEDvXRl3jzMvkvXjJ2GyQ /IhiImtumzY1E5h2Ld7LmkRyBZk1/eGZo9OYn45jcs+TycAnB8ilVH/AjhAYmeEy32yjdS5Ia 1ofFDGCN1g/ahW0Phay6DgW0It1V4ysoEBtFxl5I+TtymH2TbTPYlIPbwa6icd+FHrNrdZVkA hsHRhXcQoIW/YI+3pprYs38//XuQySdZ73Ka1dhSEL0+kU65borFun8extFA/Xfojl3APt7Uz ebk7+o9vImF6T4zxhsTtD09qds2P2oadmOpNYpD0qG5Rl5LLjGZJP6xZ+q1R6wBkBVaQ+42LB Nl0gpnzn4P/V9+HDtD1PUjSwDaYtsyqJ2T31m8I0Hx0WeZbQpvQ/qSiLfyoUglrzHWQqLk0wm Cb3ycVcrwHU9G79qyqffyvXxB5eQ+rUCeGfEDrmfwGdRebrZAQu+wdFdePE8d6RBy9TdjBY4G 1c9fZzXE0bhCkZ+EMTrCOG4wn4/J8wxN6RjhCjxMiIYVfhHo687dF33KwPT806fis67noROla fDx6WLDtOI1ZaAQD3JqKd4qy99PWvpilNkAPeK/WuTymmYbodDeTwfxRwFa8jVEZFG7F96f7M wBwIJpfEloxTREa6Rc/EK0Cdqt/BtHuB859XaNiTUL/ByCmsQl0jNQXl/ypX5ocMvnqNg8Q+B PTooFh5d27BIl4= 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=1644533852; 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=iiObxbKyIdwn/iEAIvP+z7+ZcZnuGWCX5tAzbW/5db8=; b=NJuaiZ2Ffegn5tZf6hL+bOiN0rwu856wAvb3NQYTcKNlvvUlWRkjYBVlpJBzboc/nOHGuk U5EM7Y7Z67lrNAwLRIzRFnd7snwaeL+XQulCsOnIqyksq9ia3eyEXgKcCnObCspYjN9ahy dbSFKtvaws5MadIwN8ZwO7qDAoiK3Q7UyWh1NlwkQ/PECBoByd35EYh0SM3DOcSJunEWc6 n4j/d93nD9Hpln/Jhim4rNIod1YBWxeDFJGT1+smIlJ+rg6fAjvorkbiOpd5lYENlwORqK f3SQ8I6Y0TYD/cjTyHy689JWn2EZO2LXB8TdeZ+iwdx/7aJJBC64ttBt2BMJFA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644533852; a=rsa-sha256; cv=none; b=LpjTba3TDxwrwbaayeKI6GHPWeRz6JWZnPRAR3iMRU6MaYOreAji9w7pa8DhR++jrigsR4 f0neGQpScw6W3NUZQdLwWSuXodyaImUEeWQ9rFcTrwEhPI5GRr6ulh9ayTj5JPwQHuuDKF 7jVJAmto0seskQ/06HeeHJUjbr8Yn/IuMeWOj/7WM20luYDueHfvre8slUt1RvBC6G9KhI d2uecs/q9Bici002QUg/9XKOUsCohIE7YPf4J1MfPo2b44sNCJHgbe0ixWwYX3YNjyn4oX YGqxV3S6uavEZ6eD7s5mtvtC8sYnefKV5aj4ggC0wRoORU/iK6OiOCOpVdiySA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b="ehwvzo/l"; 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="ehwvzo/l"; 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: E91A12FEA7 X-Spam-Score: -0.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: WIt/8fENymVE * gnu/packages/tree-sitter.scm (tree-sitter-java): New variable. =2D-- gnu/packages/tree-sitter.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm index e4679dc8ab..760a7871df 100644 =2D-- a/gnu/packages/tree-sitter.scm +++ b/gnu/packages/tree-sitter.scm @@ -340,3 +340,26 @@ (define-public tree-sitter-html (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 (tree-sitter-origin + name + version + "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.34.0