From d03ad1a8b309fa02e6f6da8f69d54f4110b8bdf5 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 25 Feb 2023 11:57:19 +0100 Subject: gnu: texlive-soul: Supersede texlive-generic-soul. * gnu/packages/tex.scm (texlive-soul): New variable. (texlive-generic-soul): Deprecate in favour of the above. --- gnu/packages/tex.scm | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) (limited to 'gnu/packages/tex.scm') diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index bea4b4b307..cf649e0cfd 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -12091,16 +12091,34 @@ which the command @code{\\tab} advances typesetting position to the next defined ``tab stop''.") (license license:lppl1.3+))) -(define-public texlive-generic-soul +(define-public texlive-soul (let ((template (simple-texlive-package - "texlive-generic-soul" - (list "/doc/generic/soul/" - "/tex/generic/soul/") + "texlive-soul" + (list "doc/generic/soul/" + "source/generic/soul/" + "tex/generic/soul/") (base32 - "11jdgvfpcv10y5j898495lf29k2m03x39v9jzb4v79w4cgxcmfps") - #:trivial? #t))) + "0ikipdswzsafi4rr6q9xh3hkxk2n2683ym1879qcax41xs6cizdl")))) (package (inherit template) + (outputs '("out" "doc")) + (arguments + (substitute-keyword-arguments (package-arguments template) + ((#:tex-directory _ #t) "generic/soul") + ((#:build-targets _ '()) '(list "soul.ins")) + ((#:phases phases) + #~(modify-phases #$phases + (add-after 'unpack 'chdir + (lambda _ (chdir "source/generic/soul/"))) + (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)))))))) (home-page "http://www.ctan.org/pkg/soul") (synopsis "Hyphenation for letterspacing, underlining, and more") (description @@ -12112,6 +12130,8 @@ syllable. The package itself does not support UTF-8 input in ordinary (PDF)LaTeX; some UTF-8 support is offered by package @code{soulutf8}.") (license license:lppl)))) +(define-deprecated-package texlive-generic-soul texlive-soul) + (define-public texlive-generic-xstring (let ((template (simple-texlive-package "texlive-generic-xstring" -- cgit v1.2.3