[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20/54: gnu: texlive-dvi2tty: Build executables.
From: |
guix-commits |
Subject: |
20/54: gnu: texlive-dvi2tty: Build executables. |
Date: |
Tue, 14 May 2024 15:34:20 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 08aaceadfce16cc1509c8ad5a3d43cb57a3928f2
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sat May 11 15:45:50 2024 +0200
gnu: texlive-dvi2tty: Build executables.
* gnu/packages/tex.scm (texlive-dvi2tty): Inherit from TEXLIVE-BIN.
[source]: Build from a trimmed TEXLIVE-SOURCE.
[arguments]: Build `dvi2tty' as a single package.
[native-inputs]: Add PKG-CONFIG and TEXLIVE-LIBKPATHSEA.
[inputs]: Add TEXLIVE-LIBPTEXENC.
* gnu/packages/tex.scm (texlive-bin): Do not build dvi2tty.
Change-Id: I75b309cbf67e0a0f2635c93fea65f103086ff5fe
---
gnu/packages/tex.scm | 50 +++++++++++++++++++++++++++++++++++++++-----------
1 file changed, 39 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 3e66128fe1..cf9c95b0d4 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -766,6 +766,7 @@ and should be preferred to it whenever a package would
otherwise depend on
"axodraw2"
"chktex"
"cjkutils"
+ "dvi2tty"
"dvipng"
"dvisvgm"
"kpathsea"
@@ -34035,18 +34036,45 @@ homebrewed classes and package files.")
(define-public texlive-dvi2tty
(package
+ (inherit texlive-bin)
(name "texlive-dvi2tty")
- (version (number->string %texlive-revision))
- (source (texlive-origin
- name version
- (list "doc/man/man1/disdvi.1"
- "doc/man/man1/disdvi.man1.pdf"
- "doc/man/man1/dvi2tty.1"
- "doc/man/man1/dvi2tty.man1.pdf")
- (base32
- "108y0qxh13x0iivgsvkk4370f471p03nyl4x9nn7lng1wrsafp6h")))
- (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 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" '("dvi2tty"))))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons* "--disable-all-pkgs"
+ "--enable-dvi2tty"
+ (delete "--disable-dvi2tty" #$flags)))
+ ((#:phases _)
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "texk/dvi2tty"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "texk/dvi2tty"
+ (invoke "make" "install"))))))))
+ (native-inputs (list pkg-config texlive-libkpathsea))
+ (inputs (list texlive-libptexenc))
(home-page "https://ctan.org/pkg/dvi2tty")
(synopsis "Produce ASCII from DVI")
(description
- 11/54: gnu: texlive-bin: Do not build Xindy., (continued)
- 11/54: gnu: texlive-bin: Do not build Xindy., guix-commits, 2024/05/14
- 17/54: gnu: texlive-dvipng: Build executables., guix-commits, 2024/05/14
- 23/54: gnu: texlive-ps2eps: Build executables., guix-commits, 2024/05/14
- 16/54: gnu: texlive-t1utils: Build executables., guix-commits, 2024/05/14
- 18/54: gnu: texlive-afm2pl: Build executable., guix-commits, 2024/05/14
- 19/54: gnu: Add texlive-libptexenc., guix-commits, 2024/05/14
- 22/54: gnu: texlive-velthuis: Build executable., guix-commits, 2024/05/14
- 24/54: gnu: texlive-xpdfopen: Build executables., guix-commits, 2024/05/14
- 25/54: gnu: texlive-libkpathsea: Tiny refactoring., guix-commits, 2024/05/14
- 21/54: gnu: texlive-autosp: Build executable., guix-commits, 2024/05/14
- 20/54: gnu: texlive-dvi2tty: Build executables.,
guix-commits <=
- 26/54: gnu: texlive-texdoctk: Fix runtime error., guix-commits, 2024/05/14
- 28/54: gnu: texlive-tpic2pdftex: Build executable., guix-commits, 2024/05/14
- 27/54: gnu: texlive-xml2pmx: Build executable., guix-commits, 2024/05/14
- 30/54: gnu: texlive-pmx: Build executables., guix-commits, 2024/05/14
- 29/54: gnu: texlive-vlna: Build executable., guix-commits, 2024/05/14
- 31/54: gnu: texlive-m-tx: Build executable., guix-commits, 2024/05/14
- 33/54: gnu: texlive-xdvi: Build executables., guix-commits, 2024/05/14
- 32/54: gnu: texlive-bin: Ignore "utils" directory., guix-commits, 2024/05/14
- 35/54: gnu: texlive-tex4ht: Build executables., guix-commits, 2024/05/14
- 34/54: gnu: texlive-ttfutils: Build executables., guix-commits, 2024/05/14