[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
65/96: gnu: Add texlive-totpages.
From: |
guix-commits |
Subject: |
65/96: gnu: Add texlive-totpages. |
Date: |
Wed, 19 Apr 2023 21:41:14 -0400 (EDT) |
apteryx pushed a commit to branch core-updates
in repository guix.
commit 79d5721a038b59b5d0c4e5e2f391d87888898eae
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 1d98662777..4e4a7b4aef 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -13381,6 +13381,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
- 64/96: gnu: texlive-latex-lastpage: Replace with texlive-lastpage., (continued)
- 64/96: gnu: texlive-latex-lastpage: Replace with texlive-lastpage., guix-commits, 2023/04/19
- 37/96: gnu: python-pytest-trio: Update to 0.8.0., guix-commits, 2023/04/19
- 44/96: gnu: python-anyio: Update to 3.6.2., guix-commits, 2023/04/19
- 46/96: environment: Really auto-load (guix scripts pack)., guix-commits, 2023/04/19
- 47/96: services: agetty: 'term-console' succeeds by default., guix-commits, 2023/04/19
- 48/96: substitute: Download nar from another server upon ETIMEDOUT., guix-commits, 2023/04/19
- 49/96: ssh: Silence remote daemon messages when sending store items., guix-commits, 2023/04/19
- 54/96: gnu: audacity: Update to 3.3.0-beta-1., guix-commits, 2023/04/19
- 58/96: gnu: r-with-tests: Update to 4.2.3., guix-commits, 2023/04/19
- 60/96: gnu: Add texlive-relsize., guix-commits, 2023/04/19
- 65/96: gnu: Add texlive-totpages.,
guix-commits <=
- 66/96: gnu: emacs-autothemer: Update to 0.2.17., guix-commits, 2023/04/19
- 75/96: gnu: kwin: Update skipped test list., guix-commits, 2023/04/19
- 78/96: gnu: r-rhdf5: Update to 2.42.1., guix-commits, 2023/04/19
- 84/96: gnu: r-dmrseq: Update to 1.18.1., guix-commits, 2023/04/19
- 89/96: tests: guix-system: Drop the i686-linux desktop image test., guix-commits, 2023/04/19
- 95/96: gnu: borgmatic: Update to 1.7.12., guix-commits, 2023/04/19
- 59/96: gnu: Add texlive-ncctools., guix-commits, 2023/04/19
- 67/96: gnu: emacs-autothemer: Run tests., guix-commits, 2023/04/19
- 74/96: gnu: kwin: Rewrite skipped tests to be more readable., guix-commits, 2023/04/19
- 76/96: gnu: repo2docker: Add missing inputs., guix-commits, 2023/04/19