[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/22: gnu: Add java-commons-lang.
From: |
Ricardo Wurmus |
Subject: |
16/22: gnu: Add java-commons-lang. |
Date: |
Wed, 10 May 2017 11:59:40 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit d631b5f358080d740f3986feb80790a411497403
Author: Hartmut Goebel <address@hidden>
Date: Fri Sep 9 16:51:10 2016 +0200
gnu: Add java-commons-lang.
* gnu/packages/java.scm (java-commons-lang): New variable.
Co-authored-by: Ricardo Wurmus <address@hidden>
---
gnu/packages/java.scm | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 035bd1a..4f9a135 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -1657,3 +1657,58 @@ are many features, including:
(description "Commons-IO contains utility classes, stream implementations,
file filters and endian classes.")
(license license:asl2.0)))
+
+(define-public java-commons-lang
+ (package
+ (name "java-commons-lang")
+ (version "2.6")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "mirror://apache/commons/lang/source/"
+ "commons-lang-" version "-src.tar.gz"))
+ (sha256
+ (base32 "1mxwagqadzx1b2al7i0z1v0r235aj2njdyijf02szq0vhmqrfiq5"))))
+ (build-system ant-build-system)
+ (outputs '("out" "doc"))
+ (arguments
+ `(#:test-target "test"
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'build 'build-javadoc ant-build-javadoc)
+ (add-before 'check 'disable-failing-test
+ (lambda _
+ ;; Disable a failing test
+ (substitute* "src/test/java/org/apache/commons/lang/\
+time/FastDateFormatTest.java"
+ (("public void testFormat\\(\\)")
+ "public void disabled_testFormat()"))
+ #t))
+ (replace 'install (install-jars "target"))
+ (add-after 'install 'install-doc (install-javadoc
"target/apidocs")))))
+ (native-inputs
+ `(("java-junit" ,java-junit)))
+ (home-page "http://commons.apache.org/lang/")
+ (synopsis "Extension of the java.lang package")
+ (description "The Commons Lang components contains a set of Java classes
+that provide helper methods for standard Java classes, especially those found
+in the @code{java.lang} package in the Sun JDK. The following classes are
+included:
+
address@hidden
address@hidden StringUtils - Helper for @code{java.lang.String}.
address@hidden CharSetUtils - Methods for dealing with @code{CharSets}, which
are sets
+ of characters such as @code{[a-z]} and @code{[abcdez]}.
address@hidden RandomStringUtils - Helper for creating randomised strings.
address@hidden NumberUtils - Helper for @code{java.lang.Number} and its
subclasses.
address@hidden NumberRange - A range of numbers with an upper and lower bound.
address@hidden ObjectUtils - Helper for @code{java.lang.Object}.
address@hidden SerializationUtils - Helper for serializing objects.
address@hidden SystemUtils - Utility class defining the Java system properties.
address@hidden NestedException package - A sub-package for the creation of
nested
+ exceptions.
address@hidden Enum package - A sub-package for the creation of enumerated
types.
address@hidden Builder package - A sub-package for the creation of
@code{equals},
+ @code{hashCode}, @code{compareTo} and @code{toString} methods.
address@hidden itemize\n")
+ (license license:asl2.0)))
- 12/22: gnu: Add java-commons-math3., (continued)
- 12/22: gnu: Add java-commons-math3., Ricardo Wurmus, 2017/05/10
- 20/22: gnu: Add java-commons-daemon., Ricardo Wurmus, 2017/05/10
- 08/22: gnu: Add java-objenesis., Ricardo Wurmus, 2017/05/10
- 06/22: gnu: Add java-asm., Ricardo Wurmus, 2017/05/10
- 21/22: gnu: Add java-jmock-1., Ricardo Wurmus, 2017/05/10
- 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 <=
- 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, 2017/05/10
- 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