gnu: Add antlr4-4.1.

* gnu/packages/java.scm (antlr4-4.1): New variable.
This commit is contained in:
Julien Lepiller 2020-09-26 21:27:09 +02:00
parent 57f6a91585
commit 77ae41457c
No known key found for this signature in database
GPG key ID: 53D457B2D636EE82

View file

@ -37,6 +37,7 @@ (define-module (gnu packages java)
#:use-module (guix hg-download)
#:use-module (guix git-download)
#:use-module (guix svn-download)
#:use-module ((guix build utils) #:select (alist-replace))
#:use-module (guix utils)
#:use-module (guix build-system ant)
#:use-module (guix build-system gnu)
@ -8484,6 +8485,38 @@ (define-public java-antlr4-runtime-4.1
(inputs
`(("java-treelayout" ,java-treelayout)))))
(define-public antlr4-4.1
(package
(inherit antlr4)
(version (package-version java-antlr4-runtime-4.1))
(source (package-source java-antlr4-runtime-4.1))
(arguments
(substitute-keyword-arguments (package-arguments antlr4)
((#:test-dir _)
"tool/test")
((#:test-exclude excludes)
`(list "**/TestParseErrors.java"
"**/TestTopologicalSort.java"
,@excludes))
((#:phases phases)
`(modify-phases ,phases
(delete 'generate-unicode)
(replace 'check
(lambda _
(invoke "ant" "check")
#t))
(add-before 'configure 'chmod
(lambda _
(chmod "build.xml" #o644)
#t))
(delete 'remove-graphemes)
(delete 'remove-unrelated-languages)
(delete 'generate-test-parsers)))))
(inputs
(alist-replace
"java-antlr4-runtime" (list java-antlr4-runtime-4.1)
(package-inputs antlr4)))))
(define-public java-commons-cli-1.2
;; This is a bootstrap dependency for Maven2.
(package