unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: gemmaro <gemmaro.dev@gmail.com>
To: 72060@debbugs.gnu.org
Cc: gemmaro <gemmaro.dev@gmail.com>
Subject: [bug#72060] [PATCH v2] gnu: Add xml-namespace-xsd.
Date: Fri, 12 Jul 2024 21:50:07 +0900	[thread overview]
Message-ID: <0771c5bdac599f05154969c2ec23f95d546dbeb5.1720788607.git.gemmaro.dev@gmail.com> (raw)
In-Reply-To: <1283f8098d3a7ea7d81fbbdff5816bb678bd7320.1720703597.git.gemmaro.dev@gmail.com>

* gnu/packages/xml.scm (xml-namespace-xsd): New variable.

Change-Id: Iec2d68f1d9190ba9e1723ca10adf1de0dfd2d722
---
I forgot to add copy-build-system in the first revision.

 gnu/packages/xml.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index c6ddae50ae..71344dea0f 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -33,6 +33,7 @@
 ;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
 ;;; Copyright © 2021 David Larsson <david.larsson@selfhosted.xyz>
 ;;; Copyright © 2021 Matthew James Kraai <kraai@ftbfs.org>
+;;; Copyright © 2024 gemmaro <gemmaro.dev@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -76,6 +77,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)
@@ -1953,3 +1955,40 @@ (define-public python-xmltodict
     (description "This package provides a Python library to convert XML to
 @code{OrderedDict}.")
     (license license:expat)))
+
+(define-public xml-namespace-xsd
+  (package
+    (name "xml-namespace-xsd")
+    (version "2009-01")
+    (source
+     (origin
+       (method url-fetch)
+       (uri "https://www.w3.org/2009/01/xml.xsd")
+       (sha256
+        (base32 "0agqmxbhk2q9xa38m02z7ggbb124z6avnqyhz8k43iicqhv1fw6c"))))
+    (build-system copy-build-system)
+    (arguments
+     (list
+      #:install-plan #~'(("xml.xsd" "/xml/dtd/namespace/xml.xsd"))
+      #:phases #~(modify-phases %standard-phases
+                   (add-before 'install 'create-catalog
+                     (lambda* (#:key inputs #:allow-other-keys)
+                       (let ((out (string-append #$output "/xml/dtd/namespace")))
+                         (mkdir-p out)
+                         (invoke (search-input-file inputs "/bin/xmlcatalog")
+                                 "--noout"
+                                 "--create"
+                                 "--add"
+                                 "uri"
+                                 "http://www.w3.org/2001/xml.xsd"
+                                 (string-append out "/xml.xsd")
+                                 (string-append out "/catalog.xml"))))))))
+    (native-inputs (list libxml2))
+    (home-page "https://www.w3.org/XML/1998/namespace")
+    (synopsis "XML Schema for XML namespace")
+    (description
+     "This package provides an XML Schema fragment and its catalog.  The schema
+constrains the syntax of @code{xml:lang}, @code{xml:spec}, @code{xml:base}, and
+@code{xml:id} in the schema language defined by the XML Schema Recommendation Second
+Edition of 28 October 2004.")
+    (license license:w3c)))

base-commit: 2d6a3799fcda5c017f653c6e96b91964b07a7ee0
prerequisite-patch-id: 62fc54ed554df985530503c8e8c5b718c16b709b
prerequisite-patch-id: c22785847e70bf2f4c94547dd7851ad7de06b92a
-- 
2.45.2





  reply	other threads:[~2024-07-12 12:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-11 13:13 [bug#72060] [PATCH] gnu: Add xml-namespace-xsd gemmaro
2024-07-12 12:50 ` gemmaro [this message]
2024-07-12 20:01   ` [bug#72060] [PATCH v2] " Liliana Marie Prikler
2024-07-21  2:46     ` gemmaro
2024-07-21 10:04       ` bug#72060: " Liliana Marie Prikler
2024-07-12 23:02 ` [bug#72060] [PATCH v3] " gemmaro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0771c5bdac599f05154969c2ec23f95d546dbeb5.1720788607.git.gemmaro.dev@gmail.com \
    --to=gemmaro.dev@gmail.com \
    --cc=72060@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).