[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/31: gnu: Add docbook-sgml.
From: |
guix-commits |
Subject: |
05/31: gnu: Add docbook-sgml. |
Date: |
Thu, 14 Jan 2021 10:12:51 -0500 (EST) |
apteryx pushed a commit to branch core-updates
in repository guix.
commit c66ab596884e6ab889e1becebe3efdbe42664bc8
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Jul 3 09:04:41 2018 -0400
gnu: Add docbook-sgml.
* gnu/packages/docbook.scm (docbook-sgml): New variable.
---
gnu/packages/docbook.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/docbook.scm b/gnu/packages/docbook.scm
index 8c3658b..562427e 100644
--- a/gnu/packages/docbook.scm
+++ b/gnu/packages/docbook.scm
@@ -217,6 +217,48 @@ by no means limited to these applications.) This package
provides XML DTDs.")
"This package provides XSL style sheets for DocBook.")
(license (x11-style "" "See 'COPYING' file."))))
+(define-public docbook-sgml
+ (package
+ (name "docbook-sgml")
+ (version "4.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://www.oasis-open.org/docbook/sgml/"
+ version "/docbk41.zip"))
+ (sha256
+ (base32
+ "04b3gp4zkh9c5g9kvnywdkdfkcqx3kjc04j4mpkr4xk7lgqgrany"))))
+ (build-system trivial-build-system)
+ (arguments
+ '(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let ((source (assoc-ref %build-inputs "source"))
+ (iso-entities-dir (string-append
+ (assoc-ref %build-inputs
"iso-8879-entities")))
+ (unzip (string-append (assoc-ref %build-inputs "unzip")
+ "/bin/unzip"))
+ (dtd (string-append (assoc-ref %outputs "out")
+ "/sgml/dtd/docbook")))
+ ;; Extract the sources.
+ (mkdir-p dtd)
+ (chdir dtd)
+ (invoke unzip source)
+ ;; Reference the ISO 8879 character entities.
+ ;; e.g. "iso-lat1.gml" --> "<iso-entities-dir>/ISOlat1"
+ (substitute* "docbook.cat"
+ (("(.*ISO 8879.*)\"iso-(.*)\\.gml\"" _ head name)
+ (string-append head "\"" iso-entities-dir "/ISO" name "\"")))))))
+ (native-inputs
+ `(("unzip" ,unzip)))
+ (inputs
+ `(("iso-8879-entities" ,iso-8879-entities)))
+ (home-page "https://docbook.org")
+ (synopsis "DocBook SGML style sheets for document authoring")
+ (description "This package provides SGML style sheets for DocBook.")
+ (license (x11-style "" "See file headers."))))
+
;;; Private package referenced by docbook-sgml.
(define iso-8879-entities
(package
- branch core-updates updated (b5ccc6c -> 92fd897), guix-commits, 2021/01/14
- 02/31: gnu: opensp: Add doc output, enable tests and add search path., guix-commits, 2021/01/14
- 04/31: gnu: Add iso-8879-entities., guix-commits, 2021/01/14
- 06/31: gnu: Add docbook-dsssl., guix-commits, 2021/01/14
- 07/31: gnu: Add perl-sgmls., guix-commits, 2021/01/14
- 01/31: gnu: opensp: Move package to (gnu packages xml)., guix-commits, 2021/01/14
- 10/31: gnu: Add config., guix-commits, 2021/01/14
- 03/31: gnu: Add openjade., guix-commits, 2021/01/14
- 05/31: gnu: Add docbook-sgml.,
guix-commits <=
- 13/31: gnu: texlive-fonts-stmaryrd: Rename to texlive-stmaryrd., guix-commits, 2021/01/14
- 12/31: gnu: texlive-latex-wasysym: Rename to texlive-wasysym., guix-commits, 2021/01/14
- 21/31: gnu: texlive-wasysym: Update synopsis and description., guix-commits, 2021/01/14
- 19/31: gnu: texlive-stmaryrd: Actually include the fonts., guix-commits, 2021/01/14
- 14/31: gnu: texlive-latex-oberdiek: Rename to texlive-oberdiek., guix-commits, 2021/01/14
- 17/31: gnu: Add texlive-courier., guix-commits, 2021/01/14
- 20/31: gnu: Add texlive-wasy., guix-commits, 2021/01/14
- 18/31: gnu: Add texlive-helvetic., guix-commits, 2021/01/14
- 24/31: gnu: Add docbook-utils., guix-commits, 2021/01/14
- 08/31: gnu: Add docbook-sgml-3.1., guix-commits, 2021/01/14