Subject: [bug#62178] [PATCH 4/5] gnu: Add rapidxml.

From: Adam Faiz <[email-masked]>
Date: Tue, 14 Mar 2023 15:11:50 +0800

From f103aa078174b6b2d1ae733546a73eeb1ed853c3 Mon Sep 17 00:00:00 2001
Message-Id: <f[email-masked]>
In-Reply-To: <[email-masked]>
References: <[email-masked]>
From: AwesomeAdam54321 <[email-masked]>
Date: Tue, 14 Mar 2023 14:07:08 +0800
Subject: [PATCH 4/5] gnu: Add rapidxml.

* gnu/packages/xml.scm (rapidxml): New variable.
---
  gnu/packages/xml.scm | 30 ++++++++++++++++++++++++++++++
  1 file changed, 30 insertions(+)

diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 0b26a63e85..c8dbd27772 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -76,6 +76,7 @@ (define-module (gnu packages xml)
    #:use-module (guix download)
    #:use-module (guix git-download)
    #:use-module (guix build-system cmake)
+  #:use-module (guix build-system copy)
    #:use-module (guix build-system gnu)
    #:use-module (guix build-system meson)
    #:use-module (guix build-system perl)
@@ -1983,3 +1984,32 @@ (define-public python-xmltodict
      (description "This package provides a Python library to convert XML to
  @code{OrderedDict}.")
      (license license:expat)))
+
+(define-public rapidxml
+  (package
+    (name "rapidxml")
+    (version "1.13")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://sourceforge.net/projects/"
+                    "rapidxml/files/rapidxml/rapidxml%20"
+                    version "/rapidxml-" version ".zip"))
+              (sha256
+               (base32
+                "0w9mbdgshr6sh6a5jr10lkdycjyvapbj7wxwz8hbp0a96y3biw63"))))
+    (build-system copy-build-system)
+    (native-inputs
+     (list unzip))
+    (arguments
+     (list
+      #:install-plan
+      #~'(("./" "include/rapidxml" #:include-regexp ("\\.hpp$")))))
+    (synopsis "XML Parser")
+    (description
+     "RapidXml is an attempt to create the fastest XML parser possible,
+while retaining useability, portability and reasonable W3C compatibility.
+  It is an in-situ parser written in modern C++, with parsing speed approaching
+that of strlen function executed on the same data.")
+    (home-page "https://rapidxml.sourceforge.net/")
+    (license license:boost1.0)))
-- 
2.39.2