[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
22/54: gnu: texlive-velthuis: Build executable.
From: |
guix-commits |
Subject: |
22/54: gnu: texlive-velthuis: Build executable. |
Date: |
Tue, 14 May 2024 15:34:21 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 6effd45d6ba7f77679ad66ec80b473ba38183e80
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sat May 11 16:43:05 2024 +0200
gnu: texlive-velthuis: Build executable.
* gnu/packages/tex.scm (texlive-velthuis-bin): New variable.
(texlive-velthuis)[arguments]<#:phases>: Include executable.
[native-inputs]: Add TEXLIVE-VELTHUIS-BIN.
* gnu/packages/tex.scm (texlive-bin): Do not build devnag.
Change-Id: Ib101e7fd1f425d75c71e67f8a8ebbfb094161f90
---
gnu/packages/tex.scm | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 51 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index c0c0d4b7aa..8e61bb22fe 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -767,6 +767,7 @@ and should be preferred to it whenever a package would
otherwise depend on
"axodraw2"
"chktex"
"cjkutils"
+ "devnag"
"dvi2tty"
"dvipng"
"dvisvgm"
@@ -32252,6 +32253,46 @@ Manuscripts Submitted to Biomedical Journals (also
known as the Vancouver
style).")
(license license:lppl1.3+)))
+(define texlive-velthuis-bin
+ (package
+ (inherit texlive-bin)
+ (name "texlive-velthuis-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" '("devnag"))
+ (delete-other-directories "texk" '())))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons* "--disable-all-pkgs"
+ "--enable-devnag"
+ (delete "--disable-devnag" #$flags)))
+ ((#:phases _)
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "utils/devnag"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "utils/devnag"
+ (invoke "make" "install"))))))))))
+
(define-public texlive-velthuis
(package
(name "texlive-velthuis")
@@ -32274,7 +32315,16 @@ style).")
"0h9maci6b65x7zy13v5j4vlr07lnghiwckh7bn4ix7d1wmh74bij")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
- (native-inputs (list texlive-metafont))
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'install-bin
+ (lambda _
+ (let ((source
+ #$(this-package-native-input
"texlive-velthuis-bin")))
+ (copy-recursively (string-append source "/bin")
+ (string-append #$output "/bin"))))))))
+ (native-inputs (list texlive-metafont texlive-velthuis-bin))
(propagated-inputs (list texlive-xetex-devanagari))
(home-page "https://ctan.org/pkg/devanagari")
(synopsis "Typeset Devanagari")
- 14/54: gnu: texlive-lacheck: Build executable., (continued)
- 14/54: gnu: texlive-lacheck: Build executable., guix-commits, 2024/05/14
- 15/54: gnu: texlive-lcdftypetools: Build executables., guix-commits, 2024/05/14
- 10/54: gnu: texlive-xindy: Refactor package., guix-commits, 2024/05/14
- 13/54: gnu: texlive-cjkutils: Build executables., guix-commits, 2024/05/14
- 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 <=
- 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, 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