Subject: [PATCH 38/55] gnu: Add perl-text-reform.

From: Antero Mejr <[email-masked]>
Date: Sun, 4 Jun 2023 17:42:32 +0000

* gnu/packages/perl.scm (perl-text-reform): New variable.
---
 gnu/packages/perl.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index ce6a506fb2..25887f3a71 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -11417,6 +11417,31 @@ (define-public perl-text-recordparser
 delimited.")
     (license license:gpl2)))
 
+(define-public perl-text-reform
+  (package
+    (name "perl-text-reform")
+    (version "1.20")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "mirror://cpan/authors/id/C/CH/CHORNY/Text-Reform-" version
+                    ".tar.gz"))
+              (sha256
+               (base32
+                "0qdfnhfn8frnkbpkkw64fhnnxsbb6mmb6dr30c0p1jdaq7c2syd8"))))
+    (build-system perl-build-system)
+    (native-inputs (list perl-module-build))
+    (home-page "https://metacpan.org/release/Text-Reform")
+    (synopsis "Manual text wrapping and reformatting")
+    (description
+     "The @code{form()} subroutine may be exported from the module.  It takes
+a series of format (or \"picture\") strings followed by replacement values,
+interpolates those values into each picture string, and returns the result.
+The effect is similar to the inbuilt perl format mechanism, although the
+field specification syntax is simpler and some of the formatting behaviour is
+more sophisticated.")
+    (license license:perl-license)))
+
 (define-public perl-text-roman
   (package
     (name "perl-text-roman")
-- 
2.39.2