me
/
guix
Archived
1
0
Fork 0

gnu: texlive-latex-acronym: Replace with texlive-acronym.

* gnu/packages/tex.scm (texlive-latex-acronym): Deprecate package.
(texlive-acronym): New variable.
master
Nicolas Goaziou 2023-03-31 13:13:16 +02:00 committed by Maxim Cournoyer
parent e59ce41bf2
commit 7644e4c090
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 39 additions and 20 deletions

View File

@ -8552,28 +8552,47 @@ dvipng, but it also works when you are using PDFTeX for generating PDF
files.") files.")
(license license:gpl3+))) (license license:gpl3+)))
(define-public texlive-latex-acronym (define-public texlive-acronym
(package (let ((template (simple-texlive-package
(name "texlive-latex-acronym") "texlive-acronym"
(version (number->string %texlive-revision)) (list "doc/latex/acronym/"
(source (origin "source/latex/acronym/"
(method svn-fetch) "tex/latex/acronym/")
(uri (texlive-ref "latex" "acronym")) (base32
(file-name (string-append name "-" version "-checkout")) "0p2sws3qy7wv0v6bsy6c5j36n9s1ps7b1z7dmg1370schrjpqnfh"))))
(sha256 (package
(base32 (inherit template)
"09pd4wynksg1y1ddxnqbhk2dc185zw5nyi794d86n3qx8l014ijy")))) (outputs '("out" "doc"))
(build-system texlive-build-system) (arguments
(arguments '(#:tex-directory "latex/acronym")) (substitute-keyword-arguments (package-arguments template)
(home-page "https://www.ctan.org/pkg/acronym") ((#:tex-directory _ #t) "latex/acronym")
(synopsis "Expand acronyms at least once") ((#:build-targets _ '()) '(list "acronym.ins"))
(description ((#:phases phases)
"This package ensures that all acronyms used in the text are spelled out #~(modify-phases #$phases
in full at least once. It also provides an environment to build a list of (add-after 'unpack 'chdir
(lambda _ (chdir "source/latex/acronym/")))
(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))))))))
(propagated-inputs
(list texlive-bigfoot texlive-relsize texlive-xstring))
(home-page "https://ctan.org/pkg/acronym")
(synopsis "Expand acronyms at least once")
(description
"This package ensures that all acronyms used in the text are spelled
out in full at least once. It also provides an environment to build a list of
acronyms used. The package is compatible with PDF bookmarks. The package acronyms used. The package is compatible with PDF bookmarks. The package
requires the suffix package, which in turn requires that it runs under requires the @code{suffix} package, which in turn requires that it runs under
e-TeX.") e-TeX.")
(license license:lppl1.3+))) (license license:lppl1.3+))))
(define-deprecated-package texlive-latex-acronym texlive-acronym)
(define-public texlive-pdftex (define-public texlive-pdftex
(package (package