guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: texlive-soul: Supersede texlive-generic-soul.


From: guix-commits
Subject: 01/02: gnu: texlive-soul: Supersede texlive-generic-soul.
Date: Sat, 25 Feb 2023 06:29:14 -0500 (EST)

ngz pushed a commit to branch master
in repository guix.

commit d03ad1a8b309fa02e6f6da8f69d54f4110b8bdf5
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sat Feb 25 11:57:19 2023 +0100

    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(-)

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"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]