[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/12: gnu: Add java-commons-jexl-2.
From: |
Ricardo Wurmus |
Subject: |
04/12: gnu: Add java-commons-jexl-2. |
Date: |
Mon, 27 Nov 2017 06:13:14 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit 9e325e8c05f39a020b620066172625d67c04a9e3
Author: Ricardo Wurmus <address@hidden>
Date: Sat Nov 18 23:58:18 2017 +0100
gnu: Add java-commons-jexl-2.
* gnu/packages/java.scm (java-commons-jexl-2): New variable.
---
gnu/packages/java.scm | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 870153a..10ed3b6 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6992,6 +6992,63 @@ In addition to the expression language, MVEL serves as a
templating language for
configuration and string construction.")
(license license:asl2.0)))
+(define-public java-commons-jexl-2
+ (package
+ (name "java-commons-jexl")
+ (version "2.1.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://apache/commons/jexl/source/"
+ "commons-jexl-" version "-src.tar.gz"))
+ (sha256
+ (base32
+ "1ai7632bwwaxglb0nbpblpr2jw5g20afrsaq372ipkphi3ncy1jz"))))
+ (build-system ant-build-system)
+ (arguments
+ `(#:jar-name "commons-jexl-2.jar"
+ #:jdk ,icedtea-8
+ #:source-dir "src/main/java"
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'disable-broken-tests
+ (lambda* (#:key inputs #:allow-other-keys)
+ (with-directory-excursion
"src/test/java/org/apache/commons/jexl2/"
+ (substitute* "ArithmeticTest.java"
+ (("asserter.assertExpression\\(\"3 / 0\"") "//")
+ (("asserter.assertExpression\\(\"imanull") "//"))
+ ;; This test fails with "ambiguous method invocation"
+ (delete-file "CacheTest.java")
+ ;; This test doesn't have access to the temp directory
+ (substitute* "ClassCreatorTest.java"
+ (("java.io.tmpdir") "user.dir"))
+ ;; This test fails in trying to detect whether it can run.
+ (substitute* "ClassCreator.java"
+ (("boolean canRun =.*") "boolean canRun = false;\n"))
+ ;; ...and these tests depend on it.
+ (delete-file "scripting/JexlScriptEngineOptionalTest.java")
+ (delete-file "scripting/JexlScriptEngineTest.java"))
+ #t))
+ (add-before 'build 'run-javacc
+ (lambda _
+ (with-directory-excursion
"src/main/java/org/apache/commons/jexl2/parser/"
+ (and (zero? (system* "java" "jjtree" "Parser.jjt"))
+ (zero? (system* "java" "javacc" "Parser.jj")))))))))
+ (inputs
+ `(("java-commons-logging-minimal" ,java-commons-logging-minimal)))
+ (native-inputs
+ `(("java-junit" ,java-junit)
+ ("java-hamcrest-core" ,java-hamcrest-core)
+ ("javacc" ,javacc-4)))
+ (home-page "https://commons.apache.org/proper/commons-jexl/")
+ (synopsis "Java Expression Language ")
+ (description "JEXL is a library intended to facilitate the implementation
+of dynamic and scripting features in applications and frameworks written in
+Java. JEXL implements an Expression Language based on some extensions to the
+JSTL Expression Language supporting most of the constructs seen in
+shell-script or ECMAScript. Its goal is to expose scripting features usable
+by technical operatives or consultants working with enterprise platforms.")
+ (license license:asl2.0)))
+
(define-public java-lz4
(package
(name "java-lz4")
- branch master updated (9cc51d1 -> 776d2fb), Ricardo Wurmus, 2017/11/27
- 02/12: gnu: Add javacc., Ricardo Wurmus, 2017/11/27
- 05/12: gnu: java-htsjdk: Update to 2.3.0., Ricardo Wurmus, 2017/11/27
- 10/12: gnu: Add ant-junit., Ricardo Wurmus, 2017/11/27
- 08/12: gnu: Add java-commons-bcel., Ricardo Wurmus, 2017/11/27
- 04/12: gnu: Add java-commons-jexl-2.,
Ricardo Wurmus <=
- 07/12: gnu: Add java-cofoja., Ricardo Wurmus, 2017/11/27
- 09/12: gnu: Add ant-apache-bcel., Ricardo Wurmus, 2017/11/27
- 01/12: gnu: Add java-snappy-1., Ricardo Wurmus, 2017/11/27
- 03/12: gnu: Add javacc-4., Ricardo Wurmus, 2017/11/27
- 12/12: gnu: Add java-jbzip2., Ricardo Wurmus, 2017/11/27
- 06/12: gnu: Add java-picard., Ricardo Wurmus, 2017/11/27
- 11/12: gnu: Add java-picard-1.113., Ricardo Wurmus, 2017/11/27