mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
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
This commit is contained in:
parent
e4aa0fd03a
commit
67f29f0064
1 changed files with 91 additions and 9 deletions
|
@ -35043,6 +35043,7 @@ (define-public texlive-dvipng
|
|||
"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
|
||||
|
@ -35053,18 +35054,99 @@ (define-public texlive-dvipng
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue