From patchwork Wed Mar 8 14:01:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Goaziou X-Patchwork-Id: 47791 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 A308816E3C; Wed, 8 Mar 2023 14:02:45 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 A6BB916E17 for ; Wed, 8 Mar 2023 14:02:43 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZuN0-0007Ou-Es; Wed, 08 Mar 2023 09:02:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZuMl-0007Jh-4U for guix-patches@gnu.org; Wed, 08 Mar 2023 09:02:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pZuMk-0005a0-80 for guix-patches@gnu.org; Wed, 08 Mar 2023 09:02:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pZuMk-0004kc-2x for guix-patches@gnu.org; Wed, 08 Mar 2023 09:02:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#62049] [PATCH] gnu: Add texlive-onedown. Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 08 Mar 2023 14:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62049 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62049@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167828411518236 (code B ref -1); Wed, 08 Mar 2023 14:02:01 +0000 Received: (at submit) by debbugs.gnu.org; 8 Mar 2023 14:01:55 +0000 Received: from localhost ([127.0.0.1]:48090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZuMa-0004jx-Gy for submit@debbugs.gnu.org; Wed, 08 Mar 2023 09:01:55 -0500 Received: from lists.gnu.org ([209.51.188.17]:54274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZuMY-0004jl-59 for submit@debbugs.gnu.org; Wed, 08 Mar 2023 09:01:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZuMT-0007Hc-RK for guix-patches@gnu.org; Wed, 08 Mar 2023 09:01:48 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZuMR-0005X1-M4 for guix-patches@gnu.org; Wed, 08 Mar 2023 09:01:45 -0500 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by mail.gandi.net (Postfix) with ESMTPSA id 3DF50240014 for ; Wed, 8 Mar 2023 14:01:38 +0000 (UTC) From: Nicolas Goaziou Date: Wed, 8 Mar 2023 15:01:32 +0100 Message-Id: <20230308140132.14308-1-mail@nicolasgoaziou.fr> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Received-SPF: pass client-ip=217.70.183.193; envelope-from=mail@nicolasgoaziou.fr; helo=relay1-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/tex.scm (texlive-onedown): New variable. --- gnu/packages/tex.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) base-commit: 237b175858873fe051954779bdde28c82ed64063 diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index f178bafcc2..0c4e545edf 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -3508,6 +3508,50 @@ (define-public texlive-oberdiek (define-deprecated-package texlive-latex-oberdiek texlive-oberdiek) +(define-public texlive-onedown + (let ((template + (simple-texlive-package + "texlive-onedown" + (list "doc/latex/onedown/" + "source/latex/onedown/" + "tex/latex/onedown/") + (base32 + "04ih7i4v96ggwk4k1mpfx3dzcpi2siqablv93wryg7dk4cks5wkl")))) + (package + (inherit template) + (outputs '("doc" "out")) + (arguments + (substitute-keyword-arguments (package-arguments template) + ((#:tex-directory _ #t) "latex/onedown") + ((#:phases phases) + #~(modify-phases #$phases + (add-after 'unpack 'chdir + (lambda _ (chdir "source/latex/onedown/"))) + (replace 'copy-files + (lambda* (#:key inputs #:allow-other-keys) + (let ((origin (assoc-ref inputs "source")) + (texmf (string-append #$output "/share/texmf-dist")) + (doc (string-append #$output:doc + "/share/texmf-dist/doc"))) + (for-each + (lambda (directory) + (copy-recursively (string-append origin directory) + (string-append texmf directory))) + '("/source" "/tex/latex/onedown")) + (copy-recursively (string-append origin "/doc") + doc)))))))) + (home-page "https://ctan.org/pkg/onedown") + (synopsis "Typeset bridge diagrams") + (description + "This is a comprehensive package to draw all sorts of bridge diagrams, +including hands, bidding tables, trick tables, and expert quizzes. + +It works for all font sizes. Different fonts for hands, bidding diagrams and +compass are possible. It also provides annotations to card and bidding +diagrams, automated check on consistency of suit and hands, and multilingual +output of bridge terms.") + (license license:lppl1.3+)))) + (define-public texlive-latex-rerunfilecheck (package (inherit (simple-texlive-package