[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
85/124: gnu: ibus: Enable documentation.
From: |
guix-commits |
Subject: |
85/124: gnu: ibus: Enable documentation. |
Date: |
Tue, 10 Aug 2021 20:21:21 -0400 (EDT) |
raghavgururajan pushed a commit to branch wip-gnome
in repository guix.
commit 1df4dfc264d07b510b8141b8b461e617ce46895e
Author: Raghav Gururajan <rg@raghavgururajan.name>
AuthorDate: Wed Apr 7 16:42:23 2021 -0400
gnu: ibus: Enable documentation.
* gnu/packages/ibus.scm (ibus)[outputs](doc): New output.
[configure-flags](enable-gtk-doc): New flag.
[phases](patch-docbook-xml): New phase.
(move-doc): New phase.
[native-inputs]: Add docbook-xml and gtk-doc.
---
gnu/packages/ibus.scm | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/ibus.scm b/gnu/packages/ibus.scm
index 88df5ac..0175acd 100644
--- a/gnu/packages/ibus.scm
+++ b/gnu/packages/ibus.scm
@@ -42,6 +42,7 @@
#:use-module (gnu packages databases)
#:use-module (gnu packages datastructures)
#:use-module (gnu packages dbm)
+ #:use-module (gnu packages docbook)
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages gettext)
#:use-module (gnu packages glib)
@@ -73,10 +74,12 @@
(base32
"07s2ly75xv50bqg37mn37i9akqvcfd45k2mbplxrsqk3a2b3mwxb"))))
(build-system glib-or-gtk-build-system)
+ (outputs '("out" "doc"))
(arguments
`(#:tests? #f ; tests fail because there's no connection to dbus
#:parallel-build? #f ; race condition discovered with emoji support
#:configure-flags (list "--enable-python-library"
+ "--enable-gtk-doc"
(string-append
"--with-unicode-emoji-dir="
(assoc-ref %build-inputs "unicode-emoji")
@@ -91,6 +94,14 @@
"--enable-wayland")
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'patch-docbook-xml
+ (lambda* (#:key inputs #:allow-other-keys)
+ (with-directory-excursion "docs/reference/ibus"
+ (substitute* "ibus-docs.sgml.in"
+ (("http://www.oasis-open.org/docbook/xml/4.1.2/")
+ (string-append (assoc-ref inputs "docbook-xml")
+ "/xml/dtd/docbook/"))))
+ #t))
(add-after 'unpack 'patch-python-target-directories
(lambda* (#:key outputs #:allow-other-keys)
(let ((root (string-append (assoc-ref outputs "out")
@@ -127,6 +138,15 @@
(("\"(setxkbmap|xmodmap)\"" _ prog)
(string-append "\"" (assoc-ref inputs prog) "/bin/" prog
"\"")))
#t))
+ (add-after 'install 'move-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (doc (assoc-ref outputs "doc")))
+ (mkdir-p (string-append doc "/share"))
+ (rename-file
+ (string-append out "/share/gtk-doc")
+ (string-append doc "/share/gtk-doc"))
+ #t)))
(add-after 'wrap-program 'wrap-with-additional-paths
(lambda* (#:key outputs #:allow-other-keys)
;; Make sure 'ibus-setup' runs with the correct PYTHONPATH and
@@ -160,10 +180,12 @@
("wayland" ,wayland)
("xmodmap" ,xmodmap)))
(native-inputs
- `(("glib" ,glib "bin") ; for glib-genmarshal
+ `(("docbook-xml" ,docbook-xml-4.1.2)
+ ("glib" ,glib "bin") ; for glib-genmarshal
("gettext" ,gettext-minimal)
("gnome-common" ,gnome-common)
("gobject-introspection" ,gobject-introspection) ; for g-ir-compiler
+ ("gtk-doc" ,gtk-doc)
("perl" ,perl)
("pkg-config" ,pkg-config)
("python-wrapper" ,python-wrapper)
- 70/124: gnu: wayland: Update to 1.19.0., (continued)
- 70/124: gnu: wayland: Update to 1.19.0., guix-commits, 2021/08/10
- 71/124: gnu: wayland: Fix and move documentation., guix-commits, 2021/08/10
- 77/124: gnu: gtk+-2: Update to 2.24.33., guix-commits, 2021/08/10
- 78/124: gnu: gtk+: Enable tests., guix-commits, 2021/08/10
- 81/124: gnu: gtk+: Update to 3.24.27., guix-commits, 2021/08/10
- 90/124: gnu: faac: Correct source uri., guix-commits, 2021/08/10
- 84/124: gnu: ibus: Update to 1.5.24., guix-commits, 2021/08/10
- 91/124: gnu: zbar: Update to 0.23.90., guix-commits, 2021/08/10
- 100/124: gnu: gst-editing-services: Update to 1.18.4., guix-commits, 2021/08/10
- 82/124: gnu: gtkmm: Update to 3.24.4., guix-commits, 2021/08/10
- 85/124: gnu: ibus: Enable documentation.,
guix-commits <=
- 95/124: gnu: gst-plugins-good: Update to 1.18.4., guix-commits, 2021/08/10
- 114/124: gnu: gtkmm@2: Override inheritance of certain changes from gtkmm., guix-commits, 2021/08/10
- 117/124: gnu: tracker: Enable some features., guix-commits, 2021/08/10
- 119/124: gnu: tracker: Update to 3.1.1 and make related changes., guix-commits, 2021/08/10
- 88/124: gnu: ibus: Remove trailing #t in phases., guix-commits, 2021/08/10
- 89/124: gnu: iqa: Correct source uri., guix-commits, 2021/08/10
- 87/124: gnu: ibus: Enable tests., guix-commits, 2021/08/10
- 92/124: gnu: gstreamer: Update to 1.18.4., guix-commits, 2021/08/10
- 94/124: gnu: gst-plugins-base: Enable more features., guix-commits, 2021/08/10
- 96/124: gnu: gst-plugins-ugly: Update to 1.18.4., guix-commits, 2021/08/10