[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
54/81: gnu: Add texlive-dvipng-bin.
From: |
guix-commits |
Subject: |
54/81: gnu: Add texlive-dvipng-bin. |
Date: |
Tue, 18 Jun 2024 04:40:33 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit b192b5458943ddea55d65fbb6f34df999e3abdf1
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Tue May 28 16:02:19 2024 +0200
gnu: Add texlive-dvipng-bin.
* gnu/packages/tex.scm (texlive-dvipng-bin): New variable.
(texlive-dvipng)[propagated-inputs]: Add TEXLIVE-DVIPNG-BIN.
Change-Id: I63d8c06ea96d3f153f94abac1a7830aaa54b315c
---
gnu/packages/tex.scm | 100 ++++++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 91 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 6973fd1626..36c086aa08 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -35042,6 +35042,7 @@ transforms between a DVI file and a text file.")
"0r001q4p5569dagayds1c56y10ls6f6v7mmywiw81l995q16apxi")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
+ (propagated-inputs (list texlive-dvipng-bin))
(home-page "https://ctan.org/pkg/dvipng")
(synopsis "DVI to PNG/GIF converter")
(description
@@ -35052,18 +35053,99 @@ on-the-fly, as needed in @code{preview-latex},
WeBWorK and others. It does
not read the postamble, so it can be started before TeX finishes.")
(license license:lgpl3)))
+(define-public texlive-dvipng-bin
+ (package
+ (inherit texlive-bin)
+ (name "texlive-dvipng-bin")
+ (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" '("xpdf"))
+ (delete-other-directories "utils" '())
+ (delete-other-directories "texk" '("dvipng"))))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons "--enable-dvipng" (delete "--disable-web2c" #$flags)))
+ ((#:phases phases)
+ #~(modify-phases #$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"))))))))
+ (native-inputs (list pkg-config))
+ (inputs
+ (list freetype
+ gd
+ graphite2
+ harfbuzz
+ icu4c
+ libpng
+ potrace
+ texlive-libkpathsea
+ zziplib))
+ (propagated-inputs '())
+ (home-page (package-home-page texlive-dvipng))
+ (synopsis "Binaries for @code{texlive-dvipng}")
+ (description
+ "This package provides the binaries for @code{texlive-dvipng}.")
+ (license (package-license texlive-dvipng))))
+
(define-public texlive-dvipos
(package
+ (inherit texlive-bin)
(name "texlive-dvipos")
- (version (number->string %texlive-revision))
- (source (texlive-origin
- name version
- (list "doc/man/man1/dvipos.1"
- "doc/man/man1/dvipos.man1.pdf")
- (base32
- "0dmaas4m9y4px53vlg0jr73xviki338fm2n176l8ldwqj0vvq1b8")))
- (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" '("dvipos"))))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons* "--enable-dvipos" (delete "--enable-web2c" #$flags)))
+ ((#:phases _)
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "texk/dvipos"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "texk/dvipos"
+ (invoke "make" "install"))))))))
(home-page "https://www.tug.org/texlive/")
(synopsis "Support DVI @samp{pos:} specials used by ConTeXt DVI output")
(description
- 60/81: gnu: Add texlive-t1utils-bin., (continued)
- 60/81: gnu: Add texlive-t1utils-bin., guix-commits, 2024/06/18
- 58/81: gnu: Add texlive-seetexk-bin., guix-commits, 2024/06/18
- 64/81: gnu: Add texlive-xml2pmx-bin., guix-commits, 2024/06/18
- 70/81: gnu: texlive-musixtnt: Build binary separately., guix-commits, 2024/06/18
- 69/81: gnu: texlive-dvipos: Build binaries separately., guix-commits, 2024/06/18
- 76/81: gnu: texlive-xits: Fix typo in description., guix-commits, 2024/06/18
- 80/81: gnu: texlive-hyphen-complete: Fix locations., guix-commits, 2024/06/18
- 49/81: gnu: Add texlive-detex-bin., guix-commits, 2024/06/18
- 47/81: gnu: Add texlive-cjkutils-bin., guix-commits, 2024/06/18
- 50/81: gnu: Add texlive-dtl-bin., guix-commits, 2024/06/18
- 54/81: gnu: Add texlive-dvipng-bin.,
guix-commits <=
- 52/81: gnu: Add texlive-dvidvi-bin., guix-commits, 2024/06/18
- 55/81: gnu: Add texlive-dvisvgm-bin., guix-commits, 2024/06/18
- 56/81: gnu: Add texlive-lcdftypetools-bin., guix-commits, 2024/06/18
- 62/81: gnu: Add texlive-xpdfopen-bin., guix-commits, 2024/06/18
- 61/81: gnu: texlive-texdoctk: Fix runtime error., guix-commits, 2024/06/18
- 63/81: gnu: texlive-kpathsea: Propagate the binaries., guix-commits, 2024/06/18
- 59/81: gnu: Add texlive-ps2eps-bin., guix-commits, 2024/06/18
- 57/81: gnu: Add texlive-lacheck-bin., guix-commits, 2024/06/18
- 68/81: gnu: texlive-ps2pk: Build binaries separately., guix-commits, 2024/06/18
- 65/81: gnu: Add texlive-luajittex-bin., guix-commits, 2024/06/18