[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
17/55: gnu: texlive-dvipng: Build executables.
From: |
guix-commits |
Subject: |
17/55: gnu: texlive-dvipng: Build executables. |
Date: |
Sat, 18 May 2024 10:33:27 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit f6a5d331a0b05381fb59fb5323c3b545b4a5f18d
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sat May 11 13:59:37 2024 +0200
gnu: texlive-dvipng: Build executables.
* gnu/packages/tex.scm (texlive-dvipng): Inherit from TEXLIVE-BIN.
[source]: Build from a trimmed TEXLIVE-SOURCE.
[arguments]: Build `dvipng' as a single package.
* gnu/packages/tex.scm (texlive-bin): Do not build dvipng.
Change-Id: I6806a962d9a9b9f7f7dfdc84e493356d99c9207c
---
gnu/packages/tex.scm | 54 +++++++++++++++++++++++++++++++++++++++-------------
1 file changed, 41 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index ec8df9c65a..6d369228df 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -705,6 +705,7 @@ and should be preferred to it whenever a package would
otherwise depend on
'("axodraw2"
"chktex"
"cjkutils"
+ "dvipng"
"dvisvgm"
"kpathsea"
"lacheck"
@@ -34082,20 +34083,47 @@ transforms between a DVI file and a text file.")
(define-public texlive-dvipng
(package
+ (inherit texlive-bin)
(name "texlive-dvipng")
- (version (number->string %texlive-revision))
- (source (texlive-origin
- name version
- (list "doc/dvipng/"
- "doc/info/dvipng.info"
- "doc/man/man1/dvigif.1"
- "doc/man/man1/dvigif.man1.pdf"
- "doc/man/man1/dvipng.1"
- "doc/man/man1/dvipng.man1.pdf")
- (base32
- "0r001q4p5569dagayds1c56y10ls6f6v7mmywiw81l995q16apxi")))
- (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 "utils" '())
+ (delete-other-directories "texk" '("dvipng"))))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons* "--disable-all-pkgs"
+ "--enable-dvipng"
+ "--with-system-freetype2"
+ "--with-system-gd"
+ "--with-system-libpng"
+ (delete "--disable-dvipng" #$flags)))
+ ((#:phases _)
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "texk/dvipng"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "texk/dvipng"
+ (invoke "make" "install"))))))))
+ (inputs (list freetype gd libpng))
(home-page "https://ctan.org/pkg/dvipng")
(synopsis "DVI to PNG/GIF converter")
(description
- 07/55: gnu: texlive-libkpathsea: Set sane values in "texmf.cnf"., (continued)
- 07/55: gnu: texlive-libkpathsea: Set sane values in "texmf.cnf"., guix-commits, 2024/05/18
- 08/55: gnu: texlive-dvisvgm: Build executables., guix-commits, 2024/05/18
- 09/55: gnu: texlive-upmendex: Build executable., guix-commits, 2024/05/18
- 10/55: gnu: texlive-xindy: Refactor package., guix-commits, 2024/05/18
- 12/55: gnu: texlive-bin: Skip building axodraw2., guix-commits, 2024/05/18
- 11/55: gnu: texlive-bin: Do not build Xindy., guix-commits, 2024/05/18
- 15/55: gnu: texlive-lcdftypetools: Build executables., guix-commits, 2024/05/18
- 13/55: gnu: texlive-cjkutils: Build executables., guix-commits, 2024/05/18
- 14/55: gnu: texlive-lacheck: Build executable., guix-commits, 2024/05/18
- 16/55: gnu: texlive-t1utils: Build executables., guix-commits, 2024/05/18
- 17/55: gnu: texlive-dvipng: Build executables.,
guix-commits <=
- 18/55: gnu: texlive-afm2pl: Build executable., guix-commits, 2024/05/18
- 20/55: gnu: texlive-dvi2tty: Build executables., guix-commits, 2024/05/18
- 21/55: gnu: texlive-autosp: Build executable., guix-commits, 2024/05/18
- 22/55: gnu: texlive-velthuis: Build executable., guix-commits, 2024/05/18
- 23/55: gnu: texlive-ps2eps: Build executables., guix-commits, 2024/05/18
- 25/55: gnu: texlive-libkpathsea: Tiny refactoring., guix-commits, 2024/05/18
- 19/55: gnu: Add texlive-libptexenc., guix-commits, 2024/05/18
- 26/55: gnu: texlive-texdoctk: Fix runtime error., guix-commits, 2024/05/18
- 27/55: gnu: texlive-xml2pmx: Build executable., guix-commits, 2024/05/18
- 28/55: gnu: texlive-tpic2pdftex: Build executable., guix-commits, 2024/05/18