From patchwork Thu Sep 24 12:41:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raghav Gururajan X-Patchwork-Id: 24269 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4B3CB27BBE9; Thu, 24 Sep 2020 13:42:09 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C299727BBE8 for ; Thu, 24 Sep 2020 13:42:08 +0100 (BST) Received: from localhost ([::1]:39386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLQZb-0000vT-S5 for patchwork@mira.cbaines.net; Thu, 24 Sep 2020 08:42:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57948) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLQZW-0000vG-6K for guix-patches@gnu.org; Thu, 24 Sep 2020 08:42:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55572) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLQZV-0006BI-T9 for guix-patches@gnu.org; Thu, 24 Sep 2020 08:42:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kLQZV-0007J6-Qp for guix-patches@gnu.org; Thu, 24 Sep 2020 08:42:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42958] [PATCH core-updates 04/29] gnu: glib-with-documentation: Update, package definition. References: <20200820150914.9443-1-dannym@scratchpost.org> In-Reply-To: <20200820150914.9443-1-dannym@scratchpost.org> Resent-From: Raghav Gururajan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 24 Sep 2020 12:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42958 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42958@debbugs.gnu.org Received: via spool by 42958-submit@debbugs.gnu.org id=B42958.160095131828079 (code B ref 42958); Thu, 24 Sep 2020 12:42:01 +0000 Received: (at 42958) by debbugs.gnu.org; 24 Sep 2020 12:41:58 +0000 Received: from localhost ([127.0.0.1]:38885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLQZS-0007Ip-0F for submit@debbugs.gnu.org; Thu, 24 Sep 2020 08:41:58 -0400 Received: from knopi.disroot.org ([178.21.23.139]:46562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kLQZP-0007If-Mr for 42958@debbugs.gnu.org; Thu, 24 Sep 2020 08:41:56 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id BEAB551BD9 for <42958@debbugs.gnu.org>; Thu, 24 Sep 2020 14:41:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RyFB4HH8FdHv for <42958@debbugs.gnu.org>; Thu, 24 Sep 2020 14:41:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1600951312; bh=gKm9+EUEdsySViDj8pRtii9fyQEVjeW2AhYpE9rOldk=; h=To:From:Subject:Date; b=Zo0attPakR2eeBGkyMX18qE2qnsC8xM7gv/NK624b5k37fiwmTKyTsEik12oS9rPL 8Ge22Sz3DdBLXNXaLDq0QCC2WQINnymMx+9g0c77Z1ke7kpepg+cUej4u+WLAacETR pV8/cdEjpLuOFJ0FuHqYRX957D5AMqm3u+/VdIDdxvG5iahNwWv6RnZlyZAVa4AjGt c9BMCpSpRjOJJe9Yqb+ecrmIO9uPtJhklb89u+vNMPF+lOCWX6hmz8tWoykGRJBcbR 0Uhf7yqqN3zRWx/B82ZgAMq9x+iTBmxVnM5N14mAfKpgJk714AFLoHOtLBFhHdofOL Joi3THk+YpAKw== From: Raghav Gururajan Message-ID: <8922c4a6-4f24-923b-2509-d3cf89b15ea6@disroot.org> Date: Thu, 24 Sep 2020 08:41:50 -0400 Mime-Version: 1.0 Content-Language: en-US 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches @Danny Please find the attached split patches. Regards, RG. From 160c6a756386e0464938e6784f579c156d6e2c2e Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Thu, 24 Sep 2020 08:39:00 -0400 Subject: [PATCH 13/13] gnu: glib-with-documentation: Fix documentation. * gnu/packages/glib.scm (glib-with-documentation) [arguments]<#:phases>['patch-docbook-xml]: New phase. ['move-doc]: Modify phase. --- gnu/packages/glib.scm | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm index 9aebfb7e63..b15c75a740 100644 --- a/gnu/packages/glib.scm +++ b/gnu/packages/glib.scm @@ -299,14 +299,28 @@ threads, dynamic loading, and an object system.") `(cons "-Dgtk_doc=true" ,flags)) ((#:phases phases) `(modify-phases ,phases + (add-after 'unpack 'patch-docbook-xml + (lambda* (#:key inputs #:allow-other-keys) + (with-directory-excursion "docs/reference" + (substitute* '("gio/gdbus-object-manager-example/.*\\.xml" + "gio/.*\\.xml" "glib/.*\\.xml" "gobject/.*\\.xml") + (("http://www.oasis-open.org/docbook/xml/4.5/") + (string-append (assoc-ref inputs "docbook-xml-4.5") + "/xml/dtd/docbook/"))) + (substitute* "gio/gio.xml" + (("http://www.oasis-open.org/docbook/xml/4.2/") + (string-append (assoc-ref inputs "docbook-xml-4.2") + "/xml/dtd/docbook/")))) + #t)) (add-after 'install 'move-doc (lambda* (#:key outputs #:allow-other-keys) - (let ((out (assoc-ref outputs "out")) - (doc (assoc-ref outputs "doc")) - (html (string-append "/share/gtk-doc"))) - (copy-recursively (string-append out html) - (string-append doc html)) - (delete-file-recursively (string-append out html)) + (let* ((out (assoc-ref outputs "out")) + (doc (assoc-ref outputs "doc")) + (html (string-append "/share/gtk-doc"))) + (mkdir-p (string-append doc "/share")) + (rename-file + (string-append out html) + (string-append doc html)) #t))))))) (native-inputs `(("docbook-xml" ,docbook-xml) -- 2.28.0