From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7Rg3-0005Us-5N for guix-patches@gnu.org; Sun, 07 May 2017 15:17:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7Rfy-0004cQ-3n for guix-patches@gnu.org; Sun, 07 May 2017 15:17:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:34304) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7Rfx-0004cM-Ve for guix-patches@gnu.org; Sun, 07 May 2017 15:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d7Rfx-0000bS-Qq for guix-patches@gnu.org; Sun, 07 May 2017 15:17:01 -0400 Subject: bug#26803: [PATCH 14/36] gnu: Add java-commons-collections4. Resent-Message-ID: References: <20170506153617.3074-1-rekado@elephly.net> <20170506153617.3074-14-rekado@elephly.net> From: Roel Janssen In-reply-to: <20170506153617.3074-14-rekado@elephly.net> Date: Sun, 07 May 2017 21:16:29 +0200 Message-ID: <87zieowk8i.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ricardo Wurmus Cc: 26803@debbugs.gnu.org Ricardo Wurmus writes: > * 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 Ha! Cool. > + (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: > + > +@itemize > +@item @code{Bag} interface for collections that have a number of copies of > + each object > +@item @code{BidiMap} interface for maps that can be looked up from value to > + key as well and key to value > +@item @code{MapIterator} interface to provide simple and quick iteration over > + maps > +@item Transforming decorators that alter each object as it is added to the > + collection > +@item Composite collections that make multiple collections look like one > +@item Ordered maps and sets that retain the order elements are added in, > + including an LRU based map > +@item Reference map that allows keys and/or values to be garbage collected > + under close control > +@item Many comparator implementations > +@item Many iterator implementations > +@item Adapter classes from array and enumerations to collections > +@item Utilities to test or create typical set-theory properties of collections > + such as union, intersection, and closure. > +@end itemize\n") > + (license license:asl2.0))) Very elaborate description. Nice! LGTM. Kind regards, Roel Janssen