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 ms5.migadu.com with LMTPS id cCatAiIgZmKA+gAAbAwnHQ (envelope-from ) for ; Mon, 25 Apr 2022 06:14:26 +0200 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 GIK0ASIgZmLAEwAAG6o9tA (envelope-from ) for ; Mon, 25 Apr 2022 06:14:26 +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 AE2F33971A for ; Mon, 25 Apr 2022 06:14:25 +0200 (CEST) Received: from localhost ([::1]:60764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1niq7E-00018A-Rs for larch@yhetil.org; Mon, 25 Apr 2022 00:14:24 -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 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=1650860065; 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=Lkh025rcMXtx8MxjEHCJ59xolTn1MVHlTzJfOPd/Uiw=; b=SwktruzD4yb5qoWGDeNs/9gAImAcHceVR5xuUFZE+39g2hS0VI2SJmrfMyqRcr5qhDGyLD sgIRn5Qd0CVlcS1udzof5Yl0BG3RWxImUMYhXtvwAaldmG1ByIvVjGMnl04K5qn5aA1neO 2EPJgqQyCXcAXldb92ER8T8NTraooiIDCs41DqSzTSAki8f8YZKJFx0wWSNnIGv/Y8U9Gb BQ0it4gKqV+1iv63XZ79ZgBVp1+iSVXxw1m3hw+jsOj9Gfa9lnPMLXqGltQ3rNtz6vN9lq pT2IKdfcbwFWXVbj1snbvezhSvaVYL1JSEvtOXNToFmK6KjoC1+m7b4QR5o4iw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650860065; a=rsa-sha256; cv=none; b=t4e1cSwi+A/NHrNjraldbbrLXOGXOA2Z0V4bWPsMjPVFdL+UrHl7fYzMJbb2MIFbqi3CzY IxWj5WZzZFN0rjGrXXijVFrwhe4zizc0Wd+mDsfG0fGw6YM7DoMPZKvftrCryYx37rb8od 6KDl9rJrxZE9AQebmL/bwnT7yqGZirtbArHFZBdKgfWfARByOyIZOpan0ace5gkC2heN7u f8p+StcTK6nMoS6w2Hc7x6bYwsf06Hj3vhf7fH9xnRcVxitoiv3wxnFB1/JwY1Robh87Q7 aUrtg8QSsiBLZPnWWd9UxwpFv6Tn667sblBVtC6ImLZm6zzb/t75XHb5yNn3nw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=K11W5hac; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 7.99 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=K11W5hac; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: AE2F33971A X-Spam-Score: 7.99 X-Migadu-Scanner: scn1.migadu.com X-TUID: k19td3UrcBk1 * 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 -- 2.34.0