From ae0c12023d6042801c7cc9d803424452adada50b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org>
Date: Sun, 6 Oct 2013 22:13:04 +0200
Subject: [PATCH] gnu: xmlto: Keep references to libxml2, libxslt, and
 util-linux programs.

* gnu/packages/xml.scm (xmlto): Add 'arguments' field.
  [inputs]: Add libxml2 and libxslt.
---
 gnu/packages/xml.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index fb50c25c09b..b16b2a3f1fa 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -177,8 +177,16 @@ (define-public xmlto
        (base32
         "0dp5nxq491gymq806za0dk4hngfmq65ysrqbn0ypajqbbl6vf71n"))))
     (build-system gnu-build-system)
+    (arguments
+     ;; Make sure the reference to util-linux's 'getopt' is kept in 'xmlto'.
+     '(#:configure-flags (list (string-append "GETOPT="
+                                              (assoc-ref %build-inputs
+                                                         "util-linux")
+                                              "/bin/getopt"))))
     (inputs
-     `(("util-linux" ,util-linux)))
+     `(("util-linux" ,util-linux)                 ; for 'getopt'
+       ("libxml2" ,libxml2)                       ; for 'xmllint'
+       ("libxslt" ,libxslt)))                     ; for 'xsltproc'
     (home-page "http://cyberelk.net/tim/software/xmlto/")
     (synopsis "Front-end to an XSL toolchain")
     (description
-- 
GitLab