[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#65479] [PATCH 54/61] gnu: gtk-doc: Wrap XML_CATALOG_FILES.
From: |
Bruno Victal |
Subject: |
[bug#65479] [PATCH 54/61] gnu: gtk-doc: Wrap XML_CATALOG_FILES. |
Date: |
Thu, 24 Aug 2023 05:16:25 +0100 |
Prefer XML catalog resolution over substitutions on XML files.
* gnu/packages/gtk.scm (gtk-doc)[arguments]<#:phases>: Remove
'patch-gtk-doc-scan. Wrap XML_CATALOG_FILES within 'wrap-executables.
---
gnu/packages/gtk.scm | 32 +++++++++++---------------------
1 file changed, 11 insertions(+), 21 deletions(-)
diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index a89d5709cc..508f836077 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -2174,23 +2174,6 @@ (define-public gtk-doc
#:parallel-tests? #f
#:phases
#~(modify-phases %standard-phases
- (add-after 'unpack 'patch-gtk-doc-scan
- ;; Use a substitution to avoid setting docbook-xsl as a
- ;; propagated input.
- (lambda _
- (substitute* "gtk-doc.xsl"
-
(("http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl")
- #$(let ((docbook-xsl (this-package-input "docbook-xsl")))
- (file-append docbook-xsl
- "/xml/xsl/" (package-name docbook-xsl)
- "-" (package-version docbook-xsl)
- "/html/chunk.xsl")))
-
(("http://docbook.sourceforge.net/release/xsl/current/common/en.xml")
- #$(let ((docbook-xsl (this-package-input "docbook-xsl")))
- (file-append docbook-xsl
- "/xml/xsl/" (package-name docbook-xsl)
- "-" (package-version docbook-xsl)
- "/common/en.xsl"))))))
(add-after 'unpack 'disable-failing-tests
(lambda _
(substitute* "tests/Makefile.am"
@@ -2198,10 +2181,17 @@ (define-public gtk-doc
""))))
(add-after 'install 'wrap-executables
(lambda _
- (for-each (lambda (prog)
- (wrap-program prog
- `("GUIX_PYTHONPATH" ":" prefix (,(getenv
"GUIX_PYTHONPATH")))))
- (find-files (string-append #$output "/bin"))))))))
+ (let ((docbook-xsl-catalog
+ #$(let ((docbook-xsl (this-package-input "docbook-xsl")))
+ (file-append docbook-xsl
+ "/xml/xsl/" (package-name docbook-xsl)
+ "-" (package-version docbook-xsl)
+ "/catalog.xml"))))
+ (for-each (lambda (prog)
+ (wrap-program prog
+ `("GUIX_PYTHONPATH" ":" prefix (,(getenv
"GUIX_PYTHONPATH")))
+ `("XML_CATALOG_FILES" " " suffix
(,docbook-xsl-catalog))))
+ (find-files (string-append #$output "/bin")))))))))
(native-inputs
(list gettext-minimal
`(,glib "bin")
--
2.40.1
- [bug#65479] [PATCH core-updates 41/61] gnu: tdb: Build manpages., (continued)
- [bug#65479] [PATCH core-updates 41/61] gnu: tdb: Build manpages., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 50/61] gnu: tunctl: Update comment., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 52/61] gnu: git: Drop docbook workarounds., Bruno Victal, 2023/08/23
- [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 <=
- [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, 2023/08/24
- [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