[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#61015] [PATCH core-updates 1/9] gnu: docbook-xml: Use copy-build-sy
From: |
Bruno Victal |
Subject: |
[bug#61015] [PATCH core-updates 1/9] gnu: docbook-xml: Use copy-build-system. |
Date: |
Mon, 23 Jan 2023 03:32:47 +0000 |
* gnu/packages/docbook.scm (docbook-xml-5)
[build-system]: Switch to copy-build-system.
[source][arguments]: Adapt to copy-build-system.
---
gnu/packages/docbook.scm | 28 ++++++++--------------------
1 file changed, 8 insertions(+), 20 deletions(-)
diff --git a/gnu/packages/docbook.scm b/gnu/packages/docbook.scm
index f66ce4b959..a670eaa7f4 100644
--- a/gnu/packages/docbook.scm
+++ b/gnu/packages/docbook.scm
@@ -59,27 +59,15 @@ (define-public docbook-xml-5
(sha256
(base32
"1iz3hq1lqgnshvlz4j9gvh4jy1ml74qf90vqf2ikbq0h4i2xzybs"))))
- (build-system trivial-build-system)
+ (build-system copy-build-system)
(arguments
- `(#:modules ((guix build utils))
- #:builder
- (begin
- (use-modules (guix build utils))
- (let* ((unzip
- (string-append (assoc-ref %build-inputs "unzip")
- "/bin/unzip"))
- (source (assoc-ref %build-inputs "source"))
- (out (assoc-ref %outputs "out"))
- (dtd (string-append out "/xml/dtd/docbook")))
- (invoke unzip source)
- (mkdir-p dtd)
- (copy-recursively (string-append "docbook-" ,version) dtd)
- (with-directory-excursion dtd
- (substitute* (string-append out "/xml/dtd/docbook/catalog.xml")
- (("uri=\"")
- (string-append
- "uri=\"file://" dtd "/")))
- #t)))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'install
+ (lambda _
+ (let ((dtd-path (string-append #$output "/xml/dtd/docbook")))
+ (copy-recursively "." dtd-path)))))))
(native-inputs (list unzip))
(home-page "https://docbook.org")
(synopsis "DocBook XML DTDs for document authoring")
--
2.38.1
- [bug#61015] [PATCH core-updates 0/9] Modernize and fix docbook-xml, Bruno Victal, 2023/01/22
- [bug#61015] [PATCH core-updates 1/9] gnu: docbook-xml: Use copy-build-system.,
Bruno Victal <=
- [bug#61015] [PATCH core-updates 2/9] gnu: docbook-xml-4.1.2: Adapt to copy-build-system., Bruno Victal, 2023/01/22
- [bug#61015] [PATCH core-updates 3/9] gnu: docbook-xml: Adapt to copy-build-system., Bruno Victal, 2023/01/22
- [bug#61015] [PATCH core-updates 4/9] gnu: docbook-xml-4.4: Adapt to copy-build-system., Bruno Victal, 2023/01/22
- [bug#61015] [PATCH core-updates 5/9] gnu: docbook-xml-4.3: Adapt to copy-build-system., Bruno Victal, 2023/01/22
- [bug#61015] [PATCH core-updates 6/9] gnu: docbook-xml-4.2: Adapt to copy-build-system., Bruno Victal, 2023/01/22
- [bug#61015] [PATCH core-updates 7/9] gnu: docbook-xml: Fix permissions., Bruno Victal, 2023/01/22
- [bug#61015] [PATCH core-updates 8/9] gnu: docbook-xml: Use XSLT to patch catalog.xml., Bruno Victal, 2023/01/22
- [bug#61015] [PATCH core-updates 9/9] gnu: docbook-xml-4.1.2: Add missing catalog.xml., Bruno Victal, 2023/01/22