[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/72: gnu: Add texlive-ptex-bin.
From: |
guix-commits |
Subject: |
18/72: gnu: Add texlive-ptex-bin. |
Date: |
Mon, 3 Jun 2024 08:59:50 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 51b14204fec408dcf1692209f35592796e7278bd
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Mon May 27 16:24:46 2024 +0200
gnu: Add texlive-ptex-bin.
* gnu/packages/tex.scm (texlive-ptex-bin): New variable.
(texlive-ptex)[propagated-inputs]: Add TEXLIVE-PTEX-BIN.
Change-Id: Ib8ef4d9283cd1bd79f621a864166da56b15bebd2
---
gnu/packages/tex.scm | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 75 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 4a8e87bce9..29c8496f94 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -36381,6 +36381,7 @@ their specific needs.")
texlive-knuth-lib
texlive-plain
texlive-ptex-base
+ texlive-ptex-bin
texlive-ptex-fonts))
(home-page "https://ctan.org/pkg/ptex")
(synopsis "TeX system for publishing in Japanese")
@@ -36390,6 +36391,80 @@ problems in typesetting Japanese. A manual (in both
Japanese and English) is
distributed as package @code{pTeX-manual}.")
(license license:bsd-3)))
+(define-public texlive-ptex-bin
+ (package
+ (inherit texlive-bin)
+ (name "texlive-ptex-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" '("makejvf" "mendexk"
"web2c"))))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons* "--enable-makejvf"
+ "--enable-mendexk"
+ (delete "--enable-web2c" #$flags)))
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "texk/makejvf"
+ (invoke "make" "check"))
+ (with-directory-excursion "texk/mendexk"
+ (invoke "make" "check")))))
+ (add-after 'build 'build-web2c-binaries
+ (lambda _
+ (with-directory-excursion "texk/web2c"
+ (for-each (lambda (target) (invoke "make" target))
+ '("eptex" "pmpost")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "texk/makejvf"
+ (invoke "make" "install"))
+ (with-directory-excursion "texk/mendexk"
+ (invoke "make" "install"))
+ ;; Install Web2C parts.
+ (let ((bin (string-append #$output "/bin")))
+ (with-directory-excursion "texk/web2c"
+ (for-each (lambda (f) (install-file f bin))
+ '("eptex" "pmpost")))
+ (with-directory-excursion bin
+ (for-each symlink
+ '("eptex" "pmpost" "pmpost")
+ '("ptex" "pdvitomp" "r-pmpost"))
+ ;; Some executables are symlinks to TEXLIVE-UPTEX-BIN's.
+ (let ((uptex #$(this-package-input "texlive-uptex-bin")))
+ (for-each
+ symlink
+ (map (lambda (f) (string-append uptex "/bin/" f))
+ '("upbibtex" "updvitype" "uppltotf" "uptftopl"))
+ '("pbibtex" "pdvitype" "ppltotf" "ptftopl")))))))))))
+ (native-inputs (list pkg-config))
+ (inputs
+ (modify-inputs (package-inputs texlive-bin)
+ (append cairo gmp mpfr texlive-libptexenc texlive-uptex-bin)))
+ (home-page (package-home-page texlive-ptex))
+ (synopsis "Binaries for @code{texlive-ptex}")
+ (description
+ "This package provides the binaries for @code{texlive-ptex}.")
+ (license (package-license texlive-ptex))))
+
(define-public texlive-ptex-base
(package
(name "texlive-ptex-base")
- 09/72: gnu: texlive-bin: Minimize build surface., (continued)
- 09/72: gnu: texlive-bin: Minimize build surface., guix-commits, 2024/06/03
- 10/72: gnu: tex.scm: Remove completed TODO., guix-commits, 2024/06/03
- 11/72: gnu: texlive-latex-bin: Create symlinks for "latex" variants., guix-commits, 2024/06/03
- 12/72: gnu: Add texlive-mfware-bin., guix-commits, 2024/06/03
- 13/72: gnu: Add texlive-omegaware-bin., guix-commits, 2024/06/03
- 15/72: gnu: Add texlive-texware-bin., guix-commits, 2024/06/03
- 17/72: gnu: Add texlive-uptex-bin., guix-commits, 2024/06/03
- 16/72: gnu: Add texlive-patgen-bin., guix-commits, 2024/06/03
- 14/72: gnu: Add texlive-fontware-bin., guix-commits, 2024/06/03
- 19/72: gnu: Add texlive-bibtex-bin., guix-commits, 2024/06/03
- 18/72: gnu: Add texlive-ptex-bin.,
guix-commits <=
- 21/72: gnu: Add texlive-dvipdfmx-bin., guix-commits, 2024/06/03
- 20/72: gnu: Add texlive-dvicopy-bin., guix-commits, 2024/06/03
- 23/72: gnu: Add texlive-aleph-bin., guix-commits, 2024/06/03
- 22/72: gnu: Add texlive-xetex-bin., guix-commits, 2024/06/03
- 24/72: gnu: Add texlive-hitex-bin., guix-commits, 2024/06/03
- 25/72: gnu: Add texlive-afm2pl-bin., guix-commits, 2024/06/03
- 26/72: gnu: Add texlive-m-tx-bin., guix-commits, 2024/06/03
- 27/72: gnu: Add texlive-autosp-bin., guix-commits, 2024/06/03
- 29/72: gnu: Add texlive-pmx-bin., guix-commits, 2024/06/03
- 31/72: gnu: Add texlive-bibtex8-bin., guix-commits, 2024/06/03