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 ms0.migadu.com with LMTPS id qOiYF/kRWGIYPAEAgWs5BA (envelope-from ) for ; Thu, 14 Apr 2022 14:22:17 +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 0ModFfkRWGKZEAAA9RJhRA (envelope-from ) for ; Thu, 14 Apr 2022 14:22:17 +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 F3854817A for ; Thu, 14 Apr 2022 14:22:15 +0200 (CEST) Received: from localhost ([::1]:53996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1neyUJ-0002cD-7S for larch@yhetil.org; Thu, 14 Apr 2022 08:22:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1neyU7-0002KC-JQ for guix-patches@gnu.org; Thu, 14 Apr 2022 08:22:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33402) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1neyU7-0005TR-Af for guix-patches@gnu.org; Thu, 14 Apr 2022 08:22:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1neyU7-0001MS-6p for guix-patches@gnu.org; Thu, 14 Apr 2022 08:22:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49607] [PATCH 3/3] gnu: idris: Add doc output and build the html documentation. Resent-From: Attila Lendvai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 14 Apr 2022 12:22:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49607 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49607@debbugs.gnu.org Cc: Attila Lendvai Received: via spool by 49607-submit@debbugs.gnu.org id=B49607.16499388875170 (code B ref 49607); Thu, 14 Apr 2022 12:22:03 +0000 Received: (at 49607) by debbugs.gnu.org; 14 Apr 2022 12:21:27 +0000 Received: from localhost ([127.0.0.1]:55530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1neyTX-0001LF-D2 for submit@debbugs.gnu.org; Thu, 14 Apr 2022 08:21:27 -0400 Received: from mail-ej1-f43.google.com ([209.85.218.43]:34782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1neyTP-0001Ko-B7 for 49607@debbugs.gnu.org; Thu, 14 Apr 2022 08:21:19 -0400 Received: by mail-ej1-f43.google.com with SMTP id ks6so9725281ejb.1 for <49607@debbugs.gnu.org>; Thu, 14 Apr 2022 05:21:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GwHoW2ZE3/RtBK744gIM7HPJxkEg6js/OAnh1xrZkEc=; b=IaNjzmsBYT0k/m/GVCvUbJgcSPdrYROja0Zoh7fLN9fBOAEaH3McklYD8VYTbwPIzd /JfyehcNGYhmv3dmQF0CtQF6vvFNmIGSUefI0yEymiNZ0kRjRGuRQzAdB98rCYDj93HZ ibEIPiXfz41qX7a0h3N242/AxxLcq7KPcj3gXeqXf67/LrduI2xVMDX2jOI5ptFJKnUr JPk6LM61o+D8GI9L7RF7Mi3OVER6vK+gUndjCUcE1VdRu8FBXF817VOvN+LMPtOUXNI8 qyby4D8gFpEJF3Pown/kGvzR0PqcRYA4721+FOFYcj7RLtykRoYlK7P6fa88bq7CRzkE Odew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=GwHoW2ZE3/RtBK744gIM7HPJxkEg6js/OAnh1xrZkEc=; b=VxFK6rwuAUlyqD0EMK1/DGC3qdUC94unoNTPUmtZT9tG34BELQ4k5k9WcOUEsWIVCQ QxtzSSzf1yLftpg8FXSFarPO8Tg4MDiQGjJmJjaWOwOKz0bRJg1/nbhGeUslWWIVK45/ hXRF8OwvRGbm74Af/PwHi3x6Rs6KfVvNo0JZotR23E3SA7AbZZhmv9nW2I/8CCwSG0YJ PdxhCPOCF4mQyoXRMq/uzRPNxhv1isZV0BT7A2a6ftDe8/wW8ppIPKhWSB6XlRkIljlR PABMnMdoDPNU/kV6cYzy9YIgFyUkQLgGBlySe/+oLhkNqq0C9CE/bHss3NmhZAem7HDy Q5ww== X-Gm-Message-State: AOAM5311e44gCWzupEYlv/qBpsooE7L7+XnOZ1oUIksEsbgiP95DSRXv HeBtfMp0ND21G8r5gMRkVWqFx6xQw34= X-Google-Smtp-Source: ABdhPJzETq+NE+3KEp3pXkFLmOQDJqQqn9RK6X/vJv9qTDpl+Wep2gIGmRl4RunL3gLhUmHxrlXWtg== X-Received: by 2002:a17:906:9b85:b0:6db:ab80:7924 with SMTP id dd5-20020a1709069b8500b006dbab807924mr2135954ejc.160.1649938873798; Thu, 14 Apr 2022 05:21:13 -0700 (PDT) Received: from lelap.local (catv-89-132-245-188.catv.fixed.vodafone.hu. [89.132.245.188]) by smtp.gmail.com with ESMTPSA id u3-20020a17090657c300b006d01de78926sm582042ejr.22.2022.04.14.05.21.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Apr 2022 05:21:13 -0700 (PDT) From: Attila Lendvai Date: Thu, 14 Apr 2022 14:16:13 +0200 Message-Id: <20220414121612.9815-3-attila@lendvai.name> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220414121612.9815-1-attila@lendvai.name> References: <20220414121612.9815-1-attila@lendvai.name> 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649938937; 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:dkim-signature; bh=GwHoW2ZE3/RtBK744gIM7HPJxkEg6js/OAnh1xrZkEc=; b=f6C6y/QUPa6JbSnHHNCotjYBsUy9I2cr2/Wipxo+9XL+g/bPDr2O7Jojqr8rKGOKGaQMwj Ctt+Muu6PNsc+KJRKjrHokAIY24fXawyiw/CADo6LmzawO+Sl/+L1mJYWA+wndePqER9Kh RM2XC+X8Ii8PHu//k3rb64O3zjqYrXMO6RxtJd6udnr6cMJkFVWkHK1vwZQXeKE9hEW6xt DQ4xkArDPBPBKZwFQ634o+icumRQJ2WamgfFCB+MhI47qV/seyYlkZkpsfMFI6XCZmbin4 e8uGZpVc5IaeckKXxsywhi+i7akGwOqHVqBGmJK9EZXydLBnXJYVF+xrBVtXZw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649938937; a=rsa-sha256; cv=none; b=AkA/oQQ3efIJa0FUYvibDfEWGiq240Wk5kxzPCpmWFBFSztZZXXrfYpuufrvF/iH+VX0AO Q8wvi4fgr0RJY+x9IgHdLFz1Jqrl8abZVxR5UoKijxT2cdglIG3fi1BQLwLGW3ok1/1+0x rtR2YOu4h1HjH8eEHl1psJh7LLfgT7aKiFuYArS/xYu3ZwQso+O0jkxaD+TnnhT57qdHHx MaM6uGSgbZBw/Nr0+u34ezpy8jP8PFEwTdMSkDEmAwHnuBvfuTEFM57Pj7h+8KJzI0NS4G avhhEkQ+Bg1ainGrNWhQgbSExYjvFFnF1GIZPqh9gXXTEsfU99WgIWBQngafhA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=IaNjzmsB; 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-Spam-Score: 2.15 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=IaNjzmsB; 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-Queue-Id: F3854817A X-Spam-Score: 2.15 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8GaD7e5nNhZc * gnu/packages/idris.scm (make-idris-package): Build the html docs and install it into the doc output. --- gnu/packages/idris.scm | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/gnu/packages/idris.scm b/gnu/packages/idris.scm index 28e918a486..b9b309d6d5 100644 --- a/gnu/packages/idris.scm +++ b/gnu/packages/idris.scm @@ -50,7 +50,9 @@ (define-module (gnu packages idris) #:use-module (gnu packages ncurses) #:use-module (gnu packages node) #:use-module (gnu packages perl) + #:use-module (gnu packages python) #:use-module (gnu packages racket) + #:use-module (gnu packages sphinx) #:use-module (gnu packages version-control) #:use-module (guix build-system gnu) #:use-module (guix build-system haskell) @@ -248,11 +250,17 @@ (define* (make-idris-package source idris-version bootstrap-idris) clang-toolchain-12 ; older clang-toolchain versions don't have a bin/cc coreutils which git - node ; only for the tests - racket ; only for the tests - sed)) + sed + ;; Only for the tests + node + racket + ;; Only for the docs + python-minimal + python-sphinx + python-sphinx-rtd-theme)) (inputs (list bash-minimal chez-scheme gmp)) + (outputs '("out" "doc")) (arguments (list #:tests? tests? @@ -275,6 +283,15 @@ (define* (make-idris-package source idris-version (delete 'bootstrap) (delete 'configure) (delete 'check) ; check must happen after install and wrap-program + (add-before 'build 'build-doc + (lambda* (#:key outputs #:allow-other-keys) + (invoke "make" "--directory" "docs/" "html"))) + (add-after 'build-doc 'install-doc + (lambda* (#:key outputs #:allow-other-keys) + (let ((doc (assoc-ref outputs "doc"))) + (copy-recursively "docs/build/html" + (string-append doc "/share/doc/" + ,name "-" ,version))))) (add-after 'unpack 'patch-paths (lambda* (#:key inputs #:allow-other-keys) (let ((files-to-patch (filter file-exists? -- 2.35.1