guix-commits
[Top][All Lists]
Advanced

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

02/137: gnu: texlive-libkpathsea: Remove duplicate documentation.


From: guix-commits
Subject: 02/137: gnu: texlive-libkpathsea: Remove duplicate documentation.
Date: Mon, 24 Jun 2024 18:26:29 -0400 (EDT)

ngz pushed a commit to branch tex-team
in repository guix.

commit c1f1a0b44a3eb1fac87bd8e7f78ee023310bd46b
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Thu May 30 21:25:04 2024 +0200

    gnu: texlive-libkpathsea: Remove duplicate documentation.
    
    * gnu/packages/tex.scm (texlive-libkpathsea)[arguments]<#:phases>: Replace
    useless `install' phase instead of adding a new one after it.  Delete
    documentation already included in another package.
    
    Change-Id: I2c1f1ff12ab24792370f45adc94f056c1ffadec9
---
 gnu/packages/tex.scm | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index f94af606e1..2db9de7258 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -241,10 +241,17 @@
             (lambda _
               (substitute* "texk/kpathsea/config.h"
                 (("#define ST_NLINK_TRICK") ""))))
-          (add-after 'install 'post-install
+          (replace 'install
             (lambda _
               (with-directory-excursion "texk/kpathsea"
-                (invoke "make" "install")))))))
+                (invoke "make" "install"))))
+          (add-after 'install 'remove-documentation
+            ;; Documentation is provided by TEXLIVE-KPATHSEA, in a dedicated
+            ;; "doc" output.  Remove duplicates.
+            (lambda _
+              (with-directory-excursion #$output
+                (for-each delete-file-recursively
+                          '("share/info" "share/man"))))))))
     (native-search-paths
      (list (search-path-specification
             (variable "GUIX_TEXMF")



reply via email to

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