[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/97: gnu: texlive-libkpathsea: Use TEXLIVE-SOURCE.
From: |
guix-commits |
Subject: |
04/97: gnu: texlive-libkpathsea: Use TEXLIVE-SOURCE. |
Date: |
Fri, 21 Jun 2024 06:40:52 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 30a9ba965efd7ecc2b21cb72ba9a6fc5579f5701
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Mon May 27 10:42:34 2024 +0200
gnu: texlive-libkpathsea: Use TEXLIVE-SOURCE.
* gnu/packages/tex.scm (texlive-libkpathsea)[version]: Refer to
%TEXLIVE-REVISION.
[source]: Inherit from TEXLIVE-SOURCE. Refactor snippet.
Change-Id: Ia370203f5fd7a0f2090d8d0b67c24ce5118b2a26
---
gnu/packages/tex.scm | 38 ++++++++++++++------------------------
1 file changed, 14 insertions(+), 24 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 05415caba6..c0c5237b2c 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -177,35 +177,25 @@
(define-public texlive-libkpathsea
(package
(name "texlive-libkpathsea")
- (version "20230313")
+ (version (number->string %texlive-revision))
(source
(origin
- (method url-fetch)
- (uri (string-append "ftp://tug.org/historic/systems/texlive/"
- (string-take version 4)
- "/texlive-" version "-source.tar.xz"))
- (sha256
- (base32
- "1fbrkv7g9j6ipmwjx27l8l9l974rmply8bhf7c2iqc6h3q7aly1q"))
+ (inherit texlive-source)
(modules '((guix build utils)
(ice-9 ftw)))
(snippet
- #~(begin
- (with-directory-excursion "libs"
- (for-each
- delete-file-recursively
- (scandir "."
- (lambda (file)
- (and (not (member file '("." "..")))
- (eq? 'directory (stat:type (stat file))))))))
- (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)))))))))))))
+ #~(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
- branch tex-team created (now bbebfd9a98), guix-commits, 2024/06/21
- 01/97: gnu: texlive-libkpathsea: Fix TEXMFCACHE location., guix-commits, 2024/06/21
- 02/97: gnu: texlive-libkpathsea: Remove duplicate documentation., guix-commits, 2024/06/21
- 03/97: gnu: Add texlive-source., guix-commits, 2024/06/21
- 04/97: gnu: texlive-libkpathsea: Use TEXLIVE-SOURCE.,
guix-commits <=
- 06/97: gnu: texlive-luatex: Set proper default values for "texmfcnf.lua"., guix-commits, 2024/06/21
- 10/97: gnu: texlive-bin: Minimize build surface., guix-commits, 2024/06/21
- 11/97: gnu: tex.scm: Remove completed TODO., guix-commits, 2024/06/21
- 13/97: gnu: texlive-csplain: Fix build., guix-commits, 2024/06/21
- 08/97: gnu: texlive-context: Fix "context" call., guix-commits, 2024/06/21
- 09/97: gnu: Add texlive-libptexenc., guix-commits, 2024/06/21
- 05/97: gnu: texlive-libkpathsea: Better default values in "texmf.cnf"., guix-commits, 2024/06/21
- 07/97: gnu: texlive-updmap.cfg: Fix font file creation in $HOME., guix-commits, 2024/06/21
- 12/97: gnu: texlive-xcjk2uni: Fix build., guix-commits, 2024/06/21
- 20/97: gnu: Add texlive-uptex-bin., guix-commits, 2024/06/21