aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2018-06-24 17:35:31 +0200
committerRicardo Wurmus <rekado@elephly.net>2018-06-24 17:35:31 +0200
commitd86a7c647d9b51de0c3d7e420c0951cedbca49eb (patch)
treea92d78a2b240d1d518f0b8f54f798f228ba6c1f6 /gnu/packages
parentaca7dcdd1eee3c879ef1cca2f417988fa0d12b03 (diff)
downloadguix-d86a7c647d9b51de0c3d7e420c0951cedbca49eb.tar.gz
guix-d86a7c647d9b51de0c3d7e420c0951cedbca49eb.zip
gnu: gtk-doc: Wrap executables.
* gnu/packages/gtk.scm (gtk-doc)[arguments]: Add phase "wrap-executables".
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/gtk.scm12
1 files changed, 10 insertions, 2 deletions
diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index 56f3a249de..bc7cda0d72 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -8,7 +8,7 @@
;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
;;; Copyright © 2015 Andy Wingo <wingo@igalia.com>
;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
-;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2015, 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 Fabian Harfert <fhmgufs@web.de>
;;; Copyright © 2016 Kei Kebreau <kkebreau@posteo.net>
@@ -1468,7 +1468,15 @@ information.")
(string-append (car (find-files (assoc-ref inputs "docbook-xsl")
"^catalog.xml$"))
" \"http://docbook.sourceforge.net/release/xsl/")))
- #t)))
+ #t))
+ (add-after 'install 'wrap-executables
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (for-each (lambda (prog)
+ (wrap-program prog
+ `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))))
+ (find-files (string-append out "/bin")))
+ #t))))
#:configure-flags
(list (string-append "--with-xml-catalog="
(assoc-ref %build-inputs "docbook-xml")