[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/54: gnu: texlive-libkpathsea: Tiny refactoring.
From: |
guix-commits |
Subject: |
25/54: gnu: texlive-libkpathsea: Tiny refactoring. |
Date: |
Tue, 14 May 2024 15:34:24 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 3f258dadb3642a9c97c5e10d63f26dfedb7c8d01
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sat May 11 17:13:34 2024 +0200
gnu: texlive-libkpathsea: Tiny refactoring.
* gnu/packages/tex.scm (texlive-libkpathsea)[source]<snippet>: Refactor
un-bundling. Remove "utils" contents.
Change-Id: Ib1d5a00ea6493bf1488a69e72470dfc7cf613e78
---
gnu/packages/tex.scm | 28 ++++++++++++----------------
1 file changed, 12 insertions(+), 16 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index f044a867fa..06ca76016f 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -184,22 +184,18 @@
(modules '((guix build utils)
(ice-9 ftw)))
(snippet
- #~(begin
- (with-directory-excursion "texk"
- (let ((preserved-directories '("." ".." "kpathsea")))
- (for-each
- delete-file-recursively
- (scandir "."
- (lambda (file)
- (and (not (member file preserved-directories))
- (eq? 'directory (stat:type (stat file)))))))))
- (with-directory-excursion "libs"
- (for-each
- delete-file-recursively
- (scandir "."
- (lambda (file)
- (and (not (member file '("." "..")))
- (eq? 'directory (stat:type (stat
file))))))))))))
+ #~(let ((delete-other-directories
+ (lambda (root dirs)
+ (with-directory-excursion root
+ (for-each
+ delete-file-recursively
+ (scandir "."
+ (lambda (file)
+ (and (not (member file (append '("." "..")
dirs)))
+ (eq? 'directory (stat:type (stat
file)))))))))))
+ (delete-other-directories "libs" '())
+ (delete-other-directories "utils" '())
+ (delete-other-directories "texk" '("kpathsea"))))))
(build-system gnu-build-system)
(arguments
(list
- 10/54: gnu: texlive-xindy: Refactor package., (continued)
- 10/54: gnu: texlive-xindy: Refactor package., guix-commits, 2024/05/14
- 13/54: gnu: texlive-cjkutils: Build executables., guix-commits, 2024/05/14
- 11/54: gnu: texlive-bin: Do not build Xindy., guix-commits, 2024/05/14
- 17/54: gnu: texlive-dvipng: Build executables., guix-commits, 2024/05/14
- 23/54: gnu: texlive-ps2eps: Build executables., guix-commits, 2024/05/14
- 16/54: gnu: texlive-t1utils: Build executables., guix-commits, 2024/05/14
- 18/54: gnu: texlive-afm2pl: Build executable., guix-commits, 2024/05/14
- 19/54: gnu: Add texlive-libptexenc., guix-commits, 2024/05/14
- 22/54: gnu: texlive-velthuis: Build executable., guix-commits, 2024/05/14
- 24/54: gnu: texlive-xpdfopen: Build executables., guix-commits, 2024/05/14
- 25/54: gnu: texlive-libkpathsea: Tiny refactoring.,
guix-commits <=
- 21/54: gnu: texlive-autosp: Build executable., guix-commits, 2024/05/14
- 20/54: gnu: texlive-dvi2tty: Build executables., guix-commits, 2024/05/14
- 26/54: gnu: texlive-texdoctk: Fix runtime error., guix-commits, 2024/05/14
- 28/54: gnu: texlive-tpic2pdftex: Build executable., guix-commits, 2024/05/14
- 27/54: gnu: texlive-xml2pmx: Build executable., guix-commits, 2024/05/14
- 30/54: gnu: texlive-pmx: Build executables., guix-commits, 2024/05/14
- 29/54: gnu: texlive-vlna: Build executable., guix-commits, 2024/05/14
- 31/54: gnu: texlive-m-tx: Build executable., guix-commits, 2024/05/14
- 33/54: gnu: texlive-xdvi: Build executables., guix-commits, 2024/05/14
- 32/54: gnu: texlive-bin: Ignore "utils" directory., guix-commits, 2024/05/14