GNU bug report logs - #55979
[PATCH] gnu: Add java-commons-text

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: "Artyom V. Poptsov" <poptsov.artyom@HIDDEN>; Keywords: patch; dated Tue, 14 Jun 2022 18:45:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Jun 2022 18:44:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 14 14:44:31 2022
Received: from localhost ([127.0.0.1]:35746 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1o1BWg-00052t-RA
	for submit <at> debbugs.gnu.org; Tue, 14 Jun 2022 14:44:31 -0400
Received: from lists.gnu.org ([209.51.188.17]:40412)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <poptsov.artyom@HIDDEN>) id 1o1BWf-00052m-3D
 for submit <at> debbugs.gnu.org; Tue, 14 Jun 2022 14:44:30 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:44746)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <poptsov.artyom@HIDDEN>)
 id 1o1BWd-0005id-2u
 for guix-patches@HIDDEN; Tue, 14 Jun 2022 14:44:27 -0400
Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]:35685)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <poptsov.artyom@HIDDEN>)
 id 1o1BWa-000357-Tz
 for guix-patches@HIDDEN; Tue, 14 Jun 2022 14:44:26 -0400
Received: by mail-lj1-x229.google.com with SMTP id j6so244081lji.2
 for <guix-patches@HIDDEN>; Tue, 14 Jun 2022 11:44:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=from:to:subject:date:message-id:user-agent:mime-version;
 bh=zTqK+SKEXzCSb40GD2T7wpqYZ5Y725g9HTMcMNE/XOw=;
 b=oV1+LP3TA71gBRBXQg8Juh42n0M2gfTiFaeMH8D6cSJ1MXpB+1nAmYx3xwKg73Ubzd
 9pKBEyVoG9UUXAZQm8rcCca7GacYlf/eazG9LCN9n5ApDdaKoL7Udrq9ddzJTxQYOGvh
 qu/6jrFcalVLnhzDegA4bYYLVgtoIWF1Sg798tbfBPbOAl64X9Hoi386cRNtVMOPUHRf
 JISRKLWbQ6p26Q/JUt0Ra0mB8KdiTKegBNHmkHCecQBE9+dKRVYTJBkVaz6Pp0MY3CD3
 7CX/sUy8xt+jkBgBHbqq5g6WdXVSwIFJomvtzwkDBNRnqfJmwDQl4RjvzN7Su3c4O+TU
 wbug==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:subject:date:message-id:user-agent
 :mime-version;
 bh=zTqK+SKEXzCSb40GD2T7wpqYZ5Y725g9HTMcMNE/XOw=;
 b=YYPUL3gxIG9X1OmX/4KKcMbyml6QjiIJMHXgDIzfwS0Dkbo7XKBYqTci9K9WteGaxU
 FxEsawHh556FWmyxWYOqNx+30muZzpmjU/uHK+PuYDa9l90OmjAXPUvut/8Wz8N36xwm
 3peym07RhOCxcowPpBdErzqhGhdwvzB4SiSHL1McI4tSsucPOSyvdZZ20PoM4qDLpzXl
 LCOSNJ2hXF8OhfmrdZT/ai64H0xC0yjGJj0zATG3zWKbqdT52d0upmm1+llD4YJyi0Hm
 gT+WPtswOo/mzWAF5mqwIX4whkKymbALFnmoh6DquCZ9dAi5PSMMeJ91DYCHjAPdrMsB
 sprA==
X-Gm-Message-State: AJIora9NYJ9JWfrYyikSLQ8maEptGvbYgKGLtKM+d6plwfauT0+OogTa
 XP1Dn36lipyYDtwAqofloWN5klcfs2M=
X-Google-Smtp-Source: AGRyM1vrihmF19HB033u1R6K5Bs5g8FjAwWTSBIPnkDRhSZJ5k7nOSfqMpUa3D/UfBrIyxEJgvVSZA==
X-Received: by 2002:a2e:a801:0:b0:24a:ff0b:ae7a with SMTP id
 l1-20020a2ea801000000b0024aff0bae7amr3190145ljq.287.1655232261970; 
 Tue, 14 Jun 2022 11:44:21 -0700 (PDT)
