Subject: [PATCH 14/15] gnu: Add java-tunnelvisionlabs-antlr4.

From: Julien Lepiller <[email-masked]>
Date: Sun, 27 Sep 2020 00:18:23 +0200

* gnu/packages/java.scm (java-tunnelvisionlabs-antlr4): New variable.
---
 gnu/packages/java.scm | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 83d26c4ab4..8b6f3f945b 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -8630,6 +8630,17 @@ the runtime library of ANTLR.")))
                (list name package))))
         (package-native-inputs java-tunnelvisionlabs-antlr4-runtime-bootstrap)))))
 
+(define-public java-tunnelvisionlabs-antlr4
+  (package
+    (inherit java-tunnelvisionlabs-antlr4-bootstrap)
+    (inputs
+      (map
+        (match-lambda
+          ((name package)
+           (if (equal? name "java-antlr4-runtime")
+               (list name java-tunnelvisionlabs-antlr4-runtime)
+               (list name package))))
+        (package-inputs java-tunnelvisionlabs-antlr4-bootstrap)))))
 
 (define-public java-commons-cli-1.2
   ;; This is a bootstrap dependency for Maven2.
-- 
2.28.0