[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

14/22: gnu: Add java-commons-collections4.

From: Ricardo Wurmus
Subject: 14/22: gnu: Add java-commons-collections4.
Date: Wed, 10 May 2017 11:59:40 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 56ebb4e90dc6827e295a556caa8661cf0fbad9c7
Author: Ricardo Wurmus <address@hidden>
Date:   Thu Mar 2 12:24:49 2017 +0100

    gnu: Add java-commons-collections4.
    * gnu/packages/java.scm (java-commons-collections4): New variable.
 gnu/packages/java.scm | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 6192959..c6fa134 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -1563,3 +1563,63 @@ nano/micro/milli/macro benchmarks written in Java and 
other languages
 targetting the JVM.")
     ;; GPLv2 only
     (license license:gpl2)))
+(define-public java-commons-collections4
+  (package
+    (name "java-commons-collections4")
+    (version "4.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://apache/commons/collections/source/"
+                                  "commons-collections4-" version 
+              (sha256
+               (base32
+                "1krfhvggympq4avk7gh6qafzf6b9ip6r1m4lmacikyx04039m0wl"))))
+    (build-system ant-build-system)
+    (arguments
+     `(#:test-target "test"
+       #:make-flags
+       (let ((hamcrest (assoc-ref %build-inputs "java-hamcrest-core"))
+             (junit    (assoc-ref %build-inputs "java-junit"))
+             (easymock (assoc-ref %build-inputs "java-easymock")))
+         (list (string-append "-Djunit.jar=" junit "/share/java/junit.jar")
+               (string-append "-Dhamcrest.jar=" hamcrest
+                              "/share/java/hamcrest-core.jar")
+               (string-append "-Deasymock.jar=" easymock
+                              "/share/java/easymock.jar")))
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'install
+           (install-jars "target")))))
+    (native-inputs
+     `(("java-junit" ,java-junit)
+       ("java-hamcrest-core" ,java-hamcrest-core)
+       ("java-easymock" ,java-easymock)))
+    (home-page "";)
+    (synopsis "Collections framework")
+    (description "The Java Collections Framework is the recognised standard
+for collection handling in Java.  Commons-Collections seek to build upon the
+JDK classes by providing new interfaces, implementations and utilities.  There
+are many features, including:
address@hidden @code{Bag} interface for collections that have a number of 
copies of
+  each object
address@hidden @code{BidiMap} interface for maps that can be looked up from 
value to
+  key as well and key to value
address@hidden @code{MapIterator} interface to provide simple and quick 
iteration over
+  maps
address@hidden Transforming decorators that alter each object as it is added to 
+  collection
address@hidden Composite collections that make multiple collections look like 
address@hidden Ordered maps and sets that retain the order elements are added 
+  including an LRU based map
address@hidden Reference map that allows keys and/or values to be garbage 
+  under close control
address@hidden Many comparator implementations
address@hidden Many iterator implementations
address@hidden Adapter classes from array and enumerations to collections
address@hidden Utilities to test or create typical set-theory properties of 
+  such as union, intersection, and closure.
address@hidden itemize\n")
+    (license license:asl2.0)))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]