guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/19: gnu: texlive-generic-bigintcalc: Rename to texlive-bigintcalc.


From: guix-commits
Subject: 02/19: gnu: texlive-generic-bigintcalc: Rename to texlive-bigintcalc.
Date: Sun, 6 Mar 2022 06:22:51 -0500 (EST)

ngz pushed a commit to branch core-updates
in repository guix.

commit ca9527845fdf48b393ea76f936860c0beadc7d15
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sun Mar 6 10:19:27 2022 +0100

    gnu: texlive-generic-bigintcalc: Rename to texlive-bigintcalc.
    
    * gnu/packages/tex.scm (texlive-bigintcalc): New variable.
    (texlive-generic-bigintcalc): Deprecated alias.
    (texlive-generic-bitset):
    (texlive-generic-uniquecounter): Use new name.
---
 gnu/packages/tex.scm | 62 ++++++++++++++++++++++++++++++++++++----------------
 1 file changed, 43 insertions(+), 19 deletions(-)

diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 0da2e8550b..d3b8c2eec8 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -8082,23 +8082,47 @@ be used either with LaTeX or with plain TeX.")
 
 (define-deprecated-package texlive-generic-atbegshi texlive-atbegshi)
 
-(define-public texlive-generic-bigintcalc
-  (package
-    (inherit (simple-texlive-package
-              "texlive-generic-bigintcalc"
-              '("/doc/latex/bigintcalc/README.md"
-                "/tex/generic/bigintcalc/")
-              (base32
-               "19grk4p1dh566hgpzhnjyjnrw57hpjijcpr7ci401n9jszcc1xkz")
-              #:trivial? #t))
-    (propagated-inputs
-     (list texlive-pdftexcmds))
-    (home-page "https://www.ctan.org/pkg/bigintcalc";)
-    (synopsis "Integer calculations on very large numbers")
-    (description
-     "This package provides expandable arithmetic operations with big
+(define-public texlive-bigintcalc
+  (let ((template (simple-texlive-package
+                   "texlive-bigintcalc"
+                   (list "doc/latex/bigintcalc/"
+                         "source/latex/bigintcalc/"
+                         "tex/generic/bigintcalc/")
+                   (base32
+                    "1cyv4mcvx83ab782l6h2f86a63ipm845r7hv1m6f1z2336vy7rc5"))))
+    (package
+      (inherit template)
+      (outputs '("out" "doc"))
+      (arguments
+       (substitute-keyword-arguments (package-arguments template)
+         ((#:tex-directory _ '())
+          "generic/bigintcalc")
+         ((#:build-targets _ '())
+          #~(list "bigintcalc.dtx"))
+         ((#:phases phases)
+          #~(modify-phases #$phases
+              (add-after 'unpack 'chdir
+                (lambda _
+                  (chdir "source/latex/bigintcalc")))
+              (replace 'copy-files
+                (lambda* (#:key inputs #:allow-other-keys)
+                  (let ((origin (assoc-ref inputs "source"))
+                        (source (string-append #$output
+                                               "/share/texmf-dist/source"))
+                        (doc (string-append #$output:doc
+                                            "/share/texmf-dist/doc")))
+                    (copy-recursively (string-append origin "/source") source)
+                    (copy-recursively (string-append origin "/doc") doc))))))))
+      (propagated-inputs
+       (list texlive-pdftexcmds))
+      (home-page "https://www.ctan.org/pkg/bigintcalc";)
+      (synopsis "Integer calculations on very large numbers")
+      (description
+       "This package provides expandable arithmetic operations with big
 integers that can exceed TeX's number limits.")
-    (license license:lppl1.3c+)))
+      (license license:lppl1.3c+))))
+
+(define-deprecated-package texlive-generic-bigintcalc texlive-bigintcalc)
 
 (define-public texlive-generic-bitset
   (package
@@ -8110,8 +8134,8 @@ integers that can exceed TeX's number limits.")
                "0inj6qpzizvsbxdfsaijnl4iq976kyrnchnm3gc1kc2w389zrn1l")
               #:trivial? #t))
     (propagated-inputs
-     (list texlive-generic-infwarerr texlive-generic-intcalc
-           texlive-generic-bigintcalc))
+     (list texlive-bigintcalc texlive-generic-infwarerr
+           texlive-generic-intcalc))
     (home-page "https://www.ctan.org/pkg/bitset";)
     (synopsis "Handle bit-vector datatype")
     (description
@@ -8297,7 +8321,7 @@ using TeX or e-TeX.")
                "1bjh8vwiqlkmjqndnh4xp116524x4m3hdcyq2s231jiqy8il8dcc")
               #:trivial? #t))
     (propagated-inputs
-     (list texlive-generic-bigintcalc texlive-generic-infwarerr))
+     (list texlive-bigintcalc texlive-generic-infwarerr))
     (home-page "https://www.ctan.org/pkg/uniquecounter";)
     (synopsis "Unlimited unique counter")
     (description



reply via email to

[Prev in Thread] Current Thread [Next in Thread]