[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/15: gnu: texlive-latex-totcount: Replace with texlive-totcount.
From: |
guix-commits |
Subject: |
05/15: gnu: texlive-latex-totcount: Replace with texlive-totcount. |
Date: |
Tue, 18 Apr 2023 09:21:20 -0400 (EDT) |
ngz pushed a commit to branch master
in repository guix.
commit c297a67092ac85baecb09b83afb6fbec14fc096c
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Fri Mar 31 17:16:10 2023 +0200
gnu: texlive-latex-totcount: Replace with texlive-totcount.
* gnu/packages/tex.scm (texlive-totcount): New variable.
(texlive-latex-totcount): Deprecate package.
---
gnu/packages/tex.scm | 53 ++++++++++++++++++++++++++++++++++++++--------------
1 file changed, 39 insertions(+), 14 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 4fefb3c944..c7699a6b7c 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -12651,22 +12651,47 @@ are provided to:
@end itemize")
(license license:lppl1.0+)))
-(define-public texlive-latex-totcount
- (package
- (inherit (simple-texlive-package
- "texlive-latex-totcount"
- (list "doc/latex/totcount/"
- "tex/latex/totcount/")
- (base32 "0z4mijyk3z7555q8da41aiji602plis5z261z4rr1fl8sndhnhn1")
- #:trivial? #t))
- (build-system texlive-build-system)
- (home-page "https://ctan.org/pkg/totcount")
- (synopsis "Find the last value of a counter")
- (description
- "This package records the value that was last set, for any counter of
+(define-public texlive-totcount
+ (let ((template (simple-texlive-package
+ "texlive-totcount"
+ (list "doc/latex/totcount/"
+ "source/latex/totcount/"
+ "tex/latex/totcount/")
+ (base32
+ "1rj9ncip5h2cbdljjqwxqsg14pb4mimzhz290q872n32w7rxkp28"))))
+ (package
+ (inherit template)
+ (outputs '("out" "doc"))
+ (build-system texlive-build-system)
+ (arguments
+ (substitute-keyword-arguments (package-arguments template)
+ ((#:tex-directory _ #t) "latex/totcount")
+ ((#:tex-format _ #t) "latex")
+ ((#:build-targets _ '()) '(list "totcount.ins"))
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (add-after 'unpack 'chdir
+ (lambda _ (chdir "source/latex/totcount/")))
+ (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-latex-graphics))
+ (home-page "https://ctan.org/pkg/totcount")
+ (synopsis "Find the last value of a counter")
+ (description
+ "This package records the value that was last set, for any counter of
interest. Since most such counters are simply incremented when they are
changed, the recorded value will usually be the maximum value.")
- (license license:lppl1.3c+)))
+ (license license:lppl1.3c+))))
+
+(define-deprecated-package texlive-latex-totcount texlive-totcount)
(define-public texlive-xetex
(package
- 02/15: gnu: Add texlive-relsize., (continued)
- 02/15: gnu: Add texlive-relsize., guix-commits, 2023/04/18
- 04/15: gnu: texlive-latex-acronym: Replace with texlive-acronym., guix-commits, 2023/04/18
- 06/15: gnu: texlive-latex-lastpage: Replace with texlive-lastpage., guix-commits, 2023/04/18
- 07/15: gnu: Add texlive-totpages., guix-commits, 2023/04/18
- 09/15: gnu: emacs-autothemer: Run tests., guix-commits, 2023/04/18
- 11/15: gnu: emacs-envrc: Update to 0.5., guix-commits, 2023/04/18
- 12/15: gnu: emacs-envrc: Add DIRENV as an input., guix-commits, 2023/04/18
- 13/15: gnu: emacs-marginalia: Update to 1.2., guix-commits, 2023/04/18
- 03/15: gnu: texlive-latex-bigfoot: Replace with texlive-bigfoot., guix-commits, 2023/04/18
- 01/15: gnu: Add texlive-ncctools., guix-commits, 2023/04/18
- 05/15: gnu: texlive-latex-totcount: Replace with texlive-totcount.,
guix-commits <=
- 08/15: gnu: emacs-autothemer: Update to 0.2.17., guix-commits, 2023/04/18
- 10/15: gnu: emacs-cape: Update to 0.15., guix-commits, 2023/04/18
- 14/15: gnu: emacs-osm: Update to 0.11., guix-commits, 2023/04/18
- 15/15: gnu: emacs-osm: Do not mix home-page and origin., guix-commits, 2023/04/18