From cca8a27461a14c523de6a7411e1ab067a176f06f Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Thu, 30 May 2024 21:25:04 +0200 Subject: 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(-) (limited to 'gnu/packages') diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 104fa11493..767375c7bd 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -241,10 +241,17 @@ (define-public texlive-libkpathsea (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") -- cgit v1.2.3