From 0b3f5533d2c97c333b201da307f31cca9deb6a1a Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Mon, 13 Jun 2022 06:54:25 +0300
Subject: [PATCH] gnu: Add java-commons-text
* gnu/packages/java.scm (java-commons-text): New variable.
* gnu/packages/maven-parent-pom.scm (apache-commons-parent-pom-51): New
variable, required for 'java-commons-text'.
---
gnu/packages/java.scm | 33 +++++++++++++++++++++++++++++++
gnu/packages/maven-parent-pom.scm | 5 +++++
2 files changed, 38 insertions(+)
@@ -7893,6 +7893,39 @@ Commons CLI supports different types of options:
@item long options with single hyphen (ie. ant -projecthelp)
@end itemize
+This is a part of the Apache Commons Project.")
+ (license license:asl2.0)))
+
+(define-public java-commons-text
+ (package
+ (name "java-commons-text")
+ (version "1.9")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "mirror://apache/commons/text/source/"
+ "commons-text-" version "-src.tar.gz"))
+ (sha256
+ (base32
+ "1k99ib2dxlqxb5y94kpzf4ix8xgxz1j3n9kq3ddssqqcccsp5ik2"))))
+ (build-system ant-build-system)
+ (arguments
+ (list #:jar-name "java-commons-text.jar"
+ #:source-dir "src/main/java"
+ #:test-dir "src/test"
+ #:tests? #f ; Tests require JUnit5.
+ #:phases #~(modify-phases %standard-phases
+ (replace 'install
+ (install-from-pom "pom.xml")))))
+ (inputs
+ (list java-commons-io))
+ (propagated-inputs
+ (list java-commons-lang3
+ apache-commons-parent-pom-51))
+ (home-page "https://commons.apache.org/text/")
+ (synopsis "Library focused on algorithms working on strings")
+ (description "Apache Commons Text is a library focused on algorithms
+working on strings.
+
This is a part of the Apache Commons Project.")
(license license:asl2.0)))
@@ -143,6 +143,11 @@
"50" "0ki8px35dan51ashblpw6rdl27c2fq62slazhslhq3lr4fwlpvxs"
apache-parent-pom-21))
+(define-public apache-commons-parent-pom-51
+ (make-apache-commons-parent-pom
+ "51" "05najrpys26jymla2p5jdz4mf4fjp525h6mnr0jfx55lp03xi939"
+ apache-parent-pom-21))
+
(define-public apache-commons-parent-pom-52
(make-apache-commons-parent-pom
"52" "0fb6id9cs9944fjlirjc07bf234bwi96i642px09m9nrfj338n5d"
--
2.25.1