summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorBruno Victal <mirai@makinata.eu>2023-10-09 21:06:05 +0100
committerLudovic Courtès <ludo@gnu.org>2024-08-31 10:42:09 +0200
commit74dd1ab733ba1d28a69072ce1206beaddf02aa5d (patch)
tree690830ef03be72199cda297c04d4a2424a930d2a /gnu/packages
parent268d3d09c17dc28d0f2d2aaf4830c2855e20daa5 (diff)
gnu: libxml2: Rewrite using G-Expressions.
* gnu/packages/xml.scm (libxml2): Use G-Expressions. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/xml.scm46
1 files changed, 23 insertions, 23 deletions
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 7506b3d4e10..0273a599ea9 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -200,29 +200,29 @@ hierarchical form with variable field lengths.")
200 (build-system gnu-build-system) 200 (build-system gnu-build-system)
201 (outputs '("out" "static" "doc")) 201 (outputs '("out" "static" "doc"))
202 (arguments 202 (arguments
203 `(#:phases (modify-phases %standard-phases 203 (list
204 (add-after 'install 'use-other-outputs 204 #:phases
205 (lambda* (#:key outputs #:allow-other-keys) 205 #~(modify-phases %standard-phases
206 (let ((src (assoc-ref outputs "out")) 206 (add-after 'install 'use-other-outputs
207 (doc (string-append (assoc-ref outputs "doc") "/share")) 207 (lambda _
208 (dst (string-append (assoc-ref outputs "static") 208 (let ((doc (string-append #$output:doc "/share/"))
209 "/lib"))) 209 (static (string-append #$output:static "/lib/")))
210 (mkdir-p doc) 210 (for-each mkdir-p (list doc static))
211 (mkdir-p dst) 211
212 (for-each (lambda (dir) 212 (rename-file (string-append #$output "/share/gtk-doc")
213 (rename-file (string-append src "/share/" dir) 213 (string-append doc "/gtk-doc"))
214 (string-append doc "/" dir))) 214
215 '("gtk-doc")) 215 (for-each
216 (for-each (lambda (ar) 216 (lambda (ar)
217 (rename-file ar (string-append dst "/" 217 (rename-file ar
218 (basename ar)))) 218 (string-append static (basename ar))))
219 (find-files (string-append src "/lib") "\\.a$")) 219 (find-files (string-append #$output "/lib") "\\.a$"))
220 220
221 ;; Remove reference to the static library from the .la 221 ;; Remove reference to the static library from the .la
222 ;; file such that Libtool does the right thing when both 222 ;; file such that Libtool does the right thing when both
223 ;; the shared and static variants are available. 223 ;; the shared and static variants are available.
224 (substitute* (string-append src "/lib/libxml2.la") 224 (substitute* (string-append #$output "/lib/libxml2.la")
225 (("^old_library='libxml2.a'") "old_library=''")))))))) 225 (("^old_library='libxml2.a'") "old_library=''"))))))))
226 (home-page "http://www.xmlsoft.org/") 226 (home-page "http://www.xmlsoft.org/")
227 (synopsis "C parser for XML") 227 (synopsis "C parser for XML")
228 (inputs (list xz)) 228 (inputs (list xz))