guix-commits
[Top][All Lists]
Advanced

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

136/141: gnu: texlive-luajittex-bin: Skip build on ppc64le and riscv64 a


From: guix-commits
Subject: 136/141: gnu: texlive-luajittex-bin: Skip build on ppc64le and riscv64 architectures.
Date: Wed, 26 Jun 2024 06:35:09 -0400 (EDT)

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

commit 0ff38f008b253bbcb511435a53c16dd006d07947
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Mon Jun 24 23:04:33 2024 +0200

    gnu: texlive-luajittex-bin: Skip build on ppc64le and riscv64 architectures.
    
    * gnu/packages/tex.scm (texlive-luajittex-bin)[arguments]<#:phases>: Skip
    build on ppc64le and riscv64 architectures.
    
    Change-Id: Ifb70cbb2637c64bb8f2cc31598e7059647210789
---
 gnu/packages/tex.scm | 27 +++++++++++++++++++--------
 1 file changed, 19 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index c1953692bc..e59413ca9d 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -48518,17 +48518,28 @@ without HarfBuzz.")
               ;; libraries in the source tree, in particular pplib and luajit,
               ;; required for LuajitTeX.  The following change forces building
               ;; them.
+              ;;
+              ;; XXX: Skip build on architectures not supporting LuaJIT.  It
+              ;; avoid creating conditional inputs in TEXLIVE-LUAJITTEX, which
+              ;; would give more manual work after an update.
               (lambda _
-                (substitute* "libs/configure"
-                  (("x\\$need_(pplib|luajit)") "xyes"))))
+                #$@(if (or (target-ppc64le?)
+                           (target-riscv64?))
+                       '("skip")
+                       '((substitute* "libs/configure"
+                           (("x\\$need_(pplib|luajit)") "xyes"))))))
             (add-after 'install 'install-binaries
               (lambda _
-                (with-directory-excursion "texk/web2c"
-                  (invoke "make" "luajittex")
-                  (invoke "make" "luajithbtex")
-                  (let ((bin (string-append #$output "/bin")))
-                    (install-file ".libs/luajittex" bin)
-                    (install-file ".libs/luajithbtex" bin)))))))))
+                (let ((out #$output))
+                  #$@(if (or (target-ppc64le?)
+                             (target-riscv64?))
+                         '("skip")
+                         '((with-directory-excursion "texk/web2c"
+                             (invoke "make" "luajittex")
+                             (invoke "make" "luajithbtex")
+                             (let ((bin (string-append out "/bin")))
+                               (install-file ".libs/luajittex" bin)
+                               (install-file ".libs/luajithbtex" 
bin))))))))))))
     (native-inputs (list pkg-config))
     (home-page (package-home-page texlive-luajittex))
     (synopsis "Binaries for @code{texlive-luajittex}")



reply via email to

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