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 uOxNIUiilGQWbwAASxT56A (envelope-from ) for ; Thu, 22 Jun 2023 21:34:32 +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 EIA6IUiilGTy9AAA9RJhRA (envelope-from ) for ; Thu, 22 Jun 2023 21:34:32 +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 4EF6C28174 for ; Thu, 22 Jun 2023 21:34:32 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCQ4D-0006ZN-8y; Thu, 22 Jun 2023 15:34:05 -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 1qCQ4B-0006Yp-Gy for guix-patches@gnu.org; Thu, 22 Jun 2023 15:34:03 -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 1qCQ4B-0002v4-81 for guix-patches@gnu.org; Thu, 22 Jun 2023 15:34:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCQ4B-00064r-3n for guix-patches@gnu.org; Thu, 22 Jun 2023 15:34:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#60826] [PATCH gnome-team v4 4/4] gnu: shared-mime-info: Add doc output. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 22 Jun 2023 19:34:03 +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.168746242723319 (code B ref 60826); Thu, 22 Jun 2023 19:34:03 +0000 Received: (at 60826) by debbugs.gnu.org; 22 Jun 2023 19:33:47 +0000 Received: from localhost ([127.0.0.1]:36818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCQ3v-000642-GR for submit@debbugs.gnu.org; Thu, 22 Jun 2023 15:33:47 -0400 Received: from smtpmciv4.myservices.hosting ([185.26.107.240]:44380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCQ3t-00063u-Nr for 60826@debbugs.gnu.org; Thu, 22 Jun 2023 15:33:46 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpmciv4.myservices.hosting (Postfix) with ESMTP id DFE6B207E3; Thu, 22 Jun 2023 21:33:44 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 4EEF7800AB; Thu, 22 Jun 2023 21:33:44 +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 YdeHc4naDjKu; Thu, 22 Jun 2023 21:33:44 +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 BFF3C800AA; Thu, 22 Jun 2023 21:33:43 +0200 (CEST) From: Bruno Victal Date: Thu, 22 Jun 2023 20:33:20 +0100 Message-Id: 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=1687462472; a=rsa-sha256; cv=none; b=EWslc8dmwT/ZejirOWSJp3zFXe2XHbR8S3v5JXH/CWttLMpjh83ujqHwlDBtyupwGflEwE iHNZvNDlcMRtKYFJp21cWZ9SQC7Vu4UKZdEQsXOLB6IZOOSteduN0kNQSYslpv1w78l7oe 36X5HL9nf+qyEM7hEpZOYVCjRXt/AbMoKz8P1U/NgBu80iH1ZYZcsVTjw2iYcFUK/e/cnV QwZ3Zx/tBdoUkemtFA9JuK+QTzLmlbtiXEDGfigufDUafrnBzslfG3MMaK5Xe4XcTYKDSd X/TzmeVNUJr8bRpw/cdauRI4uMRmS4bbT3JNb+j1BvcNB8nWGcN5aZPleBZm8Q== 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=1687462472; 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=h3CXSnx6jUEqTAjigLzDwb1HIwIB0+9gO7Rye6Uzbuk=; b=nwiV67HzaZ9m8i8lxe9KMh22ZMWqL4y4mN4U5b5b5u1EihI+9ySWfx4mnb3CrHvnbCbP5m hHt8BQHiYxOofadBuRzGZWQfftWzQa4MYx+KVAFV7zdYACJb36/bno4VdpQ8Zz6qh2fm46 lZabo4a4LMC9LuT8gKz39BPRpbrjeq9Vtcb/F1iVJHKLcjO8CkLVlYwp/eKeeD6mJ1kePb pEkCp9PtSXmo9RYbLRR5FC20914uBJKMMhBmXq0x9L6hSmHwHMiy/atwm0P6xvChwfn8Pl ZXLIPINUuJaodm414NA/TfUCtFwNRqmdZt2ZjG5p369TH4ajEQLtbGqUu+gdKg== 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: -2.35 X-Spam-Score: -2.35 X-Migadu-Queue-Id: 4EF6C28174 X-TUID: mI0D31wNElvr * 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 b16fa5d387..65781fed11 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -545,11 +545,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