[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/15: gnu: texlive-latex-lastpage: Replace with texlive-lastpage.
From: |
guix-commits |
Subject: |
06/15: gnu: texlive-latex-lastpage: Replace with texlive-lastpage. |
Date: |
Tue, 18 Apr 2023 09:21:20 -0400 (EDT) |
ngz pushed a commit to branch master
in repository guix.
commit 34ac0a1948881523050c3c2a178679ccb6567c3f
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Fri Mar 31 17:23:14 2023 +0200
gnu: texlive-latex-lastpage: Replace with texlive-lastpage.
* gnu/packages/tex.scm (texlive-lastpage): New variable.
(texlive-latex-lastpage): Deprecate variable.
---
gnu/packages/tex.scm | 53 ++++++++++++++++++++++++++++++++++++----------------
1 file changed, 37 insertions(+), 16 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index c7699a6b7c..919bb8cddd 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -12469,23 +12469,44 @@ underscores), and hyphenation of text typeset in
monospaced (e.g., cmtt)
fonts.")
(license license:lppl1.3c+)))
-(define-public texlive-latex-lastpage
- (package
- (inherit (simple-texlive-package
- "texlive-latex-lastpage"
- (list "doc/latex/lastpage/"
- "tex/latex/lastpage/")
- (base32 "0q6x743b8fkw9r82lrxy49f9xsg81bffynwvpnvpnp3h4mkafvdb")
- #:trivial? #t))
- (build-system texlive-build-system)
- (home-page "https://ctan.org/pkg/lastpage")
- (synopsis "Reference last page for Page N of M type footers")
- (description
- "This package enables referencing the number of pages in a LaTeX document
-through the introduction of a new label which can be referenced like
+(define-public texlive-lastpage
+ (let ((template (simple-texlive-package
+ "texlive-lastpage"
+ (list "doc/latex/lastpage/"
+ "source/latex/lastpage/"
+ "tex/latex/lastpage/")
+ (base32
+ "1cmzl0jkid4w60bjlyxrc5bynbc3lwq5nr77rsip0q9hprxykxks"))))
+ (package
+ (inherit template)
+ (outputs '("out" "doc"))
+ (arguments
+ (substitute-keyword-arguments (package-arguments template)
+ ((#:tex-directory _ #t) "latex/lastpage")
+ ((#:build-targets _ '()) '(list "lastpage.ins"))
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (add-after 'unpack 'chdir
+ (lambda _ (chdir "source/latex/lastpage/")))
+ (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))))))))
+ (home-page "https://ctan.org/pkg/lastpage")
+ (synopsis "Reference last page for Page N of M type footers")
+ (description
+ "This package enables referencing the number of pages in a LaTeX
+document through the introduction of a new label which can be referenced like
@code{\\pageref{LastPage}} to give a reference to the last page of a document.
-It is particularly useful in the page footer that says: Page N of M.")
- (license license:lppl1.3c+)))
+It is particularly useful in the page footer that says: @samp{Page N of M}.")
+ (license license:lppl1.3+))))
+
+(define-deprecated-package texlive-latex-lastpage texlive-lastpage)
(define-public texlive-latex-tabto-ltx
(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 <=
- 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, 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