Received: from elephant ([5.164.222.47]) by smtp.gmail.com with ESMTPSA id
 u20-20020ac25194000000b00478b95dabb3sm1484864lfi.117.2022.06.14.11.44.20
 for <guix-patches@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 14 Jun 2022 11:44:21 -0700 (PDT)
From: "Artyom V. Poptsov" <poptsov.artyom@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: Add java-commons-text
Date: Tue, 14 Jun 2022 21:44:16 +0300
Message-ID: <87edzrw0e7.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="==-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
Received-SPF: pass client-ip=2a00:1450:4864:20::229;
 envelope-from=poptsov.artyom@HIDDEN; helo=mail-lj1-x229.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

--==-=-=
Content-Type: multipart/mixed; boundary="=-=-="

--=-=-=
Content-Type: text/plain

Hello,

here's the patch that adds 'java-commons-text'. [1]

Unfortunately I had to disable tests as they require JUnit5 (which is
missing from GNU Guix at the moment.)

Also many thanks to Julien Lepiller who helped me to update
'java-commons-lang3' to 3.12.0, which in turn was required to package
'java-commons-text'.

- Artyom

References:
1. https://commons.apache.org/proper/commons-text/


--=-=-=
Content-Type: text/x-diff
Content-Disposition: attachment;
 filename=0001-gnu-Add-java-commons-text.patch
Content-Transfer-Encoding: quoted-printable

From=20a3c835fb370930a6bc99ae872bc7f4c541587189 Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@HIDDEN>
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.
=2D--
 gnu/packages/java.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index d2fbf840a0..1750dc662b 100644
=2D-- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -7893,6 +7893,44 @@ Commons CLI supports different types of options:
 @item long options with single hyphen (ie. ant -projecthelp)
 @end itemize
=20
+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"
+           ;; XXX: Tests require JUnit5, namely 'org.junit.jupiter.api' mo=
dule
+           ;; from JUnit5.
+           #:tests?
+           #f))
+    (inputs (list java-commons-lang3 java-commons-io))
+    ;; XXX: These are dependencies required for running the tests (which a=
re
+    ;; disable until JUnit5 is available.)
+    ;; (native-inputs
+    ;; (list java-assertj
+    ;; java-junit))
+    (propagated-inputs (list apache-commons-parent-pom-52))
+    (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)))
=20
=2D-=20
2.25.1


--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


=2D-=20
Artyom "avp" Poptsov <poptsov.artyom@HIDDEN>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE  B57C E9C5 A2D9 0898 A02F

--=-=-=--

--==-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmKo1wAACgkQ6cWi2QiY
oC+3Ogf/XxJCo23x5FtcMOA0ilHEemwuTAiDpYgeWejdjofjx5RnjCA6XzB+62or
USXwFrb3YDLD51gOu+Cp2+K2bRVZJaOXF9VpJTSGhZFBPvsH3Pz7rkIRKnfxpqsc
Gb3gOlfg4y4Uac9CSft4nYnYbXPMi6QyAAMg8GnQIlZcF2BU4ZkOtHMdBjuoE15Q
NRpmG+Heyc0AReyxz5PTd/T26ciRojIzIpWnC/76h/ZjdFpI9NtiE70dpa9A4OSY
f1SrZXLuH1M1oybXuxY9C5uWqrL5nPZW57KkF/UwChZ6c0ow5sPvwjnLKktLbcYT
2h2GFJdhPr4yz5ryB5XQPkqn1D8iAw==
=xvYy
-----END PGP SIGNATURE-----
--==-=-=--




Acknowledgement sent to "Artyom V. Poptsov" <poptsov.artyom@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#55979; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 14 Jun 2022 19:00:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.