[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
53/97: gnu: Add texlive-dviljk-bin.
From: |
guix-commits |
Subject: |
53/97: gnu: Add texlive-dviljk-bin. |
Date: |
Fri, 21 Jun 2024 06:41:16 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 2dd37d01cb514df12278c0e2078af88cd7859acd
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 845dcfc655..6973fd1626 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -34923,6 +34923,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
@@ -34930,20 +34931,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
- 43/97: gnu: Add texlive-gsftopk-bin., (continued)
- 43/97: gnu: Add texlive-gsftopk-bin., guix-commits, 2024/06/21
- 55/97: gnu: Add texlive-dvisvgm-bin., guix-commits, 2024/06/21
- 67/97: gnu: texlive-dviout-util: Build binaries separately., guix-commits, 2024/06/21
- 71/97: gnu: texlive-axodraw2: Build binary separately., guix-commits, 2024/06/21
- 75/97: gnu: Update commentary section in "tex.scm"., guix-commits, 2024/06/21
- 83/97: guix: import texlive: Sort modules alphabetically., guix-commits, 2024/06/21
- 91/97: gnu: texlive-scripts: Allow auto-updates., guix-commits, 2024/06/21
- 36/97: gnu: Add texlive-dvips-bin., guix-commits, 2024/06/21
- 39/97: gnu: Add texlive-xdvi-bin., guix-commits, 2024/06/21
- 50/97: gnu: Add texlive-dtl-bin., guix-commits, 2024/06/21
- 53/97: gnu: Add texlive-dviljk-bin.,
guix-commits <=
- 26/97: gnu: Add texlive-aleph-bin., guix-commits, 2024/06/21
- 41/97: gnu: Add texlive-ttfutils-bin., guix-commits, 2024/06/21
- 52/97: gnu: Add texlive-dvidvi-bin., guix-commits, 2024/06/21
- 56/97: gnu: Add texlive-lcdftypetools-bin., guix-commits, 2024/06/21
- 58/97: gnu: Add texlive-seetexk-bin., guix-commits, 2024/06/21
- 59/97: gnu: Add texlive-ps2eps-bin., guix-commits, 2024/06/21
- 66/97: gnu: Add texlive-mflua-bin., guix-commits, 2024/06/21
- 74/97: gnu: texlive-docstrip: Remove it., guix-commits, 2024/06/21
- 78/97: gnu: texlive-scripts: Add missing "mktexfmt" symlink., guix-commits, 2024/06/21
- 79/97: gnu: python-sphinx: Fix build., guix-commits, 2024/06/21