[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
35/54: gnu: texlive-tex4ht: Build executables.
From: |
guix-commits |
Subject: |
35/54: gnu: texlive-tex4ht: Build executables. |
Date: |
Tue, 14 May 2024 15:34:30 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 0d09837c26b86ae5d23b9ce72bb28aec4b7984ac
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sun May 12 15:11:29 2024 +0200
gnu: texlive-tex4ht: Build executables.
* gnu/packages/tex.scm (texlive-tex4ht-bin): New variable.
(texlive-tex4ht)[arguments]<#:phases>: Include executables.
[native-inputs]: Add TEXLIVE-TEX4HT-BIN.
Change-Id: I9f991d081a0580bc2fa45c5be49d1ae9801d356f
---
gnu/packages/tex.scm | 77 ++++++++++++++++++++++++++++++++++++++++++++--------
1 file changed, 65 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 291fe88f38..72186ccf71 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -43426,6 +43426,47 @@ package written by Bill Mitchell, which is intended to
print a term calendar
for use in planning a class.")
(license license:lppl1.3c)))
+(define texlive-tex4ht-bin
+ (package
+ (inherit texlive-bin)
+ (name "texlive-tex4ht-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" '("tex4htk"))))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons* "--disable-all-pkgs"
+ "--enable-tex4htk"
+ (delete "--disable-tex4htk" #$flags)))
+ ((#:phases _)
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "texk/tex4htk"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "texk/tex4htk"
+ (invoke "make" "install"))))))))
+ (inputs '())))
+
(define-public texlive-tex4ht
(package
(name "texlive-tex4ht")
@@ -43442,18 +43483,30 @@ for use in planning a class.")
(outputs '("out" "doc"))
(build-system texlive-build-system)
(arguments
- (list #:link-scripts
- #~(list "ht.sh"
- "htcontext.sh"
- "htlatex.sh"
- "htmex.sh"
- "httex.sh"
- "httexi.sh"
- "htxelatex.sh"
- "htxetex.sh"
- "mk4ht.pl"
- "xhlatex.sh")))
- (inputs (list perl))
+ (list
+ #:link-scripts #~(list "ht.sh"
+ "htcontext.sh"
+ "htlatex.sh"
+ "htmex.sh"
+ "httex.sh"
+ "httexi.sh"
+ "htxelatex.sh"
+ "htxetex.sh"
+ "mk4ht.pl"
+ "xhlatex.sh")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'link-scripts 'install-bin
+ (lambda* (#:key inputs native-inputs #:allow-other-keys)
+ (let ((source #$(this-package-native-input
"texlive-tex4ht-bin")))
+ (with-directory-excursion (string-append #$output "/bin")
+ ;; Install non-scripts, already taken care of with
+ ;; `link-scripts' phase.
+ (for-each (lambda (f) (install-file f "."))
+ (find-files (string-append source "/bin")
+ (lambda (_ s)
+ (eq? 'regular (stat:type
s))))))))))))
+ (native-inputs (list texlive-tex4ht-bin))
(home-page "https://ctan.org/pkg/tex4ht")
(synopsis "Convert (La)TeX to HTML/XML")
(description
- 21/54: gnu: texlive-autosp: Build executable., (continued)
- 21/54: gnu: texlive-autosp: Build executable., guix-commits, 2024/05/14
- 20/54: gnu: texlive-dvi2tty: Build executables., guix-commits, 2024/05/14
- 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 <=
- 34/54: gnu: texlive-ttfutils: Build executables., guix-commits, 2024/05/14
- 36/54: gnu: texlive-seetexk: Build executables., guix-commits, 2024/05/14
- 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