[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/75: gnu: texlive-libkpathsea: Use TEXLIVE-SOURCE.
From: |
guix-commits |
Subject: |
04/75: gnu: texlive-libkpathsea: Use TEXLIVE-SOURCE. |
Date: |
Mon, 10 Jun 2024 12:24:25 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 71399e51da6164eb179c03f988aac80dd3f40fdd
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 68d13e5a8b..d616a9c365 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 cb15ed5396), guix-commits, 2024/06/10
- 01/75: gnu: texlive-libkpathsea: Fix TEXMFCACHE location., guix-commits, 2024/06/10
- 02/75: gnu: texlive-libkpathsea: Remove duplicate documentation., guix-commits, 2024/06/10
- 03/75: gnu: Add texlive-source., guix-commits, 2024/06/10
- 06/75: gnu: texlive-luatex: Set proper default values for "texmfcnf.lua"., guix-commits, 2024/06/10
- 05/75: gnu: texlive-libkpathsea: Better default values in "texmf.cnf"., guix-commits, 2024/06/10
- 07/75: gnu: texlive-context: Fix "context" call., guix-commits, 2024/06/10
- 08/75: gnu: Add texlive-libptexenc., guix-commits, 2024/06/10
- 10/75: gnu: tex.scm: Remove completed TODO., guix-commits, 2024/06/10
- 04/75: gnu: texlive-libkpathsea: Use TEXLIVE-SOURCE.,
guix-commits <=
- 09/75: gnu: texlive-bin: Minimize build surface., guix-commits, 2024/06/10
- 11/75: gnu: texlive-xcjk2uni: Fix build., guix-commits, 2024/06/10
- 13/75: gnu: texlive-latex-bin: Create symlinks for "latex" variants., guix-commits, 2024/06/10
- 15/75: gnu: Add texlive-omegaware-bin., guix-commits, 2024/06/10
- 17/75: gnu: Add texlive-texware-bin., guix-commits, 2024/06/10
- 20/75: gnu: Add texlive-ptex-bin., guix-commits, 2024/06/10
- 14/75: gnu: Add texlive-mfware-bin., guix-commits, 2024/06/10
- 12/75: gnu: texlive-luatex: Fix build., guix-commits, 2024/06/10
- 16/75: gnu: Add texlive-fontware-bin., guix-commits, 2024/06/10
- 19/75: gnu: Add texlive-uptex-bin., guix-commits, 2024/06/10