guix-commits
[Top][All Lists]
Advanced

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

03/19: gnu: texlive-generic-bitset: Rename to texlive-bitset.


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

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

commit 54182753982186d49d6ed8d7118ce3cee47166e3
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sun Mar 6 10:21:30 2022 +0100

    gnu: texlive-generic-bitset: Rename to texlive-bitset.
    
    * gnu/packages/tex.scm (texlive-bitset): Renamed from 
texlive-generic-bitset.
    (texlive-generic-bitset): Define deprecated alias.
    (texlive-hyperref): Use new name.
---
 gnu/packages/tex.scm | 59 ++++++++++++++++++++++++++++++++++++----------------
 1 file changed, 41 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index d3b8c2eec8..3ae2b6f102 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -3457,7 +3457,7 @@ XML, using UTF-8 or a suitable 8-bit encoding.")
       (propagated-inputs
        (list texlive-atveryend
              texlive-atbegshi
-             texlive-generic-bitset
+             texlive-bitset
              texlive-generic-etexcmds
              texlive-generic-gettitlestring
              texlive-iftex
@@ -8124,25 +8124,48 @@ integers that can exceed TeX's number limits.")
 
 (define-deprecated-package texlive-generic-bigintcalc texlive-bigintcalc)
 
-(define-public texlive-generic-bitset
-  (package
-    (inherit (simple-texlive-package
-              "texlive-generic-bitset"
-              '("/doc/latex/bitset/README.md"
-                "/tex/generic/bitset/")
-              (base32
-               "0inj6qpzizvsbxdfsaijnl4iq976kyrnchnm3gc1kc2w389zrn1l")
-              #:trivial? #t))
-    (propagated-inputs
-     (list texlive-bigintcalc texlive-generic-infwarerr
-           texlive-generic-intcalc))
-    (home-page "https://www.ctan.org/pkg/bitset";)
-    (synopsis "Handle bit-vector datatype")
-    (description
-     "This package defines and implements the data type bit set, a vector
+(define-public texlive-bitset
+  (let ((template (simple-texlive-package
+                   "texlive-bitset"
+                   (list "doc/latex/bitset/"
+                         "source/latex/bitset/"
+                         "tex/generic/bitset/")
+                   (base32
+                    "1q7vk5gr5a4vaa3l20j178cg2q7a99rxdiyxhzpx9a6lfqfkjddz"))))
+    (package
+      (inherit template)
+      (outputs '("out" "doc"))
+      (arguments
+       (substitute-keyword-arguments (package-arguments template)
+         ((#:tex-directory _ '())
+          "generic/bitset")
+         ((#:build-targets _ '())
+          #~(list "bitset.dtx"))
+         ((#:phases phases)
+          #~(modify-phases #$phases
+              (add-after 'unpack 'chdir
+                (lambda _
+                  (chdir "source/latex/bitset")))
+              (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-bigintcalc texlive-generic-infwarerr 
texlive-generic-intcalc))
+      (home-page "https://www.ctan.org/pkg/bitset";)
+      (synopsis "Handle bit-vector datatype")
+      (description
+       "This package defines and implements the data type bit set, a vector
 of bits.  The size of the vector may grow dynamically.  Individual bits
 can be manipulated.")
-    (license license:lppl1.3c+)))
+      (license license:lppl1.3c+))))
+
+(define-deprecated-package texlive-generic-bitset texlive-bitset)
 
 (define-public texlive-generic-etexcmds
   (package



reply via email to

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