From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hartmut Goebel Subject: [PATCH 11/12] gnu: Add java-commons-lang3. Date: Fri, 9 Sep 2016 16:51:11 +0200 Message-ID: <1473432672-21007-12-git-send-email-h.goebel@crazy-compilers.com> References: <1473432672-21007-1-git-send-email-h.goebel@crazy-compilers.com> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biN9e-0007dP-93 for guix-devel@gnu.org; Fri, 09 Sep 2016 10:51:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1biN9Z-000396-5l for guix-devel@gnu.org; Fri, 09 Sep 2016 10:51:45 -0400 Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:41944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biN9Y-00038m-Qd for guix-devel@gnu.org; Fri, 09 Sep 2016 10:51:41 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3sW0XD1qxjz3hklN for ; Fri, 9 Sep 2016 16:51:40 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3sW0XD1kwmzvlQ6 for ; Fri, 9 Sep 2016 16:51:40 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id 5-Ew0fbrsvQM for ; Fri, 9 Sep 2016 16:51:38 +0200 (CEST) Received: from hermia.goebel-consult.de (ppp-188-174-128-63.dynamic.mnet-online.de [188.174.128.63]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS for ; Fri, 9 Sep 2016 16:51:38 +0200 (CEST) Received: from thisbe.goebel-consult.de.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id AB31660F3F for ; Fri, 9 Sep 2016 16:51:17 +0200 (CEST) In-Reply-To: <1473432672-21007-1-git-send-email-h.goebel@crazy-compilers.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/java.scm (java-commons-lang3): New variable. --- gnu/packages/java.scm | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 5a90d05..b7971a3 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -1518,3 +1518,55 @@ in the java.lang package in the Sun JDK. The following classes are included: * Builder package - A sub-package for the creation of equals, hashCode, compareTo and toString methods.") (license license:asl2.0))) + +(define-public java-commons-lang3 + (package + (name "java-commons-lang3") + (version "3.4") + (source (origin + (method url-fetch) + (uri (apache-commons-url "lang" version "commons-lang3")) + (sha256 + (base32 "0xpshb9spjhplq5a7mr0y1bgfw8190ik4xj8f569xidfcki1d6kg")))) + (build-system ant-build-system) + (outputs '("out" "doc")) + (arguments + `(#:tests? #f + #:test-target "test" ; requirements are missing, see below + #:phases + (modify-phases %standard-phases + (add-after 'build 'build-javadoc ant-build-javadoc) + (replace 'install (install-jars "target")) + (add-after 'install 'install-doc (install-javadoc "target/apidocs"))))) + ;(native-inputs + ; `(("java-junit" ,java-junit))) + ; todo: tests. Requier hamcrest, commons-io, easymock. jar paths need to + ; be written into a properties files. See buld.xml in the source. + (home-page "http://commons.apache.org/lang/") + (synopsis "Extension of the java.lang package (for Java 5+)") + (description "The Commons Lang components contains a set of Java classes +that provide helper methods for standard Java classes, especially those found +in the java.lang package in the JDK 5+. The following classes are included: + + * StringUtils - Helper for java.lang.String. + * CharSetUtils - Methods for dealing with CharSets, which are sets of + characters such as [a-z] and [abcdez]. + * RandomStringUtils - Helper for creating randomised Strings. + * NumberUtils - Helper for java.lang.Number and its subclasses. + * NumberRange - A range of numbers with an upper and lower bound. + * ObjectUtils - Helper for java.lang.Object. + * SerializationUtils - Helper for serializing Objects. + * SystemUtils - Utility class defining the Java system properties. + * NestedException package - A sub-package for the creation of nested + exceptions. + * Enum package - A sub-package for the creation of enumerated types. + * Builder package - A sub-package for the creation of equals, hashCode, + compareTo and toString methods. + +Commons Lang 3.x use a different package (org.apache.commons.lang3) than the +previous versions (Commonas Lang 1.x and 2.x, which use +org.apache.commons.lang), allowing it to be used at the same time as an +earlier version. + +Commons Lang 3.x is only compatible with JDK 1.5+ ") + (license license:asl2.0))) -- 2.7.4