[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
36/54: gnu: texlive-seetexk: Build executables.
From: |
guix-commits |
Subject: |
36/54: gnu: texlive-seetexk: Build executables. |
Date: |
Tue, 14 May 2024 15:34:31 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit dff51e14b60b0b7c02c0029e9a59fd75c382def1
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sun May 12 15:17:06 2024 +0200
gnu: texlive-seetexk: Build executables.
* gnu/packages/tex.scm (texlive-seetexk): Inherit from TEXLIVE-BIN.
[source]: Build from a trimmed TEXLIVE-SOURCE.
[arguments]: Build `seetexk' as a single package.
Change-Id: I86594d2421cdbb0599c2bb0f0fa009042ee7cd7e
---
gnu/packages/tex.scm | 56 ++++++++++++++++++++++++++++++++++++----------------
1 file changed, 39 insertions(+), 17 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 72186ccf71..d105efc4ce 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -39699,22 +39699,44 @@ stylized format that Metapost outputs.")
(define-public texlive-seetexk
(package
+ (inherit texlive-bin)
(name "texlive-seetexk")
- (version (number->string %texlive-revision))
- (source (texlive-origin
- name version
- (list "doc/man/man1/dvibook.1"
- "doc/man/man1/dvibook.man1.pdf"
- "doc/man/man1/dviconcat.1"
- "doc/man/man1/dviconcat.man1.pdf"
- "doc/man/man1/dviselect.1"
- "doc/man/man1/dviselect.man1.pdf"
- "doc/man/man1/dvitodvi.1"
- "doc/man/man1/dvitodvi.man1.pdf")
- (base32
- "1bhv5xgv8jpam5apdybd0cggnvcizk2r6zs7lim1hmhzafpqqlcx")))
- (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" '("seetexk"))))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons* "--disable-all-pkgs"
+ "--enable-seetexk"
+ (delete "--disable-seetexk" #$flags)))
+ ((#:phases _)
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "texk/seetexk"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "texk/seetexk"
+ (invoke "make" "install"))))))))
+ (inputs '())
(home-page "https://ctan.org/pkg/dvibook")
(synopsis "Utilities for manipulating DVI files")
(description
@@ -39734,8 +39756,8 @@ a new DVI file;
@item @command{dvitodvi}, which will rearrange the pages of a DVI file to
create a new file;
-@item @command{libtex}, a library for manipulating the files, from the old
-SeeTeX project.
+@item @code{libtex}, a library for manipulating the files, from the old SeeTeX
+project.
@end itemize")
(license license:expat)))
- 26/54: gnu: texlive-texdoctk: Fix runtime error., (continued)
- 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
- 36/54: gnu: texlive-seetexk: Build executables.,
guix-commits <=
- 37/54: gnu: texlive-ps2pk: Build executables., guix-commits, 2024/05/14
- 39/54: gnu: texlive-makeindex: Build executables., guix-commits, 2024/05/14
- 38/54: gnu: texlive-ptex: Build executables., guix-commits, 2024/05/14
- 40/54: gnu: texlive-gsftopk: Build executables., guix-commits, 2024/05/14
- 41/54: gnu: texlive-gregoriotex: Build executables., guix-commits, 2024/05/14
- 43/54: gnu: texlive-dvipos: Build executables., guix-commits, 2024/05/14
- 42/54: gnu: texlive-dvips: Build executables., guix-commits, 2024/05/14
- 46/54: gnu: texlive-dviljk: Build executables., guix-commits, 2024/05/14
- 47/54: gnu: texlive-dvidvi: Build executable., guix-commits, 2024/05/14
- 44/54: gnu: texlive-dvipdfmx: Build executables., guix-commits, 2024/05/14