From: Raghav Gururajan via Guix-patches via <guix-patches@gnu.org>
To: 47643@debbugs.gnu.org
Cc: Raghav Gururajan <rg@raghavgururajan.name>
Subject: [bug#47643] [PATCH 08/22] gnu: ibus: Enable documentation.
Date: Wed, 7 Apr 2021 16:42:23 -0400 [thread overview]
Message-ID: <20210407204237.3875-8-rg@raghavgururajan.name> (raw)
In-Reply-To: <20210407204237.3875-1-rg@raghavgururajan.name>
* 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 e566993b08..b6687239df 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)
--
2.31.1
next prev parent reply other threads:[~2021-04-07 20:44 UTC|newest]
Thread overview: 80+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-07 19:30 [bug#47643] WIP-GNOME Raghav Gururajan via Guix-patches via
2021-04-07 20:42 ` [bug#47643] [PATCH 01/22] gnu: gstreamer: Update to 1.18.4 Raghav Gururajan via Guix-patches via
2021-04-07 20:42 ` [bug#47643] [PATCH 02/22] gnu: gst-plugins-base: Fix indentation Raghav Gururajan via Guix-patches via
2021-04-07 20:42 ` [bug#47643] [PATCH 03/22] gnu: gst-plugins-base: Update to 1.18.4 Raghav Gururajan via Guix-patches via
2021-04-07 20:42 ` [bug#47643] [PATCH 04/22] gnu: gst-plugins-base: Add missing inputs to enable more features Raghav Gururajan via Guix-patches via
2021-04-08 23:22 ` Leo Famulari
2021-04-08 23:32 ` Raghav Gururajan via Guix-patches via
2021-04-07 20:42 ` [bug#47643] [PATCH 05/22] gnu: gst-plugins-good: Update to 1.18.4 Raghav Gururajan via Guix-patches via
2021-04-07 20:42 ` [bug#47643] [PATCH 06/22] gnu: gst-plugins-ugly: " Raghav Gururajan via Guix-patches via
2021-04-07 20:42 ` [bug#47643] [PATCH 07/22] gnu: ibus: Update to 1.5.24 Raghav Gururajan via Guix-patches via
2021-04-07 20:42 ` Raghav Gururajan via Guix-patches via [this message]
2021-04-07 20:42 ` [bug#47643] [PATCH 09/22] gnu: ibus: Enable memconf Raghav Gururajan via Guix-patches via
2021-04-07 20:42 ` [bug#47643] [PATCH 10/22] gnu: ibus: Enable tests Raghav Gururajan via Guix-patches via
2021-04-07 20:42 ` [bug#47643] [PATCH 11/22] gnu: librsvg: Correct unbound variable Raghav Gururajan via Guix-patches via
2021-04-07 20:42 ` [bug#47643] [PATCH 12/22] gnu: gst-libav: Update to 1.18.4 Raghav Gururajan via Guix-patches via
2021-04-07 20:42 ` [bug#47643] [PATCH 13/22] gnu: iqa: Correct source uri Raghav Gururajan via Guix-patches via
2021-04-07 20:42 ` [bug#47643] [PATCH 14/22] gnu: faac: " Raghav Gururajan via Guix-patches via
2021-04-07 20:42 ` [bug#47643] [PATCH 15/22] gnu: zbar: Update to 0.23.92 Raghav Gururajan via Guix-patches via
2021-04-08 23:18 ` Leo Famulari
2021-04-09 2:21 ` Raghav Gururajan via Guix-patches via
2021-04-07 20:42 ` [bug#47643] [PATCH 16/22] gnu: transcode: Disable v4l support due to broken API Raghav Gururajan via Guix-patches via
2021-04-09 10:58 ` Léo Le Bouter via Guix-patches via
2021-04-07 20:42 ` [bug#47643] [PATCH 17/22] gnu: flite: Update to 2.2 Raghav Gururajan via Guix-patches via
2021-04-07 20:42 ` [bug#47643] [PATCH 18/22] gnu: gst-plugins-bad: Fix indentation Raghav Gururajan via Guix-patches via
2021-04-07 20:42 ` [bug#47643] [PATCH 19/22] gnu: gst-plugins-bad: Update to 1.18.4 Raghav Gururajan via Guix-patches via
2021-04-07 20:42 ` [bug#47643] [PATCH 20/22] gnu: gst-plugins-bad: Add missing inputs to enable more features Raghav Gururajan via Guix-patches via
2021-04-08 23:20 ` Leo Famulari
2021-04-08 23:29 ` Raghav Gururajan via Guix-patches via
2021-04-09 8:28 ` Leo Prikler
2021-04-07 20:42 ` [bug#47643] [PATCH 21/22] gnu: gst-plugins-bad: Disable few more failing tests Raghav Gururajan via Guix-patches via
2021-04-07 20:42 ` [bug#47643] [PATCH 22/22] gnu: gst-editing-services: Update to 1.18.4 Raghav Gururajan via Guix-patches via
2021-04-09 18:38 ` [bug#47643] [PATCH staging 00/10] Update GStreamer " Leo Prikler
2021-04-09 18:38 ` [bug#47643] [PATCH staging 01/10] gnu: gstreamer: Update " Leo Prikler
2021-04-10 8:47 ` [bug#47643] WIP-GNOME 宋文武
2021-04-10 10:38 ` [bug#47643] WIP-GNOME: gstreamer 宋文武
2021-04-09 18:38 ` [bug#47643] [PATCH staging 02/10] gnu: gst-plugins-base: Update to 1.18.4 Leo Prikler
2021-04-10 10:35 ` [bug#47643] WIP-GNOME: gst-plugins-base 宋文武
2021-04-10 12:06 ` Raghav Gururajan via Guix-patches via
2021-04-09 18:38 ` [bug#47643] [PATCH staging 03/10] gnu: gst-plugins-base: Add missing inputs to enable more features Leo Prikler
2021-04-10 11:00 ` [bug#47643] WIP-GNOME: gst-plugins-base 宋文武
2021-04-10 12:09 ` Raghav Gururajan via Guix-patches via
2021-04-09 18:38 ` [bug#47643] [PATCH staging 04/10] gnu: gst-plugins-good: Update to 1.18.4 Leo Prikler
2021-04-09 18:38 ` [bug#47643] [PATCH staging 05/10] gnu: gst-plugins-ugly: " Leo Prikler
2021-04-09 18:38 ` [bug#47643] [PATCH staging 06/10] gnu: gst-libav: " Leo Prikler
2021-04-09 18:38 ` [bug#47643] [PATCH staging 07/10] gnu: gst-plugins-bad: " Leo Prikler
2021-04-09 19:33 ` Maxime Devos
2021-04-09 19:53 ` Leo Prikler
2021-04-10 10:13 ` Maxime Devos
2021-04-09 18:38 ` [bug#47643] [PATCH staging 08/10] gnu: gst-plugins-bad: Add missing inputs to enable more features Leo Prikler
2021-04-09 18:38 ` [bug#47643] [PATCH staging 09/10] gnu: gst-plugins-bad: Disable few more failing tests Leo Prikler
2021-04-09 18:38 ` [bug#47643] [PATCH staging 10/10] gnu: gst-editing-services: Update to 1.18.4 Leo Prikler
2021-04-10 11:24 ` [bug#47643] WIP-GNOME 宋文武
2021-04-10 13:19 ` Leo Prikler
2021-04-12 9:36 ` [bug#47643] [PATCH staging v2 1/9] gnu: gstreamer: Update to 1.18.4 Leo Prikler
2021-04-12 9:36 ` [bug#47643] [PATCH staging v2 2/9] gnu: gst-plugins-base: " Leo Prikler
2021-04-12 9:36 ` [bug#47643] [PATCH staging v2 3/9] gnu: gst-plugins-base: Enable more features Leo Prikler
2021-04-12 9:36 ` [bug#47643] [PATCH staging v2 4/9] gnu: gst-plugins-good: Update to 1.18.4 Leo Prikler
2021-04-12 9:36 ` [bug#47643] [PATCH staging v2 5/9] gnu: gst-plugins-ugly: " Leo Prikler
2021-04-12 9:36 ` [bug#47643] [PATCH staging v2 6/9] gnu: gst-libav: " Leo Prikler
2021-04-12 9:36 ` [bug#47643] [PATCH staging v2 7/9] gnu: gst-plugins-bad: " Leo Prikler
2021-04-12 9:36 ` [bug#47643] [PATCH staging v2 8/9] gnu: gst-plugins-bad: Add missing inputs to enable more features Leo Prikler
2021-04-12 9:36 ` [bug#47643] [PATCH staging v2 9/9] gnu: gst-editing-services: Update to 1.18.4 Leo Prikler
2021-04-12 14:57 ` Maxime Devos
2021-04-12 15:59 ` Leo Prikler
2021-04-14 10:57 ` [bug#47643] [PATCH v2 06/18] gnu: ibus: Update to 1.5.24 Raghav Gururajan via Guix-patches via
2021-04-14 10:57 ` [bug#47643] [PATCH v2 07/18] gnu: ibus: Enable documentation Raghav Gururajan via Guix-patches via
2021-04-14 10:57 ` [bug#47643] [PATCH v2 08/18] gnu: ibus: Enable memconf Raghav Gururajan via Guix-patches via
2021-04-14 10:57 ` [bug#47643] [PATCH v2 09/18] gnu: ibus: Enable tests Raghav Gururajan via Guix-patches via
2021-04-14 10:57 ` [bug#47643] [PATCH v2 10/18] gnu: librsvg: Correct unbound variable Raghav Gururajan via Guix-patches via
2021-04-14 10:57 ` [bug#47643] [PATCH v2 12/18] gnu: iqa: Correct source uri Raghav Gururajan via Guix-patches via
2021-04-14 10:57 ` [bug#47643] [PATCH v2 13/18] gnu: faac: " Raghav Gururajan via Guix-patches via
2021-04-14 10:57 ` [bug#47643] [PATCH v2 14/18] gnu: zbar: Update to 0.23.90 Raghav Gururajan via Guix-patches via
2021-04-14 10:57 ` [bug#47643] [PATCH v2 15/18] gnu: transcode: Disable v4l support due to broken API Raghav Gururajan via Guix-patches via
2021-04-14 12:08 ` [bug#47643] [PATCH core-updates 0/5]: Non-topical changes Raghav Gururajan via Guix-patches via
2021-04-14 12:08 ` [bug#47643] [PATCH core-updates 1/5] gnu: librsvg: Correct unbound variable Raghav Gururajan via Guix-patches via
2021-04-14 12:08 ` [bug#47643] [PATCH core-updates 2/5] gnu: iqa: Correct source uri Raghav Gururajan via Guix-patches via
2021-04-14 12:08 ` [bug#47643] [PATCH core-updates 3/5] gnu: faac: " Raghav Gururajan via Guix-patches via
2021-04-14 12:08 ` [bug#47643] [PATCH core-updates 4/5] gnu: zbar: Update to 0.23.90 Raghav Gururajan via Guix-patches via
2021-04-14 12:08 ` [bug#47643] [PATCH core-updates 5/5] gnu: transcode: Disable v4l support due to broken API Raghav Gururajan via Guix-patches via
2021-04-19 16:58 ` bug#47643: (no subject) Raghav Gururajan via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210407204237.3875-8-rg@raghavgururajan.name \
--to=guix-patches@gnu.org \
--cc=47643@debbugs.gnu.org \
--cc=rg@raghavgururajan.name \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.