From patchwork Mon Apr 25 03:55:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 38800 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8C0E327BBEA; Mon, 25 Apr 2022 05:14:30 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 0340027BBE9 for ; Mon, 25 Apr 2022 05:14:30 +0100 (BST) Received: from localhost ([::1]:60764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1niq7J-00018A-5H for patchwork@mira.cbaines.net; Mon, 25 Apr 2022 00:14:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nipui-0007lv-CL for guix-patches@gnu.org; Mon, 25 Apr 2022 00:01:33 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38604) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nipuN-0001Me-NV for guix-patches@gnu.org; Mon, 25 Apr 2022 00:01:17 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nipuN-0007y0-KC for guix-patches@gnu.org; Mon, 25 Apr 2022 00:01:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55104] [PATCH 014/232] gnu: Add texlive-metalogo. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Apr 2022 04:01:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55104 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55104@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 55104-submit@debbugs.gnu.org id=B55104.165085923530263 (code B ref 55104); Mon, 25 Apr 2022 04:01:07 +0000 Received: (at 55104) by debbugs.gnu.org; 25 Apr 2022 04:00:35 +0000 Received: from localhost ([127.0.0.1]:60671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1niptq-0007rq-0s for submit@debbugs.gnu.org; Mon, 25 Apr 2022 00:00:34 -0400 Received: from mail-qv1-f44.google.com ([209.85.219.44]:42741) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1niptE-0007hj-NM for 55104@debbugs.gnu.org; Sun, 24 Apr 2022 23:59:57 -0400 Received: by mail-qv1-f44.google.com with SMTP id iy15so1892957qvb.9 for <55104@debbugs.gnu.org>; Sun, 24 Apr 2022 20:59:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Lkh025rcMXtx8MxjEHCJ59xolTn1MVHlTzJfOPd/Uiw=; b=K11W5haczBg0NiyvLnpcXVA0KoIkFngf+f7LHWIkSVEWkCu/i+goWFAoUGqFxe+jre 3ReDBMBXiFC3oGKWpAE95Zuxg87LVIQEwSo3PK79+5bBf9sEhEsS0GdojNUcC23ojv01 cuD9YxmsdbxulFFW3ywqacTA9qfc0L/Wq1W1ltk/ArdmIxQgjVgg3oUiywx4LYEWs4Ka w8CSBiQupuBZPjPrZHmXXnCsiGUL0J33pxetkZBt5K24yJeag46bZ0VSExkBi7+b5dD4 uEu3/hBFyQ0rOQ/+GdLfNbC4enxAmCcLCg3PXmzuIFuTb48f8ZrBXbATGF01WIyQFckT ETaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Lkh025rcMXtx8MxjEHCJ59xolTn1MVHlTzJfOPd/Uiw=; b=vovBovZRcMEZEVZo6txA/2uwnzMq6Ti46RV97hCGhNQPH7iVUAOYDd3ZUB4n5+31G7 l2FXd0pjJ36bTB4zpEp0S8rGy6gtY0NGbxxjhTA+EAGB1VF4IhxNY6ZwbK3CpPMEQr3s iIy/BPLoY9JcuhVJxV7swXM5afINHj+IyYDFEUVIEBpGY4MOEvMTThzUmjJuca3/wznI qU3DpjWSR6WHBsO925CXTBKD3oAXrwBLEnfdBbX8PQb1VQf4dlMU8YcclWotE9lpoDnF ienBLF+8ahXxm7XTECDS4TSScAGnPRa+HrG+nExDikssYVzqPAEMvjuHpld3p9YsDi5B /KmA== X-Gm-Message-State: AOAM533D9XXhQcXyKo3AqcXtmJmJdLvGHLdY9HtBRVRVpucxPe6u7wmh KeQzO4m/3g9RszWzbH3Ug915w3LPywNnRQ== X-Google-Smtp-Source: ABdhPJz4LvgV0Ssqsy2tX8gyHp8HjtFHJ0+Y2hMJJEedRQnWszSebJUL2nt2ij6WC/KuHnzEMASTcQ== X-Received: by 2002:a05:6214:1c46:b0:456:3706:2618 with SMTP id if6-20020a0562141c4600b0045637062618mr2448760qvb.44.1650859191086; Sun, 24 Apr 2022 20:59:51 -0700 (PDT) Received: from localhost.localdomain (dsl-150-232.b2b2c.ca. [66.158.150.232]) by smtp.gmail.com with ESMTPSA id w82-20020a376255000000b0069ee3f0ae63sm4478142qkb.45.2022.04.24.20.59.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Apr 2022 20:59:50 -0700 (PDT) From: Maxim Cournoyer Date: Sun, 24 Apr 2022 23:55:40 -0400 Message-Id: <20220425035918.25683-14-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220425035918.25683-1-maxim.cournoyer@gmail.com> References: <20220425035918.25683-1-maxim.cournoyer@gmail.com> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/tex.scm (texlive-metalogo): New variable. --- gnu/packages/tex.scm | 80 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index c3129ebd60..dea153643d 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -5417,6 +5417,86 @@ (define-public texlive-latex-mdwtools array environments; verbatim handling; and syntax diagrams.") (license license:gpl3+))) +(define-public texlive-metalogo + (package + (inherit (simple-texlive-package + "texlive-metalogo" + (list "doc/latex/metalogo/README" + ;; These PDFs are apparently used as graphic files, not + ;; built. + "doc/latex/metalogo/TeXoutline.pdf" + "doc/latex/metalogo/eLaToutline.pdf" + "source/latex/metalogo/metalogo.dtx" + "source/latex/metalogo/metalogo.ins") + (base32 "0v1jwp8xhzwn0a4apiyya17s4r1kpn6q9nmv38jj1wwdvgia0jpi"))) + (outputs '("out" "doc")) + (arguments + (list + #:tex-directory "latex/metalogo" + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'chdir + (lambda _ + (setenv "ROOT_DIR" (getcwd)) + (chdir "source/latex/metalogo"))) + (add-after 'chdir 'patch-metalogo.dtx + (lambda _ + (substitute* "metalogo.dtx" + ;; Prevent embedding a build time date, for reproducibility. + (("^% \\\\date.*") "") + ;; These fonts are not free. + (("^\\\\setmainfont.*") "") + (("^\\\\DeclareSymbolFont\\{SabonMaths}.*") "") + (("^\\\\AtBeginDocument\\{.*") "") + ((".*\\\\expandafter.*\\\\symSabonMaths.*") "") + (("^\\\\setsansfont.*MgOpen Cosmetica.*") "") + (("^\\\\setmonofont.*Consolas.*") "") + ;; The 'stix' texlive font package has been obsoleted by + ;; stix2. + (("^\\\\newfontfamily\\\\stixgeneral\\{STIXGeneral}") + "\\newfontfamily\\stixgeneral{STIX Two Text}")))) + (add-after 'build 'build-doc + (lambda* (#:key outputs tex-directory #:allow-other-keys) + (define doc-sources (string-append (getenv "ROOT_DIR") + "/doc/latex/metalogo")) + (copy-file "metalogo.dtx" "build/metalogo.dtx") + (mkdir "build/graphics") + (copy-file (string-append doc-sources "/TeXoutline.pdf") + "build/graphics/TeXoutline.pdf") + (copy-file (string-append doc-sources "/eLaToutline.pdf") + "build/graphics/eLaToutline.pdf") + (chdir "build") + (invoke "xelatex" "metalogo.dtx"))) ;generate metalogo.pdf + (replace 'install + (lambda* (#:key outputs tex-directory #:allow-other-keys) + (let ((doc (string-append (assoc-ref outputs "doc") + "/share/doc/" tex-directory)) + (out (string-append #$output "/share/texmf-dist/tex/" + tex-directory))) + (install-file "metalogo.pdf" doc) + (install-file (car (find-files (getenv "ROOT_DIR") "README")) + doc) + (install-file "metalogo.sty" out))))))) + (native-inputs (list fontconfig ;for XDG_DATA_DIRS, to locate OTF fonts + texlive-booktabs + texlive-cm + texlive-fontspec + texlive-generic-iftex + texlive-latex-base + texlive-latex-eukdate + texlive-latex-graphics + texlive-latex-multirow + texlive-lm ;for lmroman10-regular + texlive-stix2-otf)) + (propagated-inputs (list texlive-fontspec texlive-generic-iftex + texlive-latex-graphics)) + (home-page "https://ctan.org/pkg/metalogo") + (synopsis "Extended TeX logo macros") + (description "This package exposes spacing parameters for various TeX +logos to the end user, to optimise the logos for different fonts. It is +written especially for XeLaTeX users.") + (license license:lppl1.3c+))) + (define-public texlive-paralist (package (inherit (simple-texlive-package