From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iOT3E1WR7GFDHwAAgWs5BA (envelope-from ) for ; Sun, 23 Jan 2022 00:20:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id AM17DFWR7GG3qAAAG6o9tA (envelope-from ) for ; Sun, 23 Jan 2022 00:20:53 +0100 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 B087C3FAED for ; Sun, 23 Jan 2022 00:20:52 +0100 (CET) Received: from localhost ([::1]:43320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nBPgh-0001kZ-Og for larch@yhetil.org; Sat, 22 Jan 2022 18:20:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48826) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBPfv-0001S9-4L for guix-patches@gnu.org; Sat, 22 Jan 2022 18:20:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45276) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nBPfu-0000MN-RA for guix-patches@gnu.org; Sat, 22 Jan 2022 18:20:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nBPfu-0001gt-NW for guix-patches@gnu.org; Sat, 22 Jan 2022 18:20:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53454] [PATCH core-updates v2 2/2] gnu: texlive-psnfss: Fix build; add "doc" output. Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 22 Jan 2022 23:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53454 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53454@debbugs.gnu.org Received: via spool by 53454-submit@debbugs.gnu.org id=B53454.16428935816455 (code B ref 53454); Sat, 22 Jan 2022 23:20:02 +0000 Received: (at 53454) by debbugs.gnu.org; 22 Jan 2022 23:19:41 +0000 Received: from localhost ([127.0.0.1]:38177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBPfY-0001g1-OG for submit@debbugs.gnu.org; Sat, 22 Jan 2022 18:19:41 -0500 Received: from mailout.easymail.ca ([64.68.200.34]:38252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nBPfR-0001fM-Kp for 53454@debbugs.gnu.org; Sat, 22 Jan 2022 18:19:39 -0500 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 6DC5173CA0 for <53454@debbugs.gnu.org>; Sat, 22 Jan 2022 23:19:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo05-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo05-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pmYv7H7Y7eHB for <53454@debbugs.gnu.org>; Sat, 22 Jan 2022 23:19:26 +0000 (UTC) Received: from laptop.simonsouth.net (23-233-96-244.cpe.pppoe.ca [23.233.96.244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 74F867400D for <53454@debbugs.gnu.org>; Sat, 22 Jan 2022 23:19:26 +0000 (UTC) From: Simon South Date: Sat, 22 Jan 2022 18:19:24 -0500 Message-Id: <2bd3449f24d3d85e9bce5e0bdd7c69408a1aa06f.1642892611.git.simon@simonsouth.net> X-Mailer: git-send-email 2.25.2 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642893652; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: 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=CsOZPXFL7EKFsDVjELjDTMTAQGQgQsda+eT/6lMFW+s=; b=deQleDB1OVJQLEN8Ki/PSXQ/htfMs0FLNPRnxaFchnNrZMF7z1nwbP/dlWXSyfwRwrRbX3 l8zCPbaUpR1vJuJNZpNqZAqAW1xkkgql0v2l7IJM1QtEHntt5z6pXBpSokMDnyOVDUm7bn aUrMR9JCKGikJjKS3L/iWkIOuIRmFFgh1ZQkGl7/qbj3aMd3zq2fFBnjd4khqCoBXAMz2m eUNEOj6AQMGWk3lwja8j0gm6F/W3yU+o0KB1TbJruqXAghbcRwFOUY+X4hbIFsDo/Z6rY1 lX+RqqjNnBHGFPCUa8pJg7k7yPPyRYIsknE0JV1khw7LLmmpKdF7dyG0r0UrpA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642893652; a=rsa-sha256; cv=none; b=ZbyooLYoIaYwOJJ+bHwqbKDmXc/Sep/E1qeUB0E2ZuL9YSWJw14FL5H3QnUrN/CSwHnder CA2EqSotKbbHMJVzIeq9KxUU/t0O8HSo28F8MhF9ZY76UULlbk+AHO6mkozfe5G7d8yxPq UsoJQzHIgWhufay8zB5T21iCWIqgNipk+fI4SHi365NsFWCHeEPqdVy6xcOedYy77csr+k Rvhrd/mkMJdUZO7fBPi/d+YmaKn//cnXpMqX8a07dpyIgPt604cpI1JBbLiIWM40gSgH/I 1usRu+eVZbJvR7Bg85F3Bwhy3FydRYeKOXHkwg8RVqrjdL6peBSQ3oQ6xqlmlg== 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" X-Migadu-Spam-Score: -2.33 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-Queue-Id: B087C3FAED X-Spam-Score: -2.33 X-Migadu-Scanner: scn1.migadu.com X-TUID: rhbwDQ3gt0ls * gnu/packages/tex.scm (texlive-psnfss)[outputs]: Add "doc". [arguments]<#:phases>: Add "chdir-back", "clean-installed-files" and "move-doc-files" phases to ensure files are correctly arranged in package's outputs, matching installation instructions in README. --- gnu/packages/tex.scm | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 9649b1361b..5ac4012e36 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -20,6 +20,7 @@ ;;; Copyright © 2021 Ivan Gankevich ;;; Copyright © 2021 Julien Lepiller ;;; Copyright © 2021 Thiago Jung Bauermann +;;; Copyright © 2022 Simon South ;;; ;;; This file is part of GNU Guix. ;;; @@ -4089,6 +4090,7 @@ (define-public texlive-psnfss "11f14dzhwsy4pli21acccip43d36nf3pac33ihjffnps1i2mhqkd")))) (package (inherit template) + (outputs '("out" "doc")) (arguments (substitute-keyword-arguments (package-arguments template) ((#:tex-directory _ #t) @@ -4097,7 +4099,35 @@ (define-public texlive-psnfss `(modify-phases ,phases (add-after 'unpack 'chdir (lambda _ - (chdir "source/latex/psnfss"))))))) + (chdir "source/latex/psnfss"))) + (add-after 'install 'chdir-back + (lambda _ + (chdir "../../.."))) + (add-after 'chdir-back 'clean-installed-files + (lambda _ + ;; Remove the generated .sty files from the build area as + ;; these were already copied to the default output in the + ;; "install" phase. + (delete-file-recursively "source/latex/psnfss/build"))) + (add-after 'clean-installed-files 'move-doc-files + (lambda* (#:key outputs #:allow-other-keys) + (let* ((doc (assoc-ref outputs "doc")) + (doc-root (string-append doc "/share/texmf-dist")) + (doc-path "doc/latex/psnfss") + (source-path "source/latex/psnfss")) + ;; Move the PDF documentation to the "doc" output. + (let* ((file-name "psnfss2e.pdf") + (source (string-append doc-path "/" file-name)) + (target-dir (string-append doc-root "/" doc-path))) + (mkdir-p target-dir) + (copy-file source + (string-append target-dir "/" file-name)) + (delete-file source)) + + ;; Keep the remaining files together with the package's + ;; source, as per the installation instructions. + (copy-recursively doc-path source-path) + (delete-file-recursively "doc")))))))) (native-inputs (list texlive-cm)) (home-page "https://www.ctan.org/pkg/psnfss") -- 2.34.0