guix-patches
[Top][All Lists]
Advanced

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

bug#26803: [PATCH 14/36] gnu: Add java-commons-collections4.


From: Ricardo Wurmus
Subject: bug#26803: [PATCH 14/36] gnu: Add java-commons-collections4.
Date: Sat, 6 May 2017 17:35:55 +0200

* 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 36d80ff1d..f595af58c 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -1564,3 +1564,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 
"-src.tar.gz"))
+              (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 "http://commons.apache.org/collections/";)
+    (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
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 
the
+  collection
address@hidden Composite collections that make multiple collections look like 
one
address@hidden Ordered maps and sets that retain the order elements are added 
in,
+  including an LRU based map
address@hidden Reference map that allows keys and/or values to be garbage 
collected
+  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 
collections
+  such as union, intersection, and closure.
address@hidden itemize\n")
+    (license license:asl2.0)))
-- 
2.12.2







reply via email to

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