[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
46/69: gnu: Add texlive-detex-bin.
From: |
guix-commits |
Subject: |
46/69: gnu: Add texlive-detex-bin. |
Date: |
Fri, 31 May 2024 19:04:52 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit dd2482af064d481ad64d9cec79738c6cc75ba776
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Tue May 28 15:31:51 2024 +0200
gnu: Add texlive-detex-bin.
* gnu/packages/tex.scm (texlive-detex-bin): New variable.
(texlive-detex)[propagated-inputs]: Add TEXLIVE-DETEX-BIN.
Change-Id: I42aa0aad1a47287705e30184228df62a18799b41
---
gnu/packages/tex.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 1711137244..8767da8ac8 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -34423,6 +34423,7 @@ within the document, or in the document's private
package file.")
"08d017wn7a67pmp9b5yhnfg1x2q6f48qaa5ma4bplz9a782icwjy")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
+ (propagated-inputs (list texlive-detex-bin))
(home-page "https://ctan.org/pkg/detex")
(synopsis "Strip TeX from a source file")
(description
@@ -34434,6 +34435,53 @@ commands. The author now considers this program to be
obsolete and Piotr
Kubowicz's OpenDetex as its successor.")
(license license:bsd-3)))
+(define-public texlive-detex-bin
+ (package
+ (inherit texlive-bin)
+ (name "texlive-detex-bin")
+ (source
+ (origin
+ (inherit texlive-source)
+ (modules '((guix build utils)
+ (ice-9 ftw)))
+ (snippet
+ #~(let ((delete-other-directories
+ (lambda (root keep)
+ (with-directory-excursion root
+ (for-each
+ delete-file-recursively
+ (scandir
+ "."
+ (lambda (file)
+ (and (not (member file (append keep '("." ".."))))
+ (eq? 'directory (stat:type (stat file)))))))))))
+ (delete-other-directories "libs" '())
+ (delete-other-directories "utils" '())
+ (delete-other-directories "texk" '("detex"))))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons "--enable-detex" (delete "--enable-web2c" #$flags)))
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "texk/detex"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "texk/detex"
+ (invoke "make" "install"))))))))
+ (native-inputs (list pkg-config))
+ (inputs (list texlive-libkpathsea))
+ (propagated-inputs '())
+ (home-page (package-home-page texlive-detex))
+ (synopsis "Binary for @code{texlive-detex}")
+ (description
+ "This package provides the binary for @code{texlive-detex}.")
+ (license (package-license texlive-detex))))
+
(define-public texlive-digestif
(package
(name "texlive-digestif")
- 37/69: gnu: Add texlive-tpic2pdftex-bin., (continued)
- 37/69: gnu: Add texlive-tpic2pdftex-bin., guix-commits, 2024/05/31
- 24/69: gnu: Add texlive-hitex-bin., guix-commits, 2024/05/31
- 40/69: gnu: Add texlive-gsftopk-bin., guix-commits, 2024/05/31
- 39/69: gnu: Add texlive-upmendex-bin., guix-commits, 2024/05/31
- 48/69: gnu: Add texlive-dvi2tty-bin., guix-commits, 2024/05/31
- 35/69: gnu: Add texlive-tex4ht-bin., guix-commits, 2024/05/31
- 45/69: gnu: Add texlive-chktex-bin., guix-commits, 2024/05/31
- 50/69: gnu: Add texlive-dviljk-bin., guix-commits, 2024/05/31
- 51/69: gnu: Add texlive-dvipng-bin., guix-commits, 2024/05/31
- 38/69: gnu: Add texlive-ttfutils-bin., guix-commits, 2024/05/31
- 46/69: gnu: Add texlive-detex-bin.,
guix-commits <=
- 47/69: gnu: Add texlive-dtl-bin., guix-commits, 2024/05/31
- 41/69: gnu: Add texlive-makeindex-bin., guix-commits, 2024/05/31
- 44/69: gnu: Add texlive-cjkutils-bin., guix-commits, 2024/05/31
- 43/69: gnu: Add texlive-vlna-bin., guix-commits, 2024/05/31
- 42/69: gnu: Add texlive-metapost-bin., guix-commits, 2024/05/31
- 52/69: gnu: Add texlive-dvisvgm-bin., guix-commits, 2024/05/31
- 53/69: gnu: Add texlive-lcdftypetools-bin., guix-commits, 2024/05/31
- 54/69: gnu: Add texlive-lacheck-bin., guix-commits, 2024/05/31
- 49/69: gnu: Add texlive-dvidvi-bin., guix-commits, 2024/05/31
- 55/69: gnu: Add texlive-seetexk-bin., guix-commits, 2024/05/31