Subject: bug#60820: closed (Re: [bug#60820] [PATCH] Add 'totpages' latex package.)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 18 Apr 2023 13:35:02 +0000

Your bug report

#60820: [PATCH] Add 'totpages' latex package.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
60820: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60820
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#60820] [PATCH] Add 'totpages' latex package.
From: Nicolas Goaziou <[email-masked]>
To: [email-masked]
Cc: 60820 <[email-masked]>
Date: Tue, 18 Apr 2023 15:33:50 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

Nicolas Goaziou <[email-masked]> writes:

> [email-masked] writes:
>
>> But if someone need the source, my understanding is that one can just use guix  build -S 
>> or some other command to retrieve them.
>> So I don't see the interest of having them too in the compiled output, as they are not useful for 
>> normal usage of the package; it seems to take up space for no reason.
>
> I don't know if the reason is strong enough, but I gave you one above.
>
> In any case, the main nit here is that we try to generate files from
> source, which "#trivial? #t" prevents.

I renamed the package, updated its definition, set propagated inputs,
and applied it. Thank you for the initial work.

You make a fair point with the source distribution, but unfortunately,
it didn't raise much interest so far. It might be worth asking it on
Guix Devel ML.

Meanwhile, I'm closing this bug.

Regards,
-- 
Nicolas Goaziou

Subject: [PATCH] Add 'totpages' latex package.
From: Matthieu Lemerre <[email-masked]>
To: [email-masked]
Date: Sat, 14 Jan 2023 23:36:34 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Guix!

This is my first guix package -- I have some texlive, ocaml and emacs packages missing for my installation, so I thought it would be best to share them!

Bests
Matthieu

---
 gnu/packages/tex.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index dafed9d3c3..1e28c36549 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -11935,6 +11935,25 @@ (define-public texlive-latex-hyphenat
 fonts.")
     (license license:lppl1.3c+)))
 
+(define-public texlive-latex-totpages
+  (package
+    (inherit (simple-texlive-package "texlive-latex-totpages"
+                                     (list "doc/latex/totpages/"
+                                           "source/latex/totpages/"
+                                           "tex/latex/totpages/")
+                                     (base32
+                                      "1mmya2fqdskyavw3hvdiygfyp9cll7bl4lpi7pl2jf9s7ds49j5a")
+                                     #:trivial? #t))
+    (build-system texlive-build-system)
+    (version "2.00")
+    (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 lastpage).  The counter itself may be shipped
+out to the DVI file.  The package uses the everyshi package for its task.")
+    (license license:lppl)))
+
 (define-public texlive-latex-lastpage
   (package
     (inherit (simple-texlive-package
-- 
2.38.1