guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

387/452: gnu: texlive-totpages: Remove SIMPLE-TEXLIVE-PACKAGE call.


From: guix-commits
Subject: 387/452: gnu: texlive-totpages: Remove SIMPLE-TEXLIVE-PACKAGE call.
Date: Fri, 9 Jun 2023 13:44:06 -0400 (EDT)

ngz pushed a commit to branch tex-team-next
in repository guix.

commit 0eb644c4336e67f81d70a8acaf94cce33acc8011
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Thu May 18 14:37:23 2023 +0200

    gnu: texlive-totpages: Remove SIMPLE-TEXLIVE-PACKAGE call.
    
    * gnu/packages/tex.scm (texlive-totpages!): Remove SIMPLE-TEXLIVE-PACKAGE
    call.
    [native-inputs]: Remove them.
---
 gnu/packages/tex.scm | 43 ++++++++++++++++++-------------------------
 1 file changed, 18 insertions(+), 25 deletions(-)

diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 19fdbac727..2ec9cae3d5 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -13859,33 +13859,26 @@ 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"))))
-      (native-inputs
-       (list (texlive-updmap.cfg)))
-      (propagated-inputs
-       (list texlive-everyshi texlive-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
+  (package
+    (name "texlive-totpages")
+    (version (number->string %texlive-revision))
+    (source (texlive-origin
+             name version
+             (list "doc/latex/totpages/" "source/latex/totpages/"
+                   "tex/latex/totpages/")
+             (base32
+              "1mmya2fqdskyavw3hvdiygfyp9cll7bl4lpi7pl2jf9s7ds49j5a")))
+    (outputs '("out" "doc"))
+    (build-system texlive-build-system)
+    (arguments (list #:tex-format "latex"))
+    (propagated-inputs (list texlive-everyshi texlive-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))))
+    (license license:lppl)))
 
 (define-public texlive-xetexconfig
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]