ngz pushed a commit to branch tex-team
in repository guix.
commit 589bb5a6edbe405272e47eb4d073c17eb3fc0e42
Author: Nicolas Goaziou <[email protected]>
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 91b0393641..f3c93e4061 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")