diff options
author | Bruno Victal <mirai@makinata.eu> | 2023-10-09 21:05:54 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-08-31 10:42:07 +0200 |
commit | ad4d9b1b1aa351fd063527a31721f0132d8bc9af (patch) | |
tree | 5f6c5160cc421dda1abc5490bc1a25a60c54319e /gnu/packages/docbook.scm | |
parent | 22b50e65c5f181d2fedf2b916086ed31f5cc5701 (diff) | |
download | guix-ad4d9b1b1aa351fd063527a31721f0132d8bc9af.tar.gz |
gnu: Add docbook-xml-5.0.1.
* gnu/packages/docbook.xml (docbook-xml-5.0.1): New variable. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Diffstat (limited to 'gnu/packages/docbook.scm')
-rw-r--r-- | gnu/packages/docbook.scm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/docbook.scm b/gnu/packages/docbook.scm index 4a15769270..3175d03539 100644 --- a/gnu/packages/docbook.scm +++ b/gnu/packages/docbook.scm @@ -120,6 +120,30 @@ by no means limited to these applications.) This package provides XML DTDs.") ;; substitution has no effect. ((#:install-plan _ #f) #~`(("schemas/" #$dest-dir))))))))) + +(define-public docbook-xml-5.0.1 + (let* ((version "5.0.1") + (source (origin + (method url-fetch) + (uri (string-append "https://docbook.org/xml/" version + "/docbook-" version ".zip")) + (sha256 + (base32 + "1iz3hq1lqgnshvlz4j9gvh4jy1ml74qf90vqf2ikbq0h4i2xzybs")))) + (template (docbook-xml-package source version))) + (package + (inherit template) + (arguments + (let ((dest-dir (format #f "xml/docbook/~a/" version))) + (substitute-keyword-arguments (package-arguments template) + ((#:install-plan _ #f) + #~`(("catalog.xml" #$dest-dir) + ("docbook.nvdl" #$dest-dir) + ("dtd" #$dest-dir) + ("rng" #$dest-dir) + ("sch" #$dest-dir) + ("xsd" #$dest-dir))))))))) + ;; XXX: docbook-xml-4.x versions use the same #:install-plan but since the ;; paths are versioned we can't use (inherit …). (define* (docbook-xml-4.x-package source version) |