mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-19 09:22:05 -05:00
gnu: texlive-latex-totcount: Replace with texlive-totcount.
* gnu/packages/tex.scm (texlive-totcount): New variable. (texlive-latex-totcount): Deprecate package.
This commit is contained in:
parent
93df58947f
commit
c297a67092
1 changed files with 39 additions and 14 deletions
|
@ -12651,22 +12651,47 @@ (define-public texlive-substr
|
||||||
@end itemize")
|
@end itemize")
|
||||||
(license license:lppl1.0+)))
|
(license license:lppl1.0+)))
|
||||||
|
|
||||||
(define-public texlive-latex-totcount
|
(define-public texlive-totcount
|
||||||
(package
|
(let ((template (simple-texlive-package
|
||||||
(inherit (simple-texlive-package
|
"texlive-totcount"
|
||||||
"texlive-latex-totcount"
|
(list "doc/latex/totcount/"
|
||||||
(list "doc/latex/totcount/"
|
"source/latex/totcount/"
|
||||||
"tex/latex/totcount/")
|
"tex/latex/totcount/")
|
||||||
(base32 "0z4mijyk3z7555q8da41aiji602plis5z261z4rr1fl8sndhnhn1")
|
(base32
|
||||||
#:trivial? #t))
|
"1rj9ncip5h2cbdljjqwxqsg14pb4mimzhz290q872n32w7rxkp28"))))
|
||||||
(build-system texlive-build-system)
|
(package
|
||||||
(home-page "https://ctan.org/pkg/totcount")
|
(inherit template)
|
||||||
(synopsis "Find the last value of a counter")
|
(outputs '("out" "doc"))
|
||||||
(description
|
(build-system texlive-build-system)
|
||||||
"This package records the value that was last set, for any counter of
|
(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
|
interest. Since most such counters are simply incremented when they are
|
||||||
changed, the recorded value will usually be the maximum value.")
|
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
|
(define-public texlive-xetex
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in a new issue