This is an automated email from the git hooks/post-receive script.
planglois pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new b04198a gnu: xmlstarlet: Install symlink to xmlstarlet binary.
b04198a is described below
commit b04198a1477f9d685d674a1dcc81b79b530fc409
Author: Pierre Langlois <[email protected]>
AuthorDate: Sun Nov 8 11:18:11 2020 +0000
gnu: xmlstarlet: Install symlink to xmlstarlet binary.
* gnu/packages/xml.scm (xmlstarlet)[arguments]: Add 'symlink-xmlstarlet
phase.
---
gnu/packages/xml.scm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 0fbcb13..1db3c2e 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -25,6 +25,7 @@
;;; Copyright © 2020 Paul Garlick <[email protected]>
;;; Copyright © 2020 Edouard Klein <[email protected]>
;;; Copyright © 2020 Brett Gilio <[email protected]>
+;;; Copyright © 2020 Pierre Langlois <[email protected]>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1260,7 +1261,15 @@ C++ programming language.")
(substitute* "Makefile"
(("^examples/schema1\\\\") "\\")
(("^examples/valid1\\\\") "\\"))
- #t)))))
+ #t))
+ (add-after 'install 'symlink-xmlstarlet
+ (lambda* (#:key outputs #:allow-other-keys)
+ ;; Other distros usually either rename or symlink the `xml' binary
+ ;; as `xmlstarlet', let's do it as well for compatibility.
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin")))
+ (symlink "xml" (string-append bin "/xmlstarlet"))
+ #t))))))
(inputs
`(("libxslt" ,libxslt)
("libxml2" ,libxml2)))