aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2024-06-24 23:04:33 +0200
committerLudovic Courtès <ludo@gnu.org>2024-08-31 10:45:40 +0200
commit3d304c23f04fbf7131721273aa6c9a25793cc091 (patch)
tree911e1f6ebefb58bc7921d8c66e2806c3575f22e2
parentef12c00f4414d750b9918a2e56a7e4701522c523 (diff)
downloadguix-3d304c23f04fbf7131721273aa6c9a25793cc091.tar
guix-3d304c23f04fbf7131721273aa6c9a25793cc091.tar.gz
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
-rw-r--r--gnu/packages/tex.scm27
1 files changed, 19 insertions, 8 deletions
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index e6a97778bf..a08f45834d 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}")