[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#65479] [PATCH core-updates v3 17/63] gnu: libxml2: Rewrite using G-
From: |
Bruno Victal |
Subject: |
[bug#65479] [PATCH core-updates v3 17/63] gnu: libxml2: Rewrite using G-Expressions. |
Date: |
Mon, 9 Oct 2023 21:06:05 +0100 |
* gnu/packages/xml.scm (libxml2): Use G-Expressions.
---
gnu/packages/xml.scm | 46 ++++++++++++++++++++++----------------------
1 file changed, 23 insertions(+), 23 deletions(-)
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 0b31bb5928..ab78796522 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -198,29 +198,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.41.0
- [bug#65479] [PATCH core-updates v3 00/63] Docbook & XML/SGML improvements, Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 01/63] Partial revert d3a0869e9b667d563e7e877c93f30a70896c5831., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 15/63] gnu: docbook2x: Set search-paths for XML and SGML catalogs., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 03/63] gnu: libxml2: Add SGML_CATALOG_FILES to native-search-path., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 09/63] gnu: docbook-xsl: Add rewrite entries for http., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 07/63] gnu: docbook-xml-5.1: Fix URIs in catalog.xml., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 05/63] gnu: docbook-xml: Fix installation paths., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 33/63] gnu: gtk: Drop docbook workaround., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 17/63] gnu: libxml2: Rewrite using G-Expressions.,
Bruno Victal <=
- [bug#65479] [PATCH core-updates v3 06/63] gnu: Add docbook-xml-5.0.1., Bruno Victal, 2023/10/09
- [bug#65479] [PATCH core-updates v3 02/63] search-paths: Add $XML_CATALOG_FILES and $SGML_CATALOG_FILES., Bruno Victal, 2023/10/09
[bug#65479] [PATCH core-updates v3 36/63] gnu: metapixel: Drop docbook workaround., Bruno Victal, 2023/10/09
[bug#65479] [PATCH core-updates v3 12/63] gnu: docbook2x: Import patches from debian., Bruno Victal, 2023/10/09
[bug#65479] [PATCH core-updates v3 30/63] gnu: udisks: Drop docbook workaround., Bruno Victal, 2023/10/09