guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

36/54: gnu: texlive-seetexk: Build executables.


From: guix-commits
Subject: 36/54: gnu: texlive-seetexk: Build executables.
Date: Tue, 14 May 2024 15:34:31 -0400 (EDT)

ngz pushed a commit to branch tex-team
in repository guix.

commit dff51e14b60b0b7c02c0029e9a59fd75c382def1
Author: Nicolas Goaziou <mail@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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]