From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id uJ86DjDUkGSDBAEASxT56A (envelope-from ) for ; Tue, 20 Jun 2023 00:18:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id yHodDjDUkGT0dQAA9RJhRA (envelope-from ) for ; Tue, 20 Jun 2023 00:18:24 +0200 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 EFB713E53A for ; Tue, 20 Jun 2023 00:18:23 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBNCJ-0000ss-3c; Mon, 19 Jun 2023 18:18:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBNCH-0000sV-59 for guix-patches@gnu.org; Mon, 19 Jun 2023 18:18:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qBNCE-0007FU-4G for guix-patches@gnu.org; Mon, 19 Jun 2023 18:18:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qBNCD-0005zO-Kh for guix-patches@gnu.org; Mon, 19 Jun 2023 18:18:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#60826] [PATCH gnome-team v3 5/5] gnu: shared-mime-info: Add doc output. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 19 Jun 2023 22:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60826 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60826@debbugs.gnu.org Cc: Bruno Victal , liliana.prikler@gmail.com Received: via spool by 60826-submit@debbugs.gnu.org id=B60826.168721302322944 (code B ref 60826); Mon, 19 Jun 2023 22:18:01 +0000 Received: (at 60826) by debbugs.gnu.org; 19 Jun 2023 22:17:03 +0000 Received: from localhost ([127.0.0.1]:57491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBNBG-0005xz-K3 for submit@debbugs.gnu.org; Mon, 19 Jun 2023 18:17:02 -0400 Received: from smtpm4.myservices.hosting ([185.26.105.235]:55506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBNBE-0005xX-Lq for 60826@debbugs.gnu.org; Mon, 19 Jun 2023 18:17:01 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm4.myservices.hosting (Postfix) with ESMTP id 9CF0220C93; Tue, 20 Jun 2023 00:16:59 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 56977800A0; Tue, 20 Jun 2023 00:07:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id P9FKx4163sku; Tue, 20 Jun 2023 00:07:54 +0200 (CEST) Received: from guix-nuc.home.arpa (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id B4D4A8009F; Tue, 20 Jun 2023 00:07:53 +0200 (CEST) From: Bruno Victal Date: Mon, 19 Jun 2023 23:07:08 +0100 Message-Id: <829b145fbb0b44493fd83e828c1776e682d4d369.1687212109.git.mirai@makinata.eu> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687213104; a=rsa-sha256; cv=none; b=KERBQvZAd8h/8/tlkNurxtgjKYE97K6Xlm939ZhnsOTRRhUa/bAHSS9Q3ftV3udwxtVRmx JzCwRiBrkezo/awMkauU75NFhAre2SparOTHvIHEQX/aQltxQlX9dks6ldHahPySolmQ9t R47fmFV7PC7s0LRZeYQaBNEcFt7noDRFE263/YQ+yYE7ji11jnX9+Amd+A67kvONJfzzSZ nwtYemCF/+tmU/5K7eDOORmUY7MgO8fTZmCReCsk2PRQlI8+fG8rG87kCdDWjLidN0Fl0u vDn9cAEsjxsq3yOoavEIKYRzZ8PnTv1Da6DlI+2mQz8Az/j6vzh4SaJXHaOVUA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687213104; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=CMfXjLZUgUgcUgcl33kz4lX4Rhuupdgh26+c9uPU+wo=; b=i1rVxkeKZnw5qK65PuoOMmXCUZqk+1OwyEcG4AuqPQzhdLrjc1ulht9b/X4mrAiYZxolVM cNEYj+NlGoPvILpQKFVBTOqpXBfqsHsFemkMHfu7jlIKH4HYbzgdq62DDZuTecf1DkIOsr Ep36iDtWmu4zCJu1SJxBEZOX8QFMDTLkNwRltG+xYepZKtxlSdDmF+aBwQUCEMEznuTU62 j2x5r28LedOReqc316PAloYpTd5HS5cPKFdI/Nnzoxa/UrZG2Ez+3X8vXJCN63GjtsRWWN LlvvtC8cubRj8M738JehiEVPc4VwdsQzBP8v85Mj19h4tEjJl7rY0xjcIZAF3A== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -1.85 X-Spam-Score: -1.85 X-Migadu-Queue-Id: EFB713E53A X-TUID: Uu5WByzpXs+Z * gnu/packages/freedesktop.scm (shared-mime-info) [arguments]<#:phases>: Add 'install-doc phase. [outputs]: Add 'doc' output. [native-inputs]: Add docbook-xml-4.1.2, docbook-xsl and xmlto. --- gnu/packages/freedesktop.scm | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index 50321fd9a7..9f0447d89b 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -544,11 +544,24 @@ (define-public shared-mime-info (not (string-prefix? "./tests/mime-detection" file)))))) (for-each patch-shebang - (find-files "." pred #:stat lstat)))))))) + (find-files "." pred #:stat lstat))))) + ;; The docs have no install rule. + (add-after 'install 'install-doc + (lambda* (#:key source #:allow-other-keys) + (let ((dest (string-append #$output:doc "/share/doc"))) + (with-directory-excursion "data/shared-mime-info-spec-html" + (install-file "shared-mime-info-spec.html" + (string-append dest "/html"))) + (install-file (string-append source + "/data/shared-mime-info-spec.xml") + dest))))))) (inputs (list glib libxml2)) (native-inputs - (list gettext-minimal pkg-config python xdgmime)) + (list gettext-minimal pkg-config python xdgmime + ;; For 'doc' output. + docbook-xml-4.1.2 docbook-xsl xmlto)) + (outputs (list "out" "doc")) (home-page "https://www.freedesktop.org/wiki/Software/shared-mime-info") (synopsis "Database of common MIME types") (description -- 2.39.2