gnu: Add texlive-listings.

* gnu/packages/docbook.scm (texlive-listings): New variable.
(texlive-latex-listings): Deprecate variable.
(dblatex): Use new variable.
* gnu/packages/tex.scm (texlive-latex-xkeyval): Use new variable.
This commit is contained in:
Nicolas Goaziou 2022-03-03 15:58:54 +01:00
parent d293162615
commit e7cf0ea660
No known key found for this signature in database
GPG Key ID: DA00B4F048E92F2D
2 changed files with 40 additions and 22 deletions

View File

@ -473,7 +473,7 @@ the in DocBook SGML DTDs.")
texlive-latex-footmisc texlive-latex-footmisc
texlive-hyperref texlive-hyperref
texlive-latex-jknapltx texlive-latex-jknapltx
texlive-latex-listings texlive-listings
texlive-latex-multirow texlive-latex-multirow
texlive-latex-overpic texlive-latex-overpic
texlive-latex-pdfpages texlive-latex-pdfpages

View File

@ -5755,29 +5755,47 @@ optional arguments, or for macros that are defined as robust macros by
that also takes care of the involved internal macros.") that also takes care of the involved internal macros.")
(license license:lppl1.3c+))) (license license:lppl1.3c+)))
(define-public texlive-latex-listings (define-public texlive-listings
(package (let ((template
(name "texlive-latex-listings") (simple-texlive-package
(version (number->string %texlive-revision)) "texlive-listings"
(source (origin (list "doc/latex/listings/"
(method svn-fetch) "source/latex/listings/"
(uri (texlive-ref "latex" "listings")) "tex/latex/listings/")
(file-name (string-append name "-" version "-checkout")) (base32 "15dnm0j86305x84ss3ymhhcczcw45b2liq01vrab6fj204wzsahk"))))
(sha256 (package
(base32 (inherit template)
"082zri3gp8s6p2difhk1pbix2vzmvsf6fmld2z78v35xwk3fiya0")))) (outputs '("out" "doc"))
(build-system texlive-build-system) (arguments
(arguments (substitute-keyword-arguments (package-arguments template)
'(#:tex-directory "latex/listings" ((#:tex-directory _ '())
#:build-targets '("listings.ins"))) "latex/listings")
(home-page "https://www.ctan.org/pkg/listings") ((#:build-targets _ '())
(synopsis "Typeset source code listings using LaTeX") #~(list "listings.ins"))
(description ((#:phases phases)
"The package enables the user to typeset programs (programming code) #~(modify-phases #$phases
(add-after 'unpack 'chdir
(lambda _
(chdir "source/latex/listings")))
(replace 'copy-files
(lambda* (#:key inputs outputs #: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://www.ctan.org/pkg/listings")
(synopsis "Typeset source code listings using LaTeX")
(description
"The package enables the user to typeset programs (programming code)
within LaTeX; the source code is read directly by TeX---no front-end processor within LaTeX; the source code is read directly by TeX---no front-end processor
is needed. Keywords, comments and strings can be typeset using different is needed. Keywords, comments and strings can be typeset using different
styles. Support for @code{hyperref} is provided.") styles. Support for @code{hyperref} is provided.")
(license license:lppl1.3+))) (license license:lppl1.3+))))
(define-deprecated-package texlive-latex-listings texlive-listings)
(define-public texlive-latex-jknapltx (define-public texlive-latex-jknapltx
(package (package
@ -8889,8 +8907,8 @@ are part of the LaTeX required tools distribution, comprising the packages:
texlive-graphics-def texlive-graphics-def
texlive-xcolor texlive-xcolor
texlive-latex-footmisc texlive-latex-footmisc
texlive-latex-listings
texlive-generic-iftex texlive-generic-iftex
texlive-listings
texlive-pstricks texlive-pstricks
texlive-pst-text texlive-pst-text
texlive-tools texlive-tools