[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#65479] [PATCH core-updates 11/61] gnu: libxml2: Rewrite using G-Exp
From: |
Bruno Victal |
Subject: |
[bug#65479] [PATCH core-updates 11/61] gnu: libxml2: Rewrite using G-Expressions. |
Date: |
Wed, 23 Aug 2023 23:35:03 +0100 |
* gnu/packages/xml.scm (libxml2): Use G-Expressions.
---
gnu/packages/xml.scm | 47 ++++++++++++++++++++++----------------------
1 file changed, 24 insertions(+), 23 deletions(-)
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 555f0ab624..d5c3c75cb9 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -33,6 +33,7 @@
;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2021 David Larsson <david.larsson@selfhosted.xyz>
;;; Copyright © 2021 Matthew James Kraai <kraai@ftbfs.org>
+;;; Copyright © 2023 Bruno Victal <mirai@makinata.eu>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -194,29 +195,29 @@ (define-public libxml2
(build-system gnu-build-system)
(outputs '("out" "static" "doc"))
(arguments
- `(#:phases (modify-phases %standard-phases
- (add-after 'install 'use-other-outputs
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((src (assoc-ref outputs "out"))
- (doc (string-append (assoc-ref outputs "doc")
"/share"))
- (dst (string-append (assoc-ref outputs "static")
- "/lib")))
- (mkdir-p doc)
- (mkdir-p dst)
- (for-each (lambda (dir)
- (rename-file (string-append src "/share/"
dir)
- (string-append doc "/" dir)))
- '("gtk-doc"))
- (for-each (lambda (ar)
- (rename-file ar (string-append dst "/"
- (basename
ar))))
- (find-files (string-append src "/lib")
"\\.a$"))
-
- ;; Remove reference to the static library from the .la
- ;; file such that Libtool does the right thing when
both
- ;; the shared and static variants are available.
- (substitute* (string-append src "/lib/libxml2.la")
- (("^old_library='libxml2.a'")
"old_library=''"))))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'use-other-outputs
+ (lambda _
+ (let ((doc (string-append #$output:doc "/share/"))
+ (static (string-append #$output:static "/lib/")))
+ (for-each mkdir-p (list doc static))
+
+ (rename-file (string-append #$output "/share/gtk-doc")
+ (string-append doc "/gtk-doc"))
+
+ (for-each
+ (lambda (ar)
+ (rename-file ar
+ (string-append static (basename ar))))
+ (find-files (string-append #$output "/lib") "\\.a$"))
+
+ ;; Remove reference to the static library from the .la
+ ;; file such that Libtool does the right thing when both
+ ;; the shared and static variants are available.
+ (substitute* (string-append #$output "/lib/libxml2.la")
+ (("^old_library='libxml2.a'") "old_library=''"))))))))
(home-page "http://www.xmlsoft.org/")
(synopsis "C parser for XML")
(inputs (list xz))
--
2.40.1
- [bug#65479] [PATCH core-updates 00/61] The Draining of the XML & DocBook Swamp., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 04/61] gnu: docbook-xsl: Add compatibility entry., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 01/61] gnu: docbook-xml: Fix installation paths., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 02/61] gnu: Add docbook-xml-5.0.1., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 08/61] gnu: docbook2x: Import patches from debian., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 11/61] gnu: libxml2: Rewrite using G-Expressions.,
Bruno Victal <=
- [bug#65479] [PATCH core-updates 10/61] gnu: docbook2x: Split documentation., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 07/61] gnu: docbook-utils: Import patches from debian., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 14/61] gnu: libxslt: Set search-paths for XML and SGML catalogs., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 19/61] gnu: lilypond: Use dblatex/stable., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 15/61] gnu: dblatex: Add libxslt native-search-paths to its own., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 40/61] gnu: sssd: Drop xmllint workaround., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 47/61] gnu: libnotify: Split documentation., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 13/61] gnu: libxml2: Add SGML_CATALOG_FILES to native-search-path., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 05/61] gnu: docbook-xsl: Add rewrite entries for http., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 09/61] gnu: docbook2x: Fix sgml2xml-isoent and add test dependencies., Bruno Victal, 2023/08/23