ngz pushed a commit to branch tex-team in repository guix. commit 0e894f2395b9fe8b469aaf029a6ff743b6383120 Author: Nicolas Goaziou <m...@nicolasgoaziou.fr> AuthorDate: Sat May 11 15:44:52 2024 +0200
gnu: Add texlive-libptexenc. * gnu/packages/tex.scm (texlive-libptexenc): New variable. Change-Id: Id3b7060edae487850d1e2b520b9e0476555efe09 --- gnu/packages/tex.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 2541215359..34eb795f89 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -33963,6 +33963,53 @@ how to create @file{.ins} and @file{.dtx} files for distributing their homebrewed classes and package files.") (license license:lppl1.3+))) +;; The following library is built from TEXLIVE-SOURCE, but is not provided by +;; TeX Live as a standalone tool, much like TEXLIVE-LIBKPATHSEA. +(define-public texlive-libptexenc + (package + (inherit texlive-bin) + (name "texlive-libptexenc") + (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" '("ptexenc")))))) + (arguments + (substitute-keyword-arguments (package-arguments texlive-bin) + ((#:configure-flags flags) + #~(cons* "--disable-all-pkgs" #$flags)) + ((#:phases _) + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (with-directory-excursion "texk/ptexenc" + (invoke "make" "check"))))) + (replace 'install + (lambda _ + (with-directory-excursion "texk/ptexenc" + (invoke "make" "install")))))))) + (native-inputs (list pkg-config texlive-libkpathsea)) + (inputs '()) + (home-page "http://tutimura.ath.cx/ptexlive/?ptexenc%2FDetails") + (synopsis "Library for Japanese pTeX") + (description + "This package provides a library for Japanese pTeX and its surrounding tools.") + (license license:gpl2))) + (define-public texlive-dvi2tty (package (name "texlive-dvi2tty")