[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
24/78: gnu: Add texlive-dvipdfmx-bin.
From: |
guix-commits |
Subject: |
24/78: gnu: Add texlive-dvipdfmx-bin. |
Date: |
Wed, 12 Jun 2024 17:00:33 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit e74dc156bfa2c3fb030432a2881c4cf55e4d417f
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Mon May 27 18:46:41 2024 +0200
gnu: Add texlive-dvipdfmx-bin.
* gnu/packages/tex.scm (texlive-dvipdfmx-bin): New variable.
(texlive-dvipdfmx)[propagated-inputs]: Add TEXLIVE-DVIPDFMX-BIN.
Change-Id: I189a1561dd19613775b8c2e4422ffceeb5f2f27a
---
gnu/packages/tex.scm | 93 +++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 92 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 9f507fd97c..963e625d84 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -38473,7 +38473,7 @@ TeX tree.")
;; This map file is supposed to be generated in a profile hook.
(lambda _
(delete-file "fonts/map/dvipdfmx/updmap/kanjix.map"))))))
- (propagated-inputs (list texlive-glyphlist))
+ (propagated-inputs (list texlive-glyphlist texlive-dvipdfmx-bin))
(home-page "https://ctan.org/pkg/dvipdfmx")
(synopsis "Extended version of dvipdfm")
(description
@@ -38485,6 +38485,97 @@ executable. A secondary design goal is to support as
many PDF features as
does pdfTeX.")
(license license:gpl3+)))
+(define-public texlive-dvipdfmx-bin
+ (package
+ (inherit texlive-bin)
+ (name "texlive-dvipdfmx-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" '())
+ (delete-other-directories "utils" '())
+ (delete-other-directories "texk" '("dvipdfm-x"))))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons "--enable-dvipdfm-x" (delete "--enable-web2c" #$flags)))
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "texk/dvipdfm-x"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "texk/dvipdfm-x"
+ (invoke "make" "install"))))))))
+ (native-inputs (list pkg-config))
+ (inputs (list libpaper libpng texlive-libkpathsea))
+ (propagated-inputs '())
+ (home-page (package-home-page texlive-dvipdfmx))
+ (synopsis "Binaries for @code{texlive-dvipdfmx}")
+ (description
+ "This package provides the binaries for @code{texlive-dvipdfmx}.")
+ (license (package-license texlive-dvipdfmx))))
+
+(define texlive-dvips-bin
+ (package
+ (inherit texlive-bin)
+ (name "texlive-dvips-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" '())
+ (delete-other-directories "utils" '())
+ ;; XXX: One test needs "texmf.cnf" file to be present in the tree.
+ (delete-other-directories "texk" '("dvipsk" "kpathsea" "tests"))
+ (with-directory-excursion "texk/kpathsea"
+ (for-each
+ delete-file-recursively
+ (scandir "." (lambda (f)
+ (not (member f '("." ".." "texmf.cnf")))))))))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons* "--enable-dvipsk" (delete "--enable-web2c" #$flags)))
+ ((#:phases _)
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "texk/dvipsk"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "texk/dvipsk"
+ (invoke "make" "install"))))))))
+ (inputs '())))
+
(define-public texlive-dvips
(package
(name "texlive-dvips")
- 16/78: gnu: Add texlive-omegaware-bin., (continued)
- 16/78: gnu: Add texlive-omegaware-bin., guix-commits, 2024/06/12
- 21/78: gnu: Add texlive-ptex-bin., guix-commits, 2024/06/12
- 20/78: gnu: Add texlive-uptex-bin., guix-commits, 2024/06/12
- 18/78: gnu: Add texlive-texware-bin., guix-commits, 2024/06/12
- 30/78: gnu: Add texlive-autosp-bin., guix-commits, 2024/06/12
- 32/78: gnu: Add texlive-pmx-bin., guix-commits, 2024/06/12
- 13/78: gnu: texlive-csplain: Fix build., guix-commits, 2024/06/12
- 27/78: gnu: Add texlive-hitex-bin., guix-commits, 2024/06/12
- 29/78: gnu: Add texlive-m-tx-bin., guix-commits, 2024/06/12
- 31/78: gnu: Add texlive-gregoriotex-bin., guix-commits, 2024/06/12
- 24/78: gnu: Add texlive-dvipdfmx-bin.,
guix-commits <=
- 22/78: gnu: Add texlive-bibtex-bin., guix-commits, 2024/06/12
- 23/78: gnu: Add texlive-dvicopy-bin., guix-commits, 2024/06/12
- 19/78: gnu: Add texlive-patgen-bin., guix-commits, 2024/06/12
- 26/78: gnu: Add texlive-aleph-bin., guix-commits, 2024/06/12
- 28/78: gnu: Add texlive-afm2pl-bin., guix-commits, 2024/06/12
- 33/78: gnu: Add texlive-velthuis-bin., guix-commits, 2024/06/12
- 35/78: gnu: Add texlive-bibtexu-bin., guix-commits, 2024/06/12
- 40/78: gnu: Add texlive-tpic2pdftex-bin., guix-commits, 2024/06/12
- 44/78: gnu: Add texlive-makeindex-bin., guix-commits, 2024/06/12
- 46/78: gnu: Add texlive-vlna-bin., guix-commits, 2024/06/12