unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#62049] [PATCH] gnu: Add texlive-onedown.
@ 2023-03-08 14:01 Nicolas Goaziou
  2023-03-16 21:45 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2023-03-08 14:01 UTC (permalink / raw)
  To: 62049

* gnu/packages/tex.scm (texlive-onedown): New variable.
---
 gnu/packages/tex.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

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

base-commit: 237b175858873fe051954779bdde28c82ed64063
-- 
2.39.2





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#62049] [PATCH] gnu: Add texlive-onedown.
  2023-03-08 14:01 [bug#62049] [PATCH] gnu: Add texlive-onedown Nicolas Goaziou
@ 2023-03-16 21:45 ` Ludovic Courtès
  2023-03-17  8:24   ` bug#62049: " Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2023-03-16 21:45 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 62049

Hi,

Nicolas Goaziou <mail@nicolasgoaziou.fr> skribis:

> * gnu/packages/tex.scm (texlive-onedown): New variable.

LGTM, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#62049: [PATCH] gnu: Add texlive-onedown.
  2023-03-16 21:45 ` Ludovic Courtès
@ 2023-03-17  8:24   ` Nicolas Goaziou
  0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2023-03-17  8:24 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 62049-done

Hello,

Ludovic Courtès <ludo@gnu.org> writes:


> Nicolas Goaziou <mail@nicolasgoaziou.fr> skribis:
>
>> * gnu/packages/tex.scm (texlive-onedown): New variable.
>
> LGTM, thanks!

Applied. Thank you for the feedback.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-17  8:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-08 14:01 [bug#62049] [PATCH] gnu: Add texlive-onedown Nicolas Goaziou
2023-03-16 21:45 ` Ludovic Courtès
2023-03-17  8:24   ` bug#62049: " Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).