[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
27/44: gnu: json-glib: Remove patch-docbook-xml phase.
From: |
guix-commits |
Subject: |
27/44: gnu: json-glib: Remove patch-docbook-xml phase. |
Date: |
Fri, 21 Apr 2023 00:48:25 -0400 (EDT) |
apteryx pushed a commit to branch core-updates
in repository guix.
commit 7aff6a08c71c924f9583569b2635e127f2ec05d5
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Apr 20 16:05:25 2023 -0400
gnu: json-glib: Remove patch-docbook-xml phase.
* gnu/packages/gnome.scm (json-glib) [arguments]: Remove patch-docbook-xml
phase. Use gexps.
[native-inputs]: Use modify-inputs. Remove labels.
---
gnu/packages/gnome.scm | 77 ++++++++++++++++++++------------------------------
1 file changed, 31 insertions(+), 46 deletions(-)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 2e395ee2a8..168c39d786 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -4715,53 +4715,38 @@ GLib and GObject, and integrates JSON with GLib data
types.")
(arguments
(substitute-keyword-arguments (package-arguments json-glib-minimal)
((#:configure-flags _)
- `(list "-Ddocs=true"
- "-Dman=true"
- ,@(if (%current-target-system)
- ;; If enabled, gtkdoc-scangobj will try to execute a
- ;; cross-compiled binary.
- '("-Dgtk_doc=disabled"
- ;; Trying to build introspection data when
cross-compiling
- ;; causes errors during linking.
- "-Dintrospection=disabled")
- '())))
+ #~(list "-Ddocs=true"
+ "-Dman=true"
+ #$@(if (%current-target-system)
+ ;; If enabled, gtkdoc-scangobj will try to execute a
+ ;; cross-compiled binary.
+ #~("-Dgtk_doc=disabled"
+ ;; Trying to build introspection data when
cross-compiling
+ ;; causes errors during linking.
+ "-Dintrospection=disabled")
+ #~())))
((#:phases phases '%standard-phases)
- `(modify-phases ,phases
- (add-after 'unpack 'patch-docbook
- (lambda* (#:key native-inputs inputs #:allow-other-keys)
- (with-directory-excursion "doc"
- (substitute* (find-files "." "\\.xml$")
- (("http://www.oasis-open.org/docbook/xml/4\\.3/")
- (string-append (assoc-ref (or native-inputs inputs)
- "docbook-xml")
- "/xml/dtd/docbook/")))
- (substitute* "meson.build"
- (("http://docbook.sourceforge.net/release/xsl/current/")
- (string-append (assoc-ref (or native-inputs inputs)
- "docbook-xsl")
- "/xml/xsl/docbook-xsl-1.79.2/"))))))
- ;; When cross-compiling, there are no docs to move.
- ,(if (%current-target-system)
- '(add-after 'install 'stub-docs
- (lambda* (#:key outputs #:allow-other-keys)
- ;; The daemon doesn't like empty output paths.
- (mkdir (assoc-ref outputs "doc"))))
- '(add-after 'install 'move-docs
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (doc (assoc-ref outputs "doc")))
- (mkdir-p (string-append doc "/share"))
- (rename-file
- (string-append out "/share/gtk-doc")
- (string-append doc "/share/gtk-doc"))))))))))
- (native-inputs
- (append
- `(("docbook-xml" ,docbook-xml-4.3)
- ("docbook-xsl" ,docbook-xsl)
- ("gobject-introspection" ,gobject-introspection)
- ("gtk-doc" ,gtk-doc)
- ("xsltproc" ,libxslt))
- (package-native-inputs json-glib-minimal)))))
+ #~(modify-phases #$phases
+ ;; When cross-compiling, there are no docs to move.
+ #$@(if (%current-target-system)
+ #~((add-after 'install 'stub-docs
+ (lambda _
+ ;; The daemon doesn't like empty output paths.
+ (mkdir #$output:doc))))
+ #~((add-after 'install 'move-docs
+ (lambda _
+ (mkdir-p (string-append #$output:doc "/share"))
+ (rename-file
+ (string-append #$output "/share/gtk-doc")
+ (string-append #$output:doc
+ "/share/gtk-doc"))))))))))
+ (native-inputs
+ (modify-inputs (package-native-inputs json-glib-minimal)
+ (prepend docbook-xml-4.3
+ docbook-xsl
+ gobject-introspection
+ gtk-doc
+ libxslt)))))
(define-public libxklavier
(package
- 21/44: gnu: dee: Remove patch-docbook-xml phase., (continued)
- 21/44: gnu: dee: Remove patch-docbook-xml phase., guix-commits, 2023/04/21
- 11/44: gnu: farstream: Remove patch-docbook-xml phase., guix-commits, 2023/04/21
- 16/44: gnu: libsigc++-2: Remove patch-docbook-xml phase., guix-commits, 2023/04/21
- 17/44: gnu: gupnp-igd: Remove patch-docbook-xml phase., guix-commits, 2023/04/21
- 19/44: gnu: seed: Remove patch-docbook-xml phase., guix-commits, 2023/04/21
- 15/44: gnu: libsigc++: Remove patch-docbook-xml phase., guix-commits, 2023/04/21
- 23/44: gnu: libnma: Remove patch-docbook-xml phase., guix-commits, 2023/04/21
- 24/44: gnu: system-config-printer: Remove patch-docbook-xml phase., guix-commits, 2023/04/21
- 29/44: gnu: libhandy: Remove patch-docbook-xml phase., guix-commits, 2023/04/21
- 26/44: gnu: vala: Remove patch-docbook-xml phase., guix-commits, 2023/04/21
- 27/44: gnu: json-glib: Remove patch-docbook-xml phase.,
guix-commits <=
- 28/44: gnu: network-manager: Remove patch-docbook-xml phase., guix-commits, 2023/04/21
- 31/44: gnu: nimf: Remove patch-docbook-xml phase., guix-commits, 2023/04/21
- 38/44: gnu: adcli: Delete use-local-docbook phase., guix-commits, 2023/04/21
- 35/44: gnu: freerdp: Remove input labels., guix-commits, 2023/04/21
- 41/44: gnu: sysbench: Remove fix-docbook phase., guix-commits, 2023/04/21
- 33/44: gnu: libu2f-host: Remove patch-docbook-xml phase., guix-commits, 2023/04/21