[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
"-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)))
- 04/22: gnu: Add java-plexus-utils., (continued)
- 04/22: gnu: Add java-plexus-utils., Ricardo Wurmus, 2017/05/10
- 05/22: gnu: Add java-plexus-interpolation., Ricardo Wurmus, 2017/05/10
- 02/22: ant-build-system: Add default "check" target., Ricardo Wurmus, 2017/05/10
- 13/22: gnu: Add java-jmh., Ricardo Wurmus, 2017/05/10
- 15/22: gnu: Add java-commons-io., Ricardo Wurmus, 2017/05/10
- 16/22: gnu: Add java-commons-lang., Ricardo Wurmus, 2017/05/10
- 19/22: gnu: Add java-commons-codec., Ricardo Wurmus, 2017/05/10
- 09/22: gnu: Add java-easymock., Ricardo Wurmus, 2017/05/10
- 11/22: gnu: java-hamcrest-core: Install all jars without version suffix., Ricardo Wurmus, 2017/05/10
- 18/22: gnu: Add java-commons-cli., Ricardo Wurmus, 2017/05/10
- 14/22: gnu: Add java-commons-collections4.,
Ricardo Wurmus <=
- 03/22: guix: Add java-utils., Ricardo Wurmus, 2017/05/10
- 22/22: gnu: java-hamcrest-core: Declare test target., Ricardo Wurmus, 2017/05/10
- 17/22: gnu: Add java-commons-lang3., Ricardo Wurmus, 2017/05/10