From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QJTXDW/LdmCgWAAAgWs5BA (envelope-from ) for ; Wed, 14 Apr 2021 13:01:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +KzkB2/LdmDiYgAAB5/wlQ (envelope-from ) for ; Wed, 14 Apr 2021 11:01:03 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E920825700 for ; Wed, 14 Apr 2021 13:01:02 +0200 (CEST) Received: from localhost ([::1]:43580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWdGX-0003EQ-RE for larch@yhetil.org; Wed, 14 Apr 2021 07:01:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWdFb-0002uo-5I for guix-patches@gnu.org; Wed, 14 Apr 2021 07:00:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50421) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWdFa-0006CA-Tb for guix-patches@gnu.org; Wed, 14 Apr 2021 07:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWdFa-0001g3-Pu for guix-patches@gnu.org; Wed, 14 Apr 2021 07:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47643] [PATCH v2 07/18] gnu: ibus: Enable documentation. Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 14 Apr 2021 11:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47643 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 47643@debbugs.gnu.org Cc: Raghav Gururajan Received: via spool by 47643-submit@debbugs.gnu.org id=B47643.16183979536254 (code B ref 47643); Wed, 14 Apr 2021 11:00:02 +0000 Received: (at 47643) by debbugs.gnu.org; 14 Apr 2021 10:59:13 +0000 Received: from localhost ([127.0.0.1]:33705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWdEn-0001cn-Hb for submit@debbugs.gnu.org; Wed, 14 Apr 2021 06:59:13 -0400 Received: from out0.migadu.com ([94.23.1.103]:30714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWdEl-0001cb-26 for 47643@debbugs.gnu.org; Wed, 14 Apr 2021 06:59:11 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raghavgururajan.name; s=key1; t=1618397950; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=87CROTeJU+RTLMoygpyE8a5xMgDL13TEevJXbryj5P8=; b=XUpQ1TEQrIAeXZgwOwYAev0KUP+sC7kmc4QBTYl5FsL9PGrrt9pUf+FKKjQjiNtqtd8T8x 7ff65mPvW9SkyvuWjU4Tg6Wq2YQanZcSbQ9bzcd9oqu0mTjETDi7lOWemb+PH+f4qCn37V g7IuimCS/cuu2JWMekq60YiPj/Fp5pp6n2sibwrC0WS6SJGhexONSCWLXDOlcggROuOtl7 ntETnR5U3ZqcGBuHopNz75iF3OXM8B1Rd77YYlBgdveJ5LAqGCkMFY5DKszrmhlIH0lDZA frfPjcjfrkKQqHVUJ5HLUFwHasPqKqnAIlO/irhhP1Kh1k8HGjDCr4qtIVR9FA== Date: Wed, 14 Apr 2021 06:57:44 -0400 Message-Id: <20210414105755.12702-7-rg@raghavgururajan.name> In-Reply-To: <20210414105755.12702-6-rg@raghavgururajan.name> References: <20210414105755.12702-6-rg@raghavgururajan.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Auth-User: rg@raghavgururajan.name X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Raghav Gururajan X-ACL-Warn: , Raghav Gururajan via Guix-patches From: Raghav Gururajan via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.00 Authentication-Results: aspmx1.migadu.com; none X-Migadu-Queue-Id: E920825700 X-Spam-Score: -4.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6exeJRMPEOFx * 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