ngz pushed a commit to branch tex-team in repository guix. commit 687e3d68b94bdc790cc4fb2b2ba44f4e690805fd Author: Nicolas Goaziou <m...@nicolasgoaziou.fr> AuthorDate: Sun May 12 15:17:06 2024 +0200
gnu: texlive-seetexk: Build executables. * gnu/packages/tex.scm (texlive-seetexk): Inherit from TEXLIVE-BIN. [source]: Build from a trimmed TEXLIVE-SOURCE. [arguments]: Build `seetexk' as a single package. Change-Id: I86594d2421cdbb0599c2bb0f0fa009042ee7cd7e --- gnu/packages/tex.scm | 56 ++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 39 insertions(+), 17 deletions(-) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 72186ccf71..d105efc4ce 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -39699,22 +39699,44 @@ stylized format that Metapost outputs.") (define-public texlive-seetexk (package + (inherit texlive-bin) (name "texlive-seetexk") - (version (number->string %texlive-revision)) - (source (texlive-origin - name version - (list "doc/man/man1/dvibook.1" - "doc/man/man1/dvibook.man1.pdf" - "doc/man/man1/dviconcat.1" - "doc/man/man1/dviconcat.man1.pdf" - "doc/man/man1/dviselect.1" - "doc/man/man1/dviselect.man1.pdf" - "doc/man/man1/dvitodvi.1" - "doc/man/man1/dvitodvi.man1.pdf") - (base32 - "1bhv5xgv8jpam5apdybd0cggnvcizk2r6zs7lim1hmhzafpqqlcx"))) - (outputs '("out" "doc")) - (build-system texlive-build-system) + (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" '("seetexk")))))) + (arguments + (substitute-keyword-arguments (package-arguments texlive-bin) + ((#:configure-flags flags) + #~(cons* "--disable-all-pkgs" + "--enable-seetexk" + (delete "--disable-seetexk" #$flags))) + ((#:phases _) + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (with-directory-excursion "texk/seetexk" + (invoke "make" "check"))))) + (replace 'install + (lambda _ + (with-directory-excursion "texk/seetexk" + (invoke "make" "install")))))))) + (inputs '()) (home-page "https://ctan.org/pkg/dvibook") (synopsis "Utilities for manipulating DVI files") (description @@ -39734,8 +39756,8 @@ a new DVI file; @item @command{dvitodvi}, which will rearrange the pages of a DVI file to create a new file; -@item @command{libtex}, a library for manipulating the files, from the old -SeeTeX project. +@item @code{libtex}, a library for manipulating the files, from the old SeeTeX +project. @end itemize") (license license:expat)))