[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
48/54: gnu: texlive-dtl: Build executables.
From: |
guix-commits |
Subject: |
48/54: gnu: texlive-dtl: Build executables. |
Date: |
Tue, 14 May 2024 15:34:38 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 5157979dfbaa9451b2f2c3b80d328ab6120ca17d
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sun May 12 19:17:09 2024 +0200
gnu: texlive-dtl: Build executables.
* gnu/packages/tex.scm (texlive-dtl): Inherit from TEXLIVE-BIN.
[source]: Build from a trimmed TEXLIVE-SOURCE.
[arguments]: Build `dtl' as a single package.
Change-Id: I2d7bfc97cd1ed29c04b72b6505b24a19be6fe26d
---
gnu/packages/tex.scm | 49 ++++++++++++++++++++++++++++++++++++++-----------
1 file changed, 38 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 95a47a934f..601d1d0626 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -34303,18 +34303,45 @@ information on creating packages and documentation.")
(define-public texlive-dtl
(package
+ (inherit texlive-bin)
(name "texlive-dtl")
- (version (number->string %texlive-revision))
- (source (texlive-origin
- name version
- (list "doc/man/man1/dt2dv.1"
- "doc/man/man1/dt2dv.man1.pdf"
- "doc/man/man1/dv2dt.1"
- "doc/man/man1/dv2dt.man1.pdf")
- (base32
- "0kvnsr8nxrys99rp74wlxnisfripx6jpjjkqy38d3d4gw13cvb5g")))
- (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 keep)
+ (with-directory-excursion root
+ (for-each
+ delete-file-recursively
+ (scandir
+ "."
+ (lambda (file)
+ (and (not (member file (append keep '("." ".."))))
+ (eq? 'directory (stat:type (stat file)))))))))))
+ (delete-other-directories "libs" '())
+ (delete-other-directories "utils" '())
+ (delete-other-directories "texk" '("dtl"))))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons* "--disable-all-pkgs"
+ "--enable-dtl"
+ (delete "--disable-dtl" #$flags)))
+ ((#:phases _)
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "texk/dtl"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "texk/dtl"
+ (invoke "make" "install"))))))))
+ (inputs '())
(home-page "https://ctan.org/pkg/dtl")
(synopsis "Tools to dis-assemble and re-assemble DVI files")
(description
- 39/54: gnu: texlive-makeindex: Build executables., (continued)
- 39/54: gnu: texlive-makeindex: Build executables., guix-commits, 2024/05/14
- 38/54: gnu: texlive-ptex: Build executables., guix-commits, 2024/05/14
- 40/54: gnu: texlive-gsftopk: Build executables., guix-commits, 2024/05/14
- 41/54: gnu: texlive-gregoriotex: Build executables., guix-commits, 2024/05/14
- 43/54: gnu: texlive-dvipos: Build executables., guix-commits, 2024/05/14
- 42/54: gnu: texlive-dvips: Build executables., guix-commits, 2024/05/14
- 46/54: gnu: texlive-dviljk: Build executables., guix-commits, 2024/05/14
- 47/54: gnu: texlive-dvidvi: Build executable., guix-commits, 2024/05/14
- 44/54: gnu: texlive-dvipdfmx: Build executables., guix-commits, 2024/05/14
- 45/54: gnu: texlive-dviout-util: Build executables., guix-commits, 2024/05/14
- 48/54: gnu: texlive-dtl: Build executables.,
guix-commits <=
- 49/54: gnu: texlive-detex: Build executable., guix-commits, 2024/05/14
- 50/54: gnu: texlive-bin: Only build "web2c" package., guix-commits, 2024/05/14
- 51/54: gnu: texlive-bibtex8: Build executable., guix-commits, 2024/05/14
- 52/54: gnu: texlive-bibtexu: Build executable., guix-commits, 2024/05/14
- 54/54: gnu: texlive-libkpathsea: Allow LuaLaTeX finding fonts on the system., guix-commits, 2024/05/14
- 53/54: gnu: Update commentary in "tex.scm"., guix-commits, 2024/05/14