[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
21/141: gnu: Add texlive-ptex-bin.
From: |
guix-commits |
Subject: |
21/141: gnu: Add texlive-ptex-bin. |
Date: |
Wed, 26 Jun 2024 06:33:18 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit f0dce41f22deff987b181b8a4b8ea9e14946a47e
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 61223a0164..8bd7efa44d 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -36396,6 +36396,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")
@@ -36405,6 +36406,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")
- 11/141: gnu: tex.scm: Remove completed TODO., (continued)
- 11/141: gnu: tex.scm: Remove completed TODO., guix-commits, 2024/06/26
- 12/141: gnu: texlive-xcjk2uni: Fix build., guix-commits, 2024/06/26
- 13/141: gnu: texlive-csplain: Fix build., guix-commits, 2024/06/26
- 14/141: gnu: texlive-latex-bin: Create symlinks for "latex" variants., guix-commits, 2024/06/26
- 15/141: gnu: Add texlive-mfware-bin., guix-commits, 2024/06/26
- 16/141: gnu: Add texlive-omegaware-bin., guix-commits, 2024/06/26
- 17/141: gnu: Add texlive-fontware-bin., guix-commits, 2024/06/26
- 18/141: gnu: Add texlive-texware-bin., guix-commits, 2024/06/26
- 19/141: gnu: Add texlive-patgen-bin., guix-commits, 2024/06/26
- 20/141: gnu: Add texlive-uptex-bin., guix-commits, 2024/06/26
- 21/141: gnu: Add texlive-ptex-bin.,
guix-commits <=
- 22/141: gnu: Add texlive-bibtex-bin., guix-commits, 2024/06/26
- 23/141: gnu: Add texlive-dvicopy-bin., guix-commits, 2024/06/26
- 24/141: gnu: Add texlive-dvipdfmx-bin., guix-commits, 2024/06/26
- 25/141: gnu: Add texlive-xetex-bin., guix-commits, 2024/06/26
- 26/141: gnu: Add texlive-aleph-bin., guix-commits, 2024/06/26
- 27/141: gnu: Add texlive-hitex-bin., guix-commits, 2024/06/26
- 28/141: gnu: Add texlive-afm2pl-bin., guix-commits, 2024/06/26
- 30/141: gnu: Add texlive-autosp-bin., guix-commits, 2024/06/26
- 29/141: gnu: Add texlive-m-tx-bin., guix-commits, 2024/06/26
- 31/141: gnu: Add texlive-gregoriotex-bin., guix-commits, 2024/06/26