summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2017-11-18 23:57:47 +0100
committerRicardo Wurmus <rekado@elephly.net>2017-11-27 12:12:40 +0100
commit6688c41e16edb15cf949f911a529766835202dda (patch)
treeebd7208bb1192027328a47313a8bea4ddcf2cd9c
parentfc8d100b24dda625a2582ed7af7260dded770e8b (diff)
gnu: Add javacc-4.
* gnu/packages/java.scm (javacc-4): New variable.
-rw-r--r--gnu/packages/java.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 8683a86204..870153a608 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -1926,6 +1926,30 @@ as tree building (via a tool called JJTree included with JavaCC), actions,
debugging, etc.")
(license license:bsd-3)))
+(define-public javacc-4
+ (package (inherit javacc)
+ (version "4.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/javacc/javacc.git")
+ (commit "release_41")))
+ (file-name (string-append "javacc-" version "-checkout"))
+ (sha256
+ (base32
+ "07ysav7j8r1c6h8qxrgqk6lwdp74ly0ad1935lragxml0qqc3ka0"))))
+ ;; Tests fail with
+ ;; /tmp/guix-build-javacc-4.1.drv-0/source/test/javacodeLA/build.xml:60:
+ ;; JAVACODE failed
+ (arguments
+ `(#:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'delete-bundled-libs
+ (lambda _
+ (delete-file-recursively "lib") #t))
+ (replace 'install (install-jars "bin/lib")))))))
+
(define-public java-classpathx-servletapi
(package
(name "java-classpathx-servletapi")