[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/15: gnu: Add texlive-totpages.
From: |
guix-commits |
Subject: |
07/15: gnu: Add texlive-totpages. |
Date: |
Tue, 18 Apr 2023 09:21:20 -0400 (EDT) |
ngz pushed a commit to branch master
in repository guix.
commit cfc1209a8017eba2ca6c3ef03e06a637199ba269
Author: Matthieu Lemerre <racin@free.fr>
AuthorDate: Tue Apr 18 14:28:36 2023 +0200
gnu: Add texlive-totpages.
* gnu/packages/tex.scm (texlive-totpages): New variable.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
---
gnu/packages/tex.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 919bb8cddd..c8f7923552 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -12714,6 +12714,48 @@ changed, the recorded value will usually be the
maximum value.")
(define-deprecated-package texlive-latex-totcount texlive-totcount)
+(define-public texlive-totpages
+ (let ((template (simple-texlive-package
+ "texlive-totpages"
+ (list "doc/latex/totpages/"
+ "source/latex/totpages/"
+ "tex/latex/totpages/")
+ (base32
+ "1mmya2fqdskyavw3hvdiygfyp9cll7bl4lpi7pl2jf9s7ds49j5a"))))
+ (package
+ (inherit template)
+ (outputs '("out" "doc"))
+ (build-system texlive-build-system)
+ (arguments
+ (substitute-keyword-arguments (package-arguments template)
+ ((#:tex-directory _ #t) "latex/totpages")
+ ((#:tex-format _ #t) "latex")
+ ((#:build-targets _ '()) '(list "totpages.ins"))
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (add-after 'unpack 'chdir
+ (lambda _ (chdir "source/latex/totpages/")))
+ (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))))))))
+ (native-inputs
+ (list (texlive-updmap.cfg)))
+ (propagated-inputs
+ (list texlive-everyshi texlive-latex-graphics))
+ (home-page "https://ctan.org/pkg/totpages")
+ (synopsis "Count pages in a document, and report last page number")
+ (description
+ "The package counts the actual pages in the document (as opposed to
+reporting the number of the last page, as does @code{lastpage}). The counter
+itself may be shipped out to the DVI file.")
+ (license license:lppl))))
+
(define-public texlive-xetex
(package
(inherit (simple-texlive-package
- branch master updated (c057a5c418 -> 1f78148b95), guix-commits, 2023/04/18
- 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 <=
- 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, 2023/04/18
- 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