[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/54: gnu: texlive-t1utils: Build executables.
From: |
guix-commits |
Subject: |
16/54: gnu: texlive-t1utils: Build executables. |
Date: |
Tue, 14 May 2024 15:34:16 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 076060e2558280200180082b2a876fa5813166cf
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sat May 11 13:49:05 2024 +0200
gnu: texlive-t1utils: Build executables.
* gnu/packages/tex.scm (texlive-t1utils): Inherit from TEXLIVE-BIN.
[source]: Build from a trimmed TEXLIVE-SOURCE.
[arguments]: Build `t1utils' as a single package.
* gnu/packages/tex.scm (texlive-bin): Do not build t1utils.
Change-Id: I0f3feae24dc8499b25f8889a50ceb52fb60a3b33
---
gnu/packages/tex.scm | 58 +++++++++++++++++++++++++++++++++++-----------------
1 file changed, 39 insertions(+), 19 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index a6ba4dd40e..ec8df9c65a 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -710,6 +710,7 @@ and should be preferred to it whenever a package would
otherwise depend on
"lacheck"
"lcdf-typetools"
"psutils"
+ "t1utils"
"upmendex"
"xindy"))))
#:phases
@@ -42806,26 +42807,45 @@ known as railroad diagrams.")
(define-public texlive-t1utils
(package
+ (inherit texlive-bin)
(name "texlive-t1utils")
- (version (number->string %texlive-revision))
- (source (texlive-origin
- name version
- (list "doc/man/man1/t1ascii.1"
- "doc/man/man1/t1ascii.man1.pdf"
- "doc/man/man1/t1asm.1"
- "doc/man/man1/t1asm.man1.pdf"
- "doc/man/man1/t1binary.1"
- "doc/man/man1/t1binary.man1.pdf"
- "doc/man/man1/t1disasm.1"
- "doc/man/man1/t1disasm.man1.pdf"
- "doc/man/man1/t1mac.1"
- "doc/man/man1/t1mac.man1.pdf"
- "doc/man/man1/t1unmac.1"
- "doc/man/man1/t1unmac.man1.pdf")
- (base32
- "0hdk57179nn57wnmvr3jasjavkvmrn6ryph6jvjhsfqprn7bhf1y")))
- (outputs '("out" "doc"))
- (build-system texlive-build-system)
+ (source
+ (origin
+ (inherit texlive-source)
+ (modules '((guix build utils)
+ (ice-9 ftw)))
+ (snippet
+ #~(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 "texk" '())
+ (delete-other-directories "utils" '("t1utils"))))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons* "--disable-all-pkgs"
+ "--enable-t1utils"
+ (delete "--disable-t1utils" #$flags)))
+ ((#:phases _)
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "utils/t1utils"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "utils/t1utils"
+ (invoke "make" "install"))))))))
+ (native-inputs '())
+ (inputs '())
(home-page "https://ctan.org/pkg/t1utils")
(synopsis "Simple Type 1 font manipulation programs")
(description
- 03/54: gnu: texlive-psutils: Build executables., (continued)
- 03/54: gnu: texlive-psutils: Build executables., guix-commits, 2024/05/14
- 09/54: gnu: texlive-upmendex: Build executable., guix-commits, 2024/05/14
- 08/54: gnu: texlive-dvisvgm: Build executables., guix-commits, 2024/05/14
- 14/54: gnu: texlive-lacheck: Build executable., guix-commits, 2024/05/14
- 15/54: gnu: texlive-lcdftypetools: Build executables., guix-commits, 2024/05/14
- 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 <=
- 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, 2024/05/14
- 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