[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
51/72: gnu: Add texlive-dvipng-bin.
From: |
guix-commits |
Subject: |
51/72: gnu: Add texlive-dvipng-bin. |
Date: |
Mon, 3 Jun 2024 09:00:11 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 0f9cf297955a13ed456f0ea3a3b21fd82ff7e831
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 d7f71b6970..658d7c77d3 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -35027,6 +35027,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
@@ -35037,18 +35038,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
- 45/72: gnu: Add texlive-chktex-bin., (continued)
- 45/72: gnu: Add texlive-chktex-bin., guix-commits, 2024/06/03
- 34/72: gnu: Add texlive-psutils-bin., guix-commits, 2024/06/03
- 35/72: gnu: Add texlive-tex4ht-bin., guix-commits, 2024/06/03
- 36/72: gnu: Add texlive-xdvi-bin., guix-commits, 2024/06/03
- 37/72: gnu: Add texlive-tpic2pdftex-bin., guix-commits, 2024/06/03
- 41/72: gnu: Add texlive-makeindex-bin., guix-commits, 2024/06/03
- 42/72: gnu: Add texlive-metapost-bin., guix-commits, 2024/06/03
- 43/72: gnu: Add texlive-vlna-bin., guix-commits, 2024/06/03
- 46/72: gnu: Add texlive-detex-bin., guix-commits, 2024/06/03
- 48/72: gnu: Add texlive-dvi2tty-bin., guix-commits, 2024/06/03
- 51/72: gnu: Add texlive-dvipng-bin.,
guix-commits <=
- 52/72: gnu: Add texlive-dvisvgm-bin., guix-commits, 2024/06/03
- 54/72: gnu: Add texlive-lacheck-bin., guix-commits, 2024/06/03
- 50/72: gnu: Add texlive-dviljk-bin., guix-commits, 2024/06/03
- 47/72: gnu: Add texlive-dtl-bin., guix-commits, 2024/06/03
- 49/72: gnu: Add texlive-dvidvi-bin., guix-commits, 2024/06/03
- 53/72: gnu: Add texlive-lcdftypetools-bin., guix-commits, 2024/06/03
- 55/72: gnu: Add texlive-seetexk-bin., guix-commits, 2024/06/03
- 56/72: gnu: Add texlive-ps2eps-bin., guix-commits, 2024/06/03
- 58/72: gnu: texlive-texdoctk: Fix runtime error., guix-commits, 2024/06/03
- 57/72: gnu: Add texlive-t1utils-bin., guix-commits, 2024/06/03