Subject: [PATCH v2 20/37] gnu: Add perl-xml-semanticdiff.

From: Felix Lechner <[email-masked]>
Date: Tue, 16 Jan 2024 14:12:58 -0800

* gnu/packages/xml.scm (perl-xml-semanticdiff): New variable.

Change-Id: I1b008d18c8eacf15f2e6d668e337c0d6cf350b9a
---
 gnu/packages/xml.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index e8253b5960..1c7f4cb36e 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -602,6 +602,29 @@ (define-public perl-xml-parser-lite
 should be able to use it in the same way you use XML::Parser.")
     (license license:perl-license)))
 
+(define-public perl-xml-semanticdiff
+  (package
+    (name "perl-xml-semanticdiff")
+    (version "1.0007")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/P/PE/PERIGRIN/XML-SemanticDiff-" version
+             ".tar.gz"))
+       (sha256
+        (base32 "1xd00821y795fy2rag8aizb5wsbbzfxgmdf9qwpvdxn3pgpyzz85"))))
+    (build-system perl-build-system)
+    (native-inputs (list perl-module-build))
+    (propagated-inputs (list perl-xml-parser))
+    (home-page "https://metacpan.org/release/XML-SemanticDiff")
+    (synopsis "Perl extension for comparing XML documents.")
+    (description "XML::SematicDiff provides a way to compare the contents
+and structure of two XML documents.  By default, it returns a list of
+hashrefs where each hashref describes a single difference between the
+two docs.")
+    (license license:perl-license)))
+
 (define-public perl-xml-tokeparser
   (package
     (name "perl-xml-tokeparser")
-- 
2.41.0