[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#65479] [PATCH core-updates v3 20/63] gnu: Add docbook-mathml-1.0.
From: |
Bruno Victal |
Subject: |
[bug#65479] [PATCH core-updates v3 20/63] gnu: Add docbook-mathml-1.0. |
Date: |
Mon, 9 Oct 2023 21:06:08 +0100 |
* gnu/packages/docbook.scm (docbook-mathml-1.0): New variable.
---
gnu/packages/docbook.scm | 59 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
diff --git a/gnu/packages/docbook.scm b/gnu/packages/docbook.scm
index fde0903420..bef8c43a82 100644
--- a/gnu/packages/docbook.scm
+++ b/gnu/packages/docbook.scm
@@ -279,6 +279,65 @@ (define-public docbook-xml-4.1.2
(modify-inputs (package-native-inputs template)
(prepend libxml2))))))
+(define-public docbook-mathml-1.0
+ (package
+ (name "docbook-mathml")
+ (version "1.0")
+ (source (origin
+ (method url-fetch)
+ (uri
+ (string-append "https://www.oasis-open.org/docbook/xml/mathml/"
+ version "/dbmathml.dtd"))
+ (sha256
+ (base32
+ "10vmyl29j829w4xn928rznh163pf47gyzbbjjwqrbg2bidfnk7vp"))))
+ (build-system copy-build-system)
+ (arguments
+ (let ((target (format #f "xml/docbook/mathml/~a/" version)))
+ (list
+ #:modules '((guix build copy-build-system)
+ (guix build utils)
+ (sxml simple)
+ (srfi srfi-1))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'install 'generate-catalog.xml
+ (lambda _
+ (let ((store-uri (string-append "file:"
+ #$output "/"
+ #$target "dbmathml.dtd")))
+ (call-with-output-file "catalog.xml"
+ (lambda (port)
+ (sxml->xml
+ `(*TOP*
+ (*PI* xml "version='1.0'")
+ (catalog (@ (xmlns
"urn:oasis:names:tc:entity:xmlns:xml:catalog"))
+ (public (@ (publicId "-//OASIS//DTD DocBook MathML
Module V1.0//EN")
+ (uri ,store-uri)))
+ ,@(map
+ (lambda (scheme)
+ `(system
+ (@ (systemId
+ ,(string-append scheme
+
"://www.oasis-open.org/docbook/xml/"
+
"mathml/1.0/dbmathml.dtd"))
+ (uri ,store-uri))))
+ '("http" "https"))))
+ port)))))))
+ #:install-plan
+ #~`(("catalog.xml" #$target)
+ ("dbmathml.dtd" #$target)))))
+ (propagated-inputs
+ ;; These must be propagated for the package to make sense.
+ ;; TODO: Package MathML2 DTD and propagate it as well.
+ (list docbook-xml-4.1.2))
+ (home-page
+ "https://www.oasis-open.org/docbook/xml/mathml/1.0/index.1.shtml")
+ (synopsis "MathML support for DocBook XML V4.1.2.")
+ (description "The DocBook MathML Module is an extension to DocBook XML
+V4.1.2 that adds support for MathML in equation markup.")
+ (license (license:non-copyleft "" "See file headers."))))
+
(define-public docbook-xml docbook-xml-5.1)
;;; There's an issue in docbook-xsl 1.79.2 that causes manpages to be
--
2.41.0
- [bug#65479] [PATCH core-updates v3 29/63] gnu: udisks: Rewrite using G-Expressions., (continued)
- [bug#65479] [PATCH core-updates v3 29/63] gnu: udisks: Rewrite using G-Expressions., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 21/63] gnu: dblatex: Fix missing texlive binaries and fig2dev., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 18/63] gnu: dblatex: Add libxslt native-search-paths to its own., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 23/63] gnu: xmlto: Rewrite with G-Expressions., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 14/63] gnu: docbook2x: Split documentation., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 41/63] gnu: sssd: Drop xmllint workaround., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 35/63] gnu: gnome-session: Build documentation., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 43/63] gnu: drumstick: Drop docbook workaround., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 44/63] gnu: vmpk: Drop docbook workaround., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 37/63] gnu: metapixel: Rewrite with G-Expressions., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 20/63] gnu: Add docbook-mathml-1.0.,
Bruno Victal <=
- [bug#65479] [PATCH core-updates v3 24/63] gnu: xmlto: Add libxslt native-search-paths to its own., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 26/63] gnu: secilc: Drop xmlto workaround., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 25/63] gnu: gtk-doc: Add libxslt native-search-paths to its own., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 38/63] gnu: libxkbcommon: Add doc output., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 28/63] gnu: xdg-user-dirs: Drop docbook workaround., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 40/63] gnu: gnome-session: Remove libxml2., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 31/63] gnu: colord-gtk: Build documentation., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 27/63] gnu: xdg-utils: Drop docbook workarounds., Bruno Victal, 2023/10/09