aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/java.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/java.scm')
-rw-r--r--gnu/packages/java.scm130
1 files changed, 71 insertions, 59 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 85f2bb975f..e86c904e71 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -840,16 +840,16 @@ IcedTea build harness.")
(license license:gpl2+))))
(define-public icedtea-8
- (let* ((version "3.3.0")
+ (let* ((version "3.4.0")
(drop (lambda (name hash)
(origin
(method url-fetch)
(uri (string-append
- "http://icedtea.classpath.org/download/drops/"
+ "http://icedtea.classpath.org/download/drops"
"/icedtea8/" version "/" name ".tar.xz"))
(sha256 (base32 hash))))))
(package (inherit icedtea-7)
- (version "3.3.0")
+ (version "3.4.0")
(source (origin
(method url-fetch)
(uri (string-append
@@ -857,7 +857,7 @@ IcedTea build harness.")
version ".tar.xz"))
(sha256
(base32
- "02vmxa6gc6gizcri1fy797qmmm9y77vgi7gy9pwkk4agcw4zyr5p"))
+ "16if055973y6yw7n5gczp8iksvc31cy4p5by9lkbniadqj4z665m"))
(modules '((guix build utils)))
(snippet
'(begin
@@ -929,31 +929,34 @@ IcedTea build harness.")
`(("jdk" ,icedtea-7 "jdk")
("openjdk-src"
,(drop "openjdk"
- "0889n19w6rvpzxgmmk9hlgzdh9ya95qkc2ajgpnzr3h69g15nz48"))
+ "0va5i3zr8y8ncv914rz914jda9d88gq0viww3smdqnln8n78rszi"))
+ ("aarch32-drop"
+ ,(drop "aarch32"
+ "0cway5a5hcfyh4pzl9zz5xr7lil4gsliy6r5iqbaasd2d9alvqiq"))
("corba-drop"
,(drop "corba"
- "0qcb72hhlsjgp6h9wd048qgyc88b7lfnxyc51xfyav0nhpfjnj8r"))
+ "1l9zr97a3kq00bj4i8wcdsjlz3xlfldxd8zhkcxikinwd5n0n8a7"))
("jaxp-drop"
,(drop "jaxp"
- "1vyc7dw10x5k45jmi348y8min6sg651ns12zzn30fjzhpfi36nds"))
+ "0lqxrsr3xlpwm2na6f2rpl7znrz34dkb9dg3zjmympyjy4kqljn7"))
("jaxws-drop"
,(drop "jaxws"
- "1dki6p39z1ms94cjvj5hd9q75q75g244c0xib82pma3q74jg6hx4"))
+ "1b3chckk10dzrpa7cswmcf1jvryaiwkj8lihfqjr5j7l668jwr4h"))
("jdk-drop"
,(drop "jdk"
- "17czby3nylcglp7l3d90a4pz1izc1sslifv8hrmynm9hn4m9d3k8"))
+ "15lq0k2jv2x26x6vqkbljdcxk35i3b60pcsw3j1sdfmlk1xy6wgc"))
("langtools-drop"
,(drop "langtools"
- "1h4azc21k58g9gn2y686wrvn9ahgac0ii7jhrrrmb5c1kjs0y2qv"))
+ "17xkb8ahkg04ri0bp5wblcp1a2lp8j7c83ic5zdbggvgm339k5s8"))
("hotspot-drop"
,(drop "hotspot"
- "12bfgwhrjfhgj6a2dsysdwhirg0jx88pi44y7s8a1bdan1mp03r8"))
+ "0xpx8ykaq0ki6r0dl3dzca2xgp1p82z8mvsxcs2931ib667ncgcp"))
("nashorn-drop"
,(drop "nashorn"
- "0bg9r16jffc64fhyczn4jpx7bkfw7w62prw65mh66vshqk4lbh0f"))
+ "1bnn4731lhlvg8axy4mjxgvh646yl22hp52wipx8cfca4vkn2f1z"))
("shenandoah-drop"
,(drop "shenandoah"
- "0abjlsvz669i06mlks28wnh11mm55y5613990pn5j7hfbw8a34q5"))
+ "0fpxl8zlii1hpm777r875ys2cr5ih3gb6p1nm9jfa6krjrccrxv1"))
,@(fold alist-delete (package-native-inputs icedtea-7)
'("gcj" "openjdk-src" "corba-drop" "jaxp-drop" "jaxws-drop"
"jdk-drop" "langtools-drop" "hotspot-drop")))))))
@@ -3149,9 +3152,9 @@ C++, or Python actions. ANTLR provides excellent support for tree construction,
tree walking, and translation.")
(license license:public-domain)))
-(define-public stringtemplate3
+(define-public java-stringtemplate-3
(package
- (name "stringtemplate3")
+ (name "java-stringtemplate")
(version "3.2.1")
(source (origin
(method url-fetch)
@@ -3163,21 +3166,30 @@ tree walking, and translation.")
"086yj68np1vqhkj7483diz3km6s6y4gmwqswa7524a0ca6vxn2is"))))
(build-system ant-build-system)
(arguments
- `(#:jar-name "stringtemplate-3.2.1.jar"
- #:tests? #f
+ `(#:jar-name (string-append ,name "-" ,version ".jar")
+ #:test-dir "test"
+ #:modules ((guix build ant-build-system)
+ (guix build utils)
+ (srfi srfi-1))
#:phases
(modify-phases %standard-phases
+ (add-before 'check 'fix-tests
+ (lambda _
+ (substitute* "build.xml"
+ (("\\$\\{test.home\\}/java")
+ "${test.home}/org"))
+ #t))
(add-before 'build 'generate-grammar
(lambda _
- (let ((dir "src/org/antlr/stringtemplate/language/"))
- (for-each (lambda (file)
- (display file)
- (newline)
- (system* "antlr" "-o" dir (string-append dir file)))
- '("template.g" "angle.bracket.template.g" "action.g"
- "eval.g" "group.g" "interface.g"))))))))
+ (with-directory-excursion "src/org/antlr/stringtemplate/language/"
+ (every (lambda (file)
+ (format #t "~a\n" file)
+ (zero? (system* "antlr" file)))
+ '("template.g" "angle.bracket.template.g" "action.g"
+ "eval.g" "group.g" "interface.g"))))))))
(native-inputs
- `(("antlr" ,antlr2)))
+ `(("antlr" ,antlr2)
+ ("java-junit" ,java-junit)))
(home-page "http://www.stringtemplate.org")
(synopsis "Template engine to generate formatted text output")
(description "StringTemplate is a java template engine (with ports for C#,
@@ -3201,9 +3213,9 @@ StringTemplate also powers ANTLR.")
;; only grammar files with the antlr2 syntax.
;; So we build antlr3.1 -> antlr3.3 -> ST4.0.6 -> antlr3-bootstrap -> ST4 -> antlr3.
-(define-public stringtemplate4
- (package
- (name "stringtemplate4")
+(define-public java-stringtemplate
+ (package (inherit java-stringtemplate-3)
+ (name "java-stringtemplate")
(version "4.0.8")
(source (origin
(method url-fetch)
@@ -3215,36 +3227,36 @@ StringTemplate also powers ANTLR.")
"1pri8hqa95rfdkjy55icl5q1m09zwp5k67ib14abas39s4v3w087"))))
(build-system ant-build-system)
(arguments
- `(#:tests? #f
- #:jar-name (string-append ,name "-" ,version ".jar")
+ `(#:jar-name (string-append ,name "-" ,version ".jar")
+ #:tests? #f ; FIXME: tests fail for unknown reasons
+ #:test-dir "test"
+ #:modules ((guix build ant-build-system)
+ (guix build utils)
+ (srfi srfi-1))
#:phases
(modify-phases %standard-phases
+ (add-before 'check 'fix-test-target
+ (lambda _
+ (substitute* "build.xml"
+ (("\\$\\{test.home\\}/java") "${test.home}/")
+ (("\\*Test.java") "Test*.java"))
+ #t))
(add-before 'build 'generate-grammar
- (lambda* (#:key inputs #:allow-other-keys)
- (chdir "src/org/stringtemplate/v4/compiler/")
- (for-each (lambda (file)
- (display file)
- (newline)
- (system* "antlr3" file))
- '("STParser.g" "Group.g" "CodeGenerator.g"))
- (chdir "../../../../.."))))))
+ (lambda _
+ (with-directory-excursion "src/org/stringtemplate/v4/compiler/"
+ (every (lambda (file)
+ (format #t "~a\n" file)
+ (zero? (system* "antlr3" file)))
+ '("STParser.g" "Group.g" "CodeGenerator.g"))))))))
(inputs
`(("antlr3" ,antlr3-bootstrap)
("antlr2" ,antlr2)
- ("stringtemplate" ,stringtemplate3)))
- (home-page "http://www.stringtemplate.org")
- (synopsis "Template engine to generate formatted text output")
- (description "StringTemplate is a java template engine (with ports for C#,
-Objective-C, JavaScript, Scala) for generating source code, web pages, emails,
-or any other formatted text output. StringTemplate is particularly good at
-code generators, multiple site skins, and internationalization / localization.
-StringTemplate also powers ANTLR.")
- (license license:bsd-3)))
+ ("java-stringtemplate" ,java-stringtemplate-3)
+ ("java-junit" ,java-junit)))))
-(define stringtemplate4-4.0.6
- (package
- (inherit stringtemplate4)
- (name "stringtemplate4")
+(define java-stringtemplate-4.0.6
+ (package (inherit java-stringtemplate)
+ (name "java-stringtemplate")
(version "4.0.6")
(source (origin
(method url-fetch)
@@ -3257,7 +3269,7 @@ StringTemplate also powers ANTLR.")
(inputs
`(("antlr3" ,antlr3-3.3)
("antlr2" ,antlr2)
- ("stringtemplate" ,stringtemplate3)))))
+ ("java-stringtemplate" ,java-stringtemplate-3)))))
(define-public antlr3
(package
@@ -3344,12 +3356,12 @@ import org.antlr.grammar.v3.ANTLRTreePrinter;"))
("antlr3" ,antlr3-bootstrap)))
(inputs
`(("junit" ,java-junit)
- ("stringtemplate" ,stringtemplate3)
- ("stringtemplate4" ,stringtemplate4)))
+ ("stringtemplate" ,java-stringtemplate-3)
+ ("stringtemplate4" ,java-stringtemplate)))
(propagated-inputs
- `(("stringtemplate" ,stringtemplate3)
+ `(("stringtemplate" ,java-stringtemplate-3)
("antlr" ,antlr2)
- ("stringtemplate4" ,stringtemplate4-4.0.6)))
+ ("stringtemplate4" ,java-stringtemplate-4.0.6)))
(home-page "http://www.antlr3.org")
(synopsis "Framework for constructing recognizers, compilers, and translators")
(description "ANTLR, ANother Tool for Language Recognition, (formerly PCCTS)
@@ -3400,7 +3412,7 @@ tree walking, and translation.")
(string-append "#!" (which "sh") "\n"
"java -cp " jar "/antlr3-3.3.jar:"
(string-concatenate
- (find-files (assoc-ref inputs "stringtemplate")
+ (find-files (assoc-ref inputs "java-stringtemplate")
".*\\.jar"))
":"
(string-concatenate
@@ -3450,7 +3462,7 @@ import org.antlr.grammar.v2.ANTLRTreePrinter;"))))
(inputs
`(("junit" ,java-junit)))
(propagated-inputs
- `(("stringtemplate" ,stringtemplate3)
+ `(("java-stringtemplate" ,java-stringtemplate-3)
("antlr" ,antlr2)
("antlr3" ,antlr3-3.1)))))
@@ -3522,7 +3534,7 @@ import org.antlr.grammar.v2.ANTLRTreePrinter;"))))
(inputs
`(("junit" ,java-junit)))
(propagated-inputs
- `(("stringtemplate" ,stringtemplate3)))))
+ `(("stringtemplate" ,java-stringtemplate-3)))))
(define-public java-asm
(package