[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#65479] [PATCH 56/61] gnu: libstdc++-doc: Rewrite with G-Expressions
From: |
Bruno Victal |
Subject: |
[bug#65479] [PATCH 56/61] gnu: libstdc++-doc: Rewrite with G-Expressions. |
Date: |
Thu, 24 Aug 2023 05:16:42 +0100 |
* gnu/packages/gcc.scm (make-libstdc++-doc): Rewrite arguments with
G-Expressions.
---
gnu/packages/gcc.scm | 61 ++++++++++++++++++++++----------------------
1 file changed, 31 insertions(+), 30 deletions(-)
diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index 862fdd79c3..76ecc4bd33 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -13,6 +13,7 @@
;;; Copyright © 2021 Chris Marusich <cmmarusich@gmail.com>
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
;;; Copyright © 2022 Greg Hogan <code@greghogan.com>
+;;; Copyright © 2023 Bruno Victal <mirai@makinata.eu>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1329,36 +1330,36 @@ (define (make-libstdc++-doc gcc)
(inputs '())
(propagated-inputs '())
(arguments
- '(#:out-of-source? #t
- #:tests? #f ;it's just documentation
- #:phases (modify-phases %standard-phases
- (add-before 'configure 'chdir
- (lambda _
- (chdir "libstdc++-v3")))
- (add-before 'configure 'set-xsl-directory
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((docbook (assoc-ref inputs
"docbook-xsl")))
- (substitute* (find-files "doc"
- "^Makefile\\.in$")
- (("@XSL_STYLE_DIR@")
- (string-append
- docbook "/xml/xsl/"
- (strip-store-file-name docbook)))))))
- (replace 'build
- (lambda _
- ;; XXX: There's also a 'doc-info' target, but it
- ;; relies on docbook2X, which itself relies on
- ;; DocBook 4.1.2, which is not really usable
- ;; (lacks a catalog.xml.)
- (invoke "make"
- "doc-html"
- "doc-man")))
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- (invoke "make"
- "doc-install-html"
- "doc-install-man")))))))
+ (list
+ #:out-of-source? #t
+ #:tests? #f ;it's just documentation
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ (chdir "libstdc++-v3")))
+ (add-before 'configure 'set-xsl-directory
+ (lambda _
+ (substitute* (find-files "doc"
+ "^Makefile\\.in$")
+ (("@XSL_STYLE_DIR@")
+ (string-append #$(this-package-native-input "docbook-xsl")
+ "/xml/xsl/"
+ (strip-store-file-name docbook))))))
+ (replace 'build
+ (lambda _
+ ;; XXX: There's also a 'doc-info' target, but it
+ ;; relies on docbook2X, which itself relies on
+ ;; DocBook 4.1.2, which is not really usable
+ ;; (lacks a catalog.xml.)
+ (invoke "make"
+ "doc-html"
+ "doc-man")))
+ (replace 'install
+ (lambda _
+ (invoke "make"
+ "doc-install-html"
+ "doc-install-man"))))))
(properties (alist-delete 'hidden? (package-properties gcc)))))
(define-public libstdc++-doc-5
--
2.40.1
- [bug#65479] [PATCH core-updates 51/61] gnu: gdcm: Build manpages., (continued)
- [bug#65479] [PATCH core-updates 51/61] gnu: gdcm: Build manpages., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 43/61] gnu: vmpk: Drop docbook workaround., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 61/61] gnu: Remove unneeded libxml2 from native-inputs. (gtk-doc), Bruno Victal, 2023/08/23
- [bug#65479] [PATCH 37/61] gnu: libxkbcommon: Add doc output., Bruno Victal, 2023/08/24
- [bug#65479] [PATCH 36/61] gnu: metapixel: Rewrite with G-Expressions., Bruno Victal, 2023/08/24
- [bug#65479] [PATCH 48/61] gnu: alsa-utils: Build manpages., Bruno Victal, 2023/08/24
- [bug#65479] [PATCH 53/61] gnu: gtk-doc: Rewrite with G-Expressions., Bruno Victal, 2023/08/24
- [bug#65479] [PATCH 54/61] gnu: gtk-doc: Wrap XML_CATALOG_FILES., Bruno Victal, 2023/08/24
- [bug#65479] [PATCH 55/61] gnu: gtk-doc: Remove leftovers., Bruno Victal, 2023/08/24
- [bug#65479] [PATCH 57/61] gnu: libstdc++-doc: Build libstdc++ info documentation., Bruno Victal, 2023/08/24
- [bug#65479] [PATCH 56/61] gnu: libstdc++-doc: Rewrite with G-Expressions.,
Bruno Victal <=
- [bug#65479] [PATCH 59/61] gnu: Remove unneeded libxml2 from native-inputs. (libxslt), Bruno Victal, 2023/08/24
- [bug#65479] [PATCH 60/61] gnu: Remove unneeded libxml2 from native-inputs. (xmlto), Bruno Victal, 2023/08/24
- [bug#65479] [PATCH 44/61] gnu: iputils: Drop docbook workarounds., Bruno Victal, 2023/08/24
- [bug#65479] [PATCH 58/61] gnu: perf: Remove libxml2., Bruno Victal, 2023/08/24
- [bug#65479] [PATCH 45/61] gnu: iputils: Restyle., Bruno Victal, 2023/08/24