[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
48/66: gnu: Add texlive-dviljk-bin.
From: |
guix-commits |
Subject: |
48/66: gnu: Add texlive-dviljk-bin. |
Date: |
Wed, 29 May 2024 10:17:30 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 41b0b656b844c0c2587a5f5e27e888cd14825f61
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Tue May 28 15:59:06 2024 +0200
gnu: Add texlive-dviljk-bin.
* gnu/packages/tex.scm (texlive-dviljk-bin): New variable.
(texlive-dviljk)[propagated-inputs]: Add TEXLIVE-DVILJK-BIN.
Change-Id: I204c06b42175150eec618ed58a1f4e46d6aeb9c5
---
gnu/packages/tex.scm | 95 ++++++++++++++++++++++++++++++++++++++++++++++------
1 file changed, 84 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index c454e9c0cd..8aea3b77db 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -34908,6 +34908,7 @@ file. It also supports XeTeX XDV format.")
"03pi78c8ghy2gghzk1ffrvf5x7h8c1r0pv5pcspwxz365x2rsbjw")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
+ (propagated-inputs (list texlive-dviljk-bin))
(home-page "https://ctan.org/pkg/dviljk")
(synopsis "DVI to Laserjet output")
(description
@@ -34915,20 +34916,92 @@ file. It also supports XeTeX XDV format.")
@command{kpathsea} recursive file searching.")
(license license:gpl3+)))
+(define-public texlive-dviljk-bin
+ (package
+ (inherit texlive-bin)
+ (name "texlive-dviljk-bin")
+ (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" '("dviljk"))))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons "--enable-dviljk" (delete "--enable-web2c" #$flags)))
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "texk/dviljk"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "texk/dviljk"
+ (invoke "make" "install"))))))))
+ (native-inputs (list pkg-config))
+ (inputs (list texlive-libkpathsea))
+ (propagated-inputs '())
+ (home-page (package-home-page texlive-dviljk))
+ (synopsis "Binary for @code{texlive-dviljk}")
+ (description
+ "This package provides the binary for @code{texlive-dviljk}.")
+ (license (package-license texlive-dviljk))))
+
(define-public texlive-dviout-util
(package
+ (inherit texlive-bin)
(name "texlive-dviout-util")
- (version (number->string %texlive-revision))
- (source (texlive-origin
- name version
- (list "doc/man/man1/chkdvifont.1"
- "doc/man/man1/chkdvifont.man1.pdf"
- "doc/man/man1/dvispc.1"
- "doc/man/man1/dvispc.man1.pdf")
- (base32
- "098pksgf2iamq96rmzg5fw7i9dlpvdksficsz1bf8k8z4djnbk8n")))
- (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" '("dviout-util" "tests"))))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons* "--enable-dviout-util" (delete "--enable-web2c" #$flags)))
+ ((#:phases _)
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "texk/dviout-util"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "texk/dviout-util"
+ (invoke "make" "install"))))))))
+ (inputs (list texlive-libptexenc))
(home-page "https://www.tug.org/texlive/")
(synopsis "Utilities from the @code{dviout} package")
(description
- 37/66: gnu: Add texlive-upmendex-bin., (continued)
- 37/66: gnu: Add texlive-upmendex-bin., guix-commits, 2024/05/29
- 41/66: gnu: Add texlive-vlna-bin., guix-commits, 2024/05/29
- 42/66: gnu: Add texlive-cjkutils-bin., guix-commits, 2024/05/29
- 43/66: gnu: Add texlive-chktex-bin., guix-commits, 2024/05/29
- 39/66: gnu: Add texlive-makeindex-bin., guix-commits, 2024/05/29
- 40/66: gnu: Add texlive-metapost-bin., guix-commits, 2024/05/29
- 38/66: gnu: Add texlive-gsftopk-bin., guix-commits, 2024/05/29
- 44/66: gnu: Add texlive-detex-bin., guix-commits, 2024/05/29
- 45/66: gnu: Add texlive-dtl-bin., guix-commits, 2024/05/29
- 46/66: gnu: Add texlive-dvi2tty-bin., guix-commits, 2024/05/29
- 48/66: gnu: Add texlive-dviljk-bin.,
guix-commits <=
- 51/66: gnu: Add texlive-lcdftypetools-bin., guix-commits, 2024/05/29
- 52/66: gnu: Add texlive-lacheck-bin., guix-commits, 2024/05/29
- 50/66: gnu: Add texlive-dvisvgm-bin., guix-commits, 2024/05/29
- 47/66: gnu: Add texlive-dvidvi-bin., guix-commits, 2024/05/29
- 49/66: gnu: Add texlive-dvipng-bin., guix-commits, 2024/05/29
- 54/66: gnu: Add texlive-ps2eps-bin., guix-commits, 2024/05/29
- 55/66: gnu: Add texlive-t1utils-bin., guix-commits, 2024/05/29
- 58/66: gnu: texlive-kpathsea: Propagate the binaries., guix-commits, 2024/05/29
- 59/66: gnu: Add texlive-xml2pmx-bin., guix-commits, 2024/05/29
- 60/66: gnu: texlive-dviout-util: Build binaries separately., guix-commits, 2024/05/29