gnu: texlive-latex-dinbrief -> texlive-dinbrief.

* gnu/packages/tex.scm (texlive-dinbrief): New variable.
(texlive-latex-dinbrief): Deprecate package.
This commit is contained in:
Nicolas Goaziou 2023-05-04 21:15:07 +02:00
parent b8fef5d92e
commit e9cd94df0d
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -4812,34 +4812,32 @@ (define-public texlive-blindtext
(define-deprecated-package texlive-latex-blindtext texlive-blindtext) (define-deprecated-package texlive-latex-blindtext texlive-blindtext)
(define-public texlive-latex-dinbrief (define-public texlive-dinbrief
(package (package
(name "texlive-latex-dinbrief") (name "texlive-dinbrief")
(version (number->string %texlive-revision)) (version (number->string %texlive-revision))
(source (origin (source (texlive-origin
(method svn-fetch) name version
(uri (texlive-ref "latex" "dinbrief")) (list "doc/latex/dinbrief/"
(file-name (string-append name "-" version "-checkout")) "source/latex/dinbrief/"
(sha256 "tex/latex/dinbrief/")
(base32 (base32
"0lb0kiy8fxzl6cnhcw1sggy6jrjvcd6kj1kkw3k9lkimm388yjz6")))) "0l6mmn3y07xglmh3h5f7pnpmyacqb2g6nqgq3q1p6k97kf708c5s")))
(outputs '("out" "doc"))
(build-system texlive-build-system) (build-system texlive-build-system)
(arguments (arguments
'(#:tex-directory "latex/dinbrief" (list
#:phases #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'remove-generated-file (add-after 'unpack 'fix-build
(lambda _
(delete-file "dinbrief.drv")
#t))
(add-after 'unpack 'fix-encoding-error
(lambda _ (lambda _
(with-fluids ((%default-port-encoding "ISO-8859-1")) (with-fluids ((%default-port-encoding "ISO-8859-1"))
(with-directory-excursion "source/latex/dinbrief"
(delete-file "dinbrief.drv")
(substitute* "dinbrief.dtx" (substitute* "dinbrief.dtx"
(("zur Verf.+ung. In der Pr\"aambel") (("zur Verf.+ung. In der Pr\"aambel")
"zur Verf\"ung. In der Pr\"aambel"))) "zur Verf\"ung. In der Pr\"aambel")))))))))
#t))))) (home-page "https://ctan.org/pkg/dinbrief")
(home-page "https://www.ctan.org/pkg/dinbrief")
(synopsis "German letter DIN style") (synopsis "German letter DIN style")
(description (description
"This package implements a document layout for writing letters according "This package implements a document layout for writing letters according
@ -4852,6 +4850,8 @@ (define-public texlive-latex-dinbrief
package.") package.")
(license license:lppl))) (license license:lppl)))
(define-deprecated-package texlive-latex-dinbrief texlive-dinbrief)
(define-public texlive-latex-draftwatermark (define-public texlive-latex-draftwatermark
(package (package
(name "texlive-latex-draftwatermark") (name "texlive-latex-draftwatermark")