From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sLERGee/b1+DagAA0tVLHw (envelope-from ) for ; Sat, 26 Sep 2020 22:25:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IJfeFOe/b1+PWQAAbx9fmQ (envelope-from ) for ; Sat, 26 Sep 2020 22:25:43 +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 1C1AE940BBC for ; Sat, 26 Sep 2020 22:20:43 +0000 (UTC) Received: from localhost ([::1]:34512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMIYb-0007wf-Nh for larch@yhetil.org; Sat, 26 Sep 2020 18:20:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMIY0-0007p2-Br for guix-patches@gnu.org; Sat, 26 Sep 2020 18:20:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36413) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kMIY0-0003y7-1v for guix-patches@gnu.org; Sat, 26 Sep 2020 18:20:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kMIXz-0004Rs-U0 for guix-patches@gnu.org; Sat, 26 Sep 2020 18:20:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43639] [PATCH 13/15] gnu: Add java-tunnelvisionlabs-antlr4-runtime. Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 26 Sep 2020 22:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43639 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43639@debbugs.gnu.org Received: via spool by 43639-submit@debbugs.gnu.org id=B43639.160115875016984 (code B ref 43639); Sat, 26 Sep 2020 22:20:03 +0000 Received: (at 43639) by debbugs.gnu.org; 26 Sep 2020 22:19:10 +0000 Received: from localhost ([127.0.0.1]:47949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMIX7-0004Pl-I1 for submit@debbugs.gnu.org; Sat, 26 Sep 2020 18:19:09 -0400 Received: from lepiller.eu ([89.234.186.109]:49482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMIWt-0004Mg-43 for 43639@debbugs.gnu.org; Sat, 26 Sep 2020 18:18:55 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 00e18bcc for <43639@debbugs.gnu.org>; Sat, 26 Sep 2020 22:18:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=from:to :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=dkim; bh=PY0P2yQtnAguhF+YEsDTmZU9Y GyH5RBxGw1aQFATZFY=; b=GpEezBRsmpCzPsb9eqVnRQfq7SRSLup00UDBigX57 N/IiYvhGWorp83w55dk9QD7jKcO308wJaIbWYSLxoeuAoqmqd3pYxqc//gV6rh4T 32WqZW7aOd8ui/iAVpkXyspbVZciuIfnl6VuI66IWrUUvyac05FIG/18qyPt0kQP U8uEEbjtC3MgxnsOv8zbzskwG33okPK2IEhHoy8JiTf+RZj8BQoeqKpcq90urX2L 69V0dwtWMhOsU9Noj+/MtmwVORHFIL7c+V6SAnngYB8LES2nYu/nfMTcexihO2r0 TjKp9r64ymC5b2X7nAoof7JkRojaT+EoMQovhDBw1ggHA== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 7e0963b1 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for <43639@debbugs.gnu.org>; Sat, 26 Sep 2020 22:18:47 +0000 (UTC) From: Julien Lepiller Date: Sun, 27 Sep 2020 00:18:22 +0200 Message-Id: <20200926221824.20925-13-julien@lepiller.eu> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200926221824.20925-1-julien@lepiller.eu> References: <20200927001335.40c2409a@tachikoma.lepiller.eu> <20200926221824.20925-1-julien@lepiller.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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-TUID: RIbxJrjnCOXe * gnu/packages/java.scm (java-tunnelvisionlabs-antlr4-runtime): New variable. --- gnu/packages/java.scm | 73 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 73a5fbd693..83d26c4ab4 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -8558,6 +8558,79 @@ parse trees."))) (description "This package contains annotations used during the build of the runtime library of ANTLR."))) +(define java-tunnelvisionlabs-antlr4-runtime-bootstrap + (package + (inherit java-antlr4-runtime) + (name "java-tunnelvisionlabs-antlr4-runtime") + (version (package-version java-tunnelvisionlabs-antlr4-runtime-annotations)) + (source (package-source java-tunnelvisionlabs-antlr4-runtime-annotations)) + (arguments + `(#:jar-name "java-antlr4-runtime.jar" + #:source-dir "runtime/Java/src" + #:tests? #f; tests require antlr4, but antlr4 depends on this package + #:phases + (modify-phases %standard-phases + (add-before 'build 'generate-xpath-lexer + (lambda _ + (invoke "antlr4" "-lib" "runtime/Java/src/org/antlr/v4/runtime/tree/xpath" + "-visitor" "-no-listener" + "-package" "org.antlr.v4.runtime.tree.xpath" + "runtime/Java/src/org/antlr/v4/runtime/tree/xpath/XPathLexer.g4") + ;; Generated code is for an incompatible version of the runtime + (substitute* "runtime/Java/src/org/antlr/v4/runtime/tree/xpath/XPathLexer.java" + (("LexerATNSimulator\\(this,_ATN,_decisionToDFA,_sharedContextCache\\)") + "LexerATNSimulator(this,_ATN)")) + #t)) + (add-before 'build 'copy-resources + (lambda _ + (copy-recursively "runtime/Java/src/main/dot" + "build/classes") + #t))))) + (native-inputs + `(("antlr4" ,antlr4-4.1) + ("java-tunnelvisionlabs-antlr4-runtime-annotations" + ,java-tunnelvisionlabs-antlr4-runtime-annotations))))) + +(define java-tunnelvisionlabs-antlr4-bootstrap + (package + (inherit antlr4) + (name "java-tunnelvisionlabs-antlr4") + (version (package-version java-tunnelvisionlabs-antlr4-runtime-annotations)) + (source (package-source java-tunnelvisionlabs-antlr4-runtime-annotations)) + (arguments + (substitute-keyword-arguments (package-arguments antlr4) + ((#:test-dir _) + "tool/test:runtime-testsuite/src") + ((#:phases phases) + `(modify-phases ,phases + (delete 'remove-unrelated-languages) + (delete 'remove-graphemes) + (delete 'generate-test-parsers) + (delete 'check))))) + (native-inputs '()) + (inputs + `(("antlr3" ,antlr3) + ("java-antlr4-runtime" ,java-tunnelvisionlabs-antlr4-runtime-bootstrap) + ("java-tunnelvisionlabs-antlr4-runtime-annotations" + ,java-tunnelvisionlabs-antlr4-runtime-annotations) + ("java-icu4j" ,java-icu4j) + ("java-jsonp-api" ,java-jsonp-api) + ("java-stringtemplate" ,java-stringtemplate) + ("java-treelayout" ,java-treelayout))))) + +(define-public java-tunnelvisionlabs-antlr4-runtime + (package + (inherit java-tunnelvisionlabs-antlr4-runtime-bootstrap) + (native-inputs + (map + (match-lambda + ((name package) + (if (equal? name "antlr4") + (list name java-tunnelvisionlabs-antlr4-bootstrap) + (list name package)))) + (package-native-inputs java-tunnelvisionlabs-antlr4-runtime-bootstrap))))) + + (define-public java-commons-cli-1.2 ;; This is a bootstrap dependency for Maven2. (package -- 2.28.0