[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#63081] [PATCH 2/8] gnu: Add docbook-xml-5.0.1.
From: |
Bruno Victal |
Subject: |
[bug#63081] [PATCH 2/8] gnu: Add docbook-xml-5.0.1. |
Date: |
Wed, 26 Apr 2023 01:56:54 +0100 |
* gnu/packages/docbook.xml (docbook-xml-5.0.1): New variable.
---
gnu/packages/docbook.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/docbook.scm b/gnu/packages/docbook.scm
index 73a14855b9..79d5069fb0 100644
--- a/gnu/packages/docbook.scm
+++ b/gnu/packages/docbook.scm
@@ -120,6 +120,30 @@ (define-public docbook-xml-5.1
;; 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)
--
2.39.2
- [bug#63081] [PATCH 0/8] Comprehensive DocBook refactoring., Bruno Victal, 2023/04/25
- [bug#63081] [PATCH 1/8] gnu: docbook-xml: Fix installation paths., Bruno Victal, 2023/04/25
- [bug#63081] [PATCH 2/8] gnu: Add docbook-xml-5.0.1.,
Bruno Victal <=
- [bug#63081] [PATCH 6/8] gnu: docbook: Refactor docbook-sgml packages., Bruno Victal, 2023/04/25
- [bug#63081] [PATCH 8/8] gnu: docbook-dsssl: Switch to copy-build-system., Bruno Victal, 2023/04/25
- [bug#63081] [PATCH 5/8] gnu: docbook-utils: Refactor package., Bruno Victal, 2023/04/25
- [bug#63081] [PATCH 3/8] gnu: docbook-xsl: Refactor package., Bruno Victal, 2023/04/25
- [bug#63081] [PATCH 4/8] gnu: docbook-xsl-1.79.1: Refactor package., Bruno Victal, 2023/04/25
- [bug#63081] [PATCH 7/8] gnu: docbook: Refactor dblatex packages., Bruno Victal, 2023/04/25