[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
35/73: gnu: Add texlive-tex4ht-bin.
From: |
guix-commits |
Subject: |
35/73: gnu: Add texlive-tex4ht-bin. |
Date: |
Tue, 4 Jun 2024 16:39:58 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 8872a3a5d612de51b58ba48018de67e35b9a0000
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Tue May 28 00:17:13 2024 +0200
gnu: Add texlive-tex4ht-bin.
* gnu/packages/tex.scm (texlive-tex4ht-bin): New variable.
(texlive-tex4ht)[arguments]<#:link-scripts>: Remove as those are now
provided by
TEXLIVE-TEX4HT-BIN.
[inputs]: Remove PERL.
[propagated-inputs]: Add TEXLIVE-TEX4HT-BIN.
Change-Id: Ib9a677d61a86419db4f5d60401566d340fbcf80d
---
gnu/packages/tex.scm | 60 ++++++++++++++++++++++++++++++++++++++++------------
1 file changed, 47 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 2d2928e7f4..eda83f8f83 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -43697,19 +43697,7 @@ for use in planning a class.")
"1svmivc272xj9fzy5p055lp7g9vcqs75jp4x54682yrq0qizv03c")))
(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))
+ (propagated-inputs (list texlive-tex4ht-bin))
(home-page "https://ctan.org/pkg/tex4ht")
(synopsis "Convert (La)TeX to HTML/XML")
(description
@@ -43724,6 +43712,52 @@ TeX4ht to approach the robustness characteristic of
restricted-syntax systems
such as @code{gellmu}.")
(license license:lppl)))
+(define-public 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 "--enable-tex4htk" (delete "--enable-web2c" #$flags)))
+ ((#:phases phases)
+ #~(modify-phases #$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"))))))))
+ (native-inputs (list pkg-config))
+ (inputs (list perl texlive-libkpathsea))
+ (propagated-inputs '())
+ (home-page (package-home-page texlive-tex4ht))
+ (synopsis "Binaries for @code{texlive-tex4ht}")
+ (description
+ "This package provides the binaries for @code{texlive-tex4ht}.")
+ (license (package-license texlive-tex4ht))))
+
(define-public texlive-tex4ebook
(package
(name "texlive-tex4ebook")
- 37/73: gnu: Add texlive-tpic2pdftex-bin., (continued)
- 37/73: gnu: Add texlive-tpic2pdftex-bin., guix-commits, 2024/06/04
- 38/73: gnu: Add texlive-ttfutils-bin., guix-commits, 2024/06/04
- 42/73: gnu: Add texlive-metapost-bin., guix-commits, 2024/06/04
- 45/73: gnu: Add texlive-chktex-bin., guix-commits, 2024/06/04
- 47/73: gnu: Add texlive-dtl-bin., guix-commits, 2024/06/04
- 52/73: gnu: Add texlive-dvisvgm-bin., guix-commits, 2024/06/04
- 50/73: gnu: Add texlive-dviljk-bin., guix-commits, 2024/06/04
- 49/73: gnu: Add texlive-dvidvi-bin., guix-commits, 2024/06/04
- 60/73: gnu: texlive-kpathsea: Propagate the binaries., guix-commits, 2024/06/04
- 59/73: gnu: Add texlive-xpdfopen-bin., guix-commits, 2024/06/04
- 35/73: gnu: Add texlive-tex4ht-bin.,
guix-commits <=
- 40/73: gnu: Add texlive-gsftopk-bin., guix-commits, 2024/06/04
- 70/73: gnu: texlive importer: Propagate binaries when necessary., guix-commits, 2024/06/04
- 51/73: gnu: Add texlive-dvipng-bin., guix-commits, 2024/06/04
- 62/73: gnu: Add texlive-luajittex-bin., guix-commits, 2024/06/04
- 69/73: gnu: texlive-xindy: Build binary separately., guix-commits, 2024/06/04
- 21/73: gnu: Add texlive-dvipdfmx-bin., guix-commits, 2024/06/04
- 55/73: gnu: Add texlive-seetexk-bin., guix-commits, 2024/06/04
- 57/73: gnu: Add texlive-t1utils-bin., guix-commits, 2024/06/04
- 61/73: gnu: Add texlive-xml2pmx-bin., guix-commits, 2024/06/04
- 71/73: gnu: Update commentary section in "tex.scm"., guix-commits, 2024/06/04