[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
42/55: gnu: texlive-dvips: Build executables.
From: |
guix-commits |
Subject: |
42/55: gnu: texlive-dvips: Build executables. |
Date: |
Sat, 18 May 2024 10:33:38 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 064fd1f511148e033dfafce55689465331e2f3ae
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sun May 12 18:22:55 2024 +0200
gnu: texlive-dvips: Build executables.
* gnu/packages/tex.scm (texlive-dvips-bin): New variable.
(texlive-dvips)[arguments]<#:phases>: Include executables.
[native-inputs]: Add TEXLIVE-DVIPS-BIN.
Change-Id: I897c222feca6ae864ef815f026a0318a4c150593
---
gnu/packages/tex.scm | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 2acf2e605e..3c20071f8f 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -38875,6 +38875,53 @@ executable. A secondary design goal is to support as
many PDF features as
does pdfTeX.")
(license license:gpl3+)))
+(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* "--disable-all-pkgs"
+ "--enable-dvipsk"
+ (delete "--disable-dvipsk" #$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")
@@ -38895,6 +38942,16 @@ does pdfTeX.")
"0x11wx9p16z4nxhlbfqlgi5svnr96j1hnvdl9fpv1sr3n1j8m79g")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'install-bin
+ (lambda _
+ (let ((source
+ #$(this-package-native-input "texlive-dvips-bin")))
+ (copy-recursively (string-append source "/bin")
+ (string-append #$output "/bin"))))))))
+ (native-inputs (list texlive-dvips-bin))
(home-page "https://ctan.org/pkg/dvips")
(synopsis "DVI to PostScript drivers")
(description
- 29/55: gnu: texlive-vlna: Build executable., (continued)
- 29/55: gnu: texlive-vlna: Build executable., guix-commits, 2024/05/18
- 30/55: gnu: texlive-pmx: Build executables., guix-commits, 2024/05/18
- 32/55: gnu: texlive-bin: Ignore "utils" directory., guix-commits, 2024/05/18
- 33/55: gnu: texlive-xdvi: Build executables., guix-commits, 2024/05/18
- 34/55: gnu: texlive-ttfutils: Build executables., guix-commits, 2024/05/18
- 24/55: gnu: texlive-xpdfopen: Build executables., guix-commits, 2024/05/18
- 31/55: gnu: texlive-m-tx: Build executable., guix-commits, 2024/05/18
- 35/55: gnu: texlive-tex4ht: Build executables., guix-commits, 2024/05/18
- 36/55: gnu: texlive-seetexk: Build executables., guix-commits, 2024/05/18
- 37/55: gnu: texlive-ps2pk: Build executables., guix-commits, 2024/05/18
- 42/55: gnu: texlive-dvips: Build executables.,
guix-commits <=
- 50/55: gnu: texlive-bin: Only build "web2c" package., guix-commits, 2024/05/18
- 38/55: gnu: texlive-ptex: Build executables., guix-commits, 2024/05/18
- 45/55: gnu: texlive-dviout-util: Build executables., guix-commits, 2024/05/18
- 51/55: gnu: texlive-bibtex8: Build executable., guix-commits, 2024/05/18
- 43/55: gnu: texlive-dvipos: Build executables., guix-commits, 2024/05/18
- 49/55: gnu: texlive-detex: Build executable., guix-commits, 2024/05/18
- 52/55: gnu: texlive-bibtexu: Build executable., guix-commits, 2024/05/18
- 53/55: gnu: Update commentary in "tex.scm"., guix-commits, 2024/05/18
- 54/55: gnu: texlive-libkpathsea: Allow LuaLaTeX finding fonts on the system., guix-commits, 2024/05/18
- 39/55: gnu: texlive-makeindex: Build executables., guix-commits, 2024/05/18