gnu: Add texlive-atveryend.
* gnu/packages/tex.scm (texlive-atveryend): New variable. (texlive-latex-atveryend): Deprecate variable. (texlive-hyperref): (texlive-latex-rerunfilecheck): Use new variable.master
parent
5e796bfc22
commit
83c3332758
|
@ -3060,25 +3060,53 @@ with the required packages, constitutes what every LaTeX distribution should
|
||||||
contain.")
|
contain.")
|
||||||
(license license:lppl1.3c+))))
|
(license license:lppl1.3c+))))
|
||||||
|
|
||||||
(define-public texlive-latex-atveryend
|
(define-public texlive-atveryend
|
||||||
|
(let ((template (simple-texlive-package
|
||||||
|
"texlive-atveryend"
|
||||||
|
(list "doc/latex/atveryend/"
|
||||||
|
"source/latex/atveryend/"
|
||||||
|
"tex/latex/atveryend/")
|
||||||
|
(base32 "1rp805h0m99rxs107a798l951lyahlnp7irfklfadn2a2ljzhafn"))))
|
||||||
(package
|
(package
|
||||||
(inherit (simple-texlive-package
|
(inherit template)
|
||||||
"texlive-latex-atveryend"
|
(outputs '("out" "doc"))
|
||||||
'("/doc/latex/atveryend/README.md"
|
(arguments
|
||||||
"/tex/latex/atveryend/")
|
(substitute-keyword-arguments (package-arguments template)
|
||||||
(base32
|
((#:tex-directory _ #t)
|
||||||
"1gz5ssxjlqa53a8blsmdk2qjahzc910ldh26xjxfxgqnqb03rqx7")
|
"latex/atveryend")
|
||||||
#:trivial? #t))
|
((#:build-targets _ #t)
|
||||||
(home-page "https://www.ctan.org/pkg/atveryend")
|
#~(list "atveryend.dtx"))
|
||||||
|
((#:phases phases)
|
||||||
|
#~(modify-phases #$phases
|
||||||
|
(add-after 'unpack 'chdir
|
||||||
|
(lambda _
|
||||||
|
(chdir "source/latex/atveryend/")))
|
||||||
|
(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))))
|
||||||
|
(add-after 'copy-files 'remove-generated-file
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(with-directory-excursion #$output
|
||||||
|
(for-each delete-file
|
||||||
|
(find-files "." "\\.(drv|ins)$")))))))))
|
||||||
|
(home-page "https://ctan.org/macros/latex/contrib/atveryend")
|
||||||
(synopsis "Hooks at the very end of a document")
|
(synopsis "Hooks at the very end of a document")
|
||||||
(description
|
(description
|
||||||
"This LaTeX packages provides two hooks for @code{\\end@{document@}}
|
"This LaTeX packages provides two hooks for @code{\\end{document}} that
|
||||||
that are executed after the hook of @code{\\AtEndDocument}:
|
are executed after the hook of @code{\\AtEndDocument}:
|
||||||
@code{\\AfterLastShipout} can be used for code that is to be executed right
|
@code{\\AfterLastShipout} can be used for code that is to be executed right
|
||||||
after the last @code{\\clearpage} before the @file{.aux} file is closed.
|
after the last @code{\\clearpage} before the @file{.aux} file is closed.
|
||||||
@code{\\AtVeryEndDocument} is used for code after closing and final reading
|
@code{\\AtVeryEndDocument} is used for code after closing and final reading of
|
||||||
of the @file{.aux} file.")
|
the @file{.aux} file.")
|
||||||
(license license:lppl1.3c+)))
|
(license license:lppl1.3+))))
|
||||||
|
|
||||||
|
(define-deprecated-package texlive-latex-atveryend texlive-atveryend)
|
||||||
|
|
||||||
(define-public texlive-latex-auxhook
|
(define-public texlive-latex-auxhook
|
||||||
(package
|
(package
|
||||||
|
@ -3398,7 +3426,8 @@ XML, using UTF-8 or a suitable 8-bit encoding.")
|
||||||
(add-after 'unpack 'chdir
|
(add-after 'unpack 'chdir
|
||||||
(lambda _ (chdir "source/latex/hyperref") #t))))))
|
(lambda _ (chdir "source/latex/hyperref") #t))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list texlive-generic-atbegshi
|
(list texlive-atveryend
|
||||||
|
texlive-generic-atbegshi
|
||||||
texlive-generic-bitset
|
texlive-generic-bitset
|
||||||
texlive-generic-etexcmds
|
texlive-generic-etexcmds
|
||||||
texlive-generic-gettitlestring
|
texlive-generic-gettitlestring
|
||||||
|
@ -3410,7 +3439,6 @@ XML, using UTF-8 or a suitable 8-bit encoding.")
|
||||||
texlive-generic-ltxcmds
|
texlive-generic-ltxcmds
|
||||||
texlive-generic-pdfescape
|
texlive-generic-pdfescape
|
||||||
texlive-latex-auxhook
|
texlive-latex-auxhook
|
||||||
texlive-latex-atveryend
|
|
||||||
texlive-latex-hycolor
|
texlive-latex-hycolor
|
||||||
texlive-latex-kvoptions
|
texlive-latex-kvoptions
|
||||||
texlive-latex-letltxmacro
|
texlive-latex-letltxmacro
|
||||||
|
@ -3478,8 +3506,8 @@ arrows; record information about document class(es) used; and many more.")
|
||||||
"1myz0d5bxhxvl4220ikywh921qld8n324kk9kscqbc5iw4063g56")
|
"1myz0d5bxhxvl4220ikywh921qld8n324kk9kscqbc5iw4063g56")
|
||||||
#:trivial? #t))
|
#:trivial? #t))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list texlive-generic-infwarerr texlive-generic-uniquecounter
|
(list texlive-atveryend texlive-generic-infwarerr
|
||||||
texlive-latex-atveryend texlive-latex-kvoptions
|
texlive-generic-uniquecounter texlive-latex-kvoptions
|
||||||
texlive-pdftexcmds))
|
texlive-pdftexcmds))
|
||||||
(home-page "https://www.ctan.org/pkg/rerunfilecheck")
|
(home-page "https://www.ctan.org/pkg/rerunfilecheck")
|
||||||
(synopsis "Checksum based rerun checks on auxiliary files")
|
(synopsis "Checksum based rerun checks on auxiliary files")
|
||||||
|
|
Reference in New Issue