From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AGPYN0GXamL6wAAAbAwnHQ (envelope-from ) for ; Thu, 28 Apr 2022 15:31:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id UB/1NkGXamJBrAAAG6o9tA (envelope-from ) for ; Thu, 28 Apr 2022 15:31:45 +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 7D904C989 for ; Thu, 28 Apr 2022 15:31:45 +0200 (CEST) Received: from localhost ([::1]:35488 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nk4FE-0001Rk-Ka for larch@yhetil.org; Thu, 28 Apr 2022 09:31:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nk4Ea-0000hv-BX for guix-patches@gnu.org; Thu, 28 Apr 2022 09:31:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51905) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nk4EY-0000NW-S7 for guix-patches@gnu.org; Thu, 28 Apr 2022 09:31:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nk4EY-0004tB-Og for guix-patches@gnu.org; Thu, 28 Apr 2022 09:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49607] [PATCH v3 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, 28 Apr 2022 13:31:02 +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.165115264118736 (code B ref 49607); Thu, 28 Apr 2022 13:31:02 +0000 Received: (at 49607) by debbugs.gnu.org; 28 Apr 2022 13:30:41 +0000 Received: from localhost ([127.0.0.1]:45798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nk4EC-0004s5-7R for submit@debbugs.gnu.org; Thu, 28 Apr 2022 09:30:40 -0400 Received: from mail-ej1-f54.google.com ([209.85.218.54]:38458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nk4E9-0004rs-ON for 49607@debbugs.gnu.org; Thu, 28 Apr 2022 09:30:38 -0400 Received: by mail-ej1-f54.google.com with SMTP id r13so9603447ejd.5 for <49607@debbugs.gnu.org>; Thu, 28 Apr 2022 06:30:37 -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=aT4qLJdXyHrZftwvCl4zePNz3uvB7nJJ4yk2MCA7LlQ=; b=ZCzia3LrcbIFG8DM8AUVFov3SuGxBphA0BFbIluaB7GmmcO6pAIAhpJioeA202zwoE LxbYgN8j7OuwXyW2GTVdLUAtYq3puaUg08/j7e0Ha6MqMvuHscXQW+qndANSNswyqaAJ ISPrc31hWCMU+zThxzkgRp1s8f8rn0nrmd2CagN8cqT5xE4IDJus7w0zDuo8NbCcbN1E 0lF9bqA45ZDwLcgPc1vdfwe29NCXpM+rCuAcRezcKZ4TdfMjCv9671OO31YExN8LxfNE EU0+OieYh+6RcO1GHNEuHSKHs4zq+kxW3v3bN7J0DgPKSlCsicQAw5wW6cSz548WqoMG J9fw== 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=aT4qLJdXyHrZftwvCl4zePNz3uvB7nJJ4yk2MCA7LlQ=; b=1++Y2hTGckGY4AEUXeoPzk3QskjonOKryx9+OG57bq1CgUvyU01WDG9ZbfagUozLs5 sF8vRKtMig6A/dJab5FTlaT0uHZRbIRfVilIVUF3i9vjfUnoRh/1mDw7PKBzUQXCd3d7 7y3qx+h51LXb2vVjEX7yDYdRY1IZL07BFj31NFw5CF22eAN6zxN8OGz3EzNWJEBmSEDV F/O762V5tjIt3TIP/bov06TGw+w5HxN56k3dhgGEiA4wUsLAB3PORkBGwCdKnmTjDl5q CoZFnbnLEZS/O1lRrLbzrStmzlIINH5dhuzoHhT+0KTRBojJ8W/NuP/ZAyNnqKY9XEnB DM5g== X-Gm-Message-State: AOAM53111pZQU793AInonJB17yea1Ctsu3BhZKdYaWcjgnLEGkTJotZC M50B0sU72VhS2zdD1gr03GNjGVlzFWw= X-Google-Smtp-Source: ABdhPJz3DludAPm9TPoRSojfUDGuT40OutijS6LJw+GLAMXcf2NfkFFmpn2hgMGQ6Go/XNqIvaBmgA== X-Received: by 2002:a17:907:8a23:b0:6f0:14b6:33d9 with SMTP id sc35-20020a1709078a2300b006f014b633d9mr32295955ejc.559.1651152632010; Thu, 28 Apr 2022 06:30:32 -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 d19-20020a170906c21300b006e7f0730353sm8365993ejz.101.2022.04.28.06.30.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Apr 2022 06:30:31 -0700 (PDT) From: Attila Lendvai Date: Thu, 28 Apr 2022 15:28:04 +0200 Message-Id: <20220428132801.8629-3-attila@lendvai.name> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220428132801.8629-1-attila@lendvai.name> References: <20220428132801.8629-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=1651152705; 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=aT4qLJdXyHrZftwvCl4zePNz3uvB7nJJ4yk2MCA7LlQ=; b=lIyfaOX6QO+PSRFY7As9eWSi9M9XfsfjpREZEL7X2PemSVYID+2L3haZpaqUnP89K73b9q ADquU32v52MzAQTjO9LHhBgjRjSP2ITd97DtsiMpBTZM7XzSSMatZ4xDjtMJNaLOwMYLn9 ZWQ+tAK7RFmhVVVA6LScvqUCuWRjif7zxIR2L1mZzKFvbf8p84V6oi/vwF1y80DA4vCObk JieDcpOfcXQCnBCIcsocGY+aQoQbeGxdnBRjA5zsUSwRpJTrHajOgyDKmT3pOnNEXlUkHR 0RaWiJ5ptSdqYJ8fexTUaO8K2zbA2lGJINkFZ3nPvqP/0hA53tat34M9Vf6+Mw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651152705; a=rsa-sha256; cv=none; b=h7QB8eYVf5OLTPtJpBOx75lRlvEj01YxVlaRrpLVjAK07/d2V10hRkS8P1WtyprVfPhcF4 CbNmbUTmBAsSNyI6ncdQIY/zrFd2VxcdozjEXg+ipIsRfLrGq7PagghpO79Awc3Bc1iiL/ OArMKeI+m4G2VqGbUuXJ7ENi0o/4sWptRu4Jsfwr/TME/pAL+Gm6q4a22VQMoX9vjS03/S Nj7JazbG1b0VPn0Cm/JtndWtsVnwFuzyJaDFN9wGcz/sU2HyYxTX9dgMdkVhl0uj9eA/3r riRyq+Cbfhq8ieXoS1itGct3W4lbjzgG2g7vLDJ/3Fr0sTtVjrJWkpicXW+nDQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ZCzia3Lr; 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: 1.50 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=ZCzia3Lr; 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: 7D904C989 X-Spam-Score: 1.50 X-Migadu-Scanner: scn0.migadu.com X-TUID: 72r8TclBhbMK * 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 1488996b6a..e03ca3bfbf 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) @@ -249,11 +251,17 @@ (define* (make-idris-package source idris-version chez-scheme bootstrap-idris) 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? @@ -276,6 +284,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