[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
63/72: gnu: Add texlive-mflua-bin.
From: |
guix-commits |
Subject: |
63/72: gnu: Add texlive-mflua-bin. |
Date: |
Mon, 3 Jun 2024 09:00:20 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit fdbb5101711879637799bcc2775703c9126a260e
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sun Jun 2 12:12:21 2024 +0200
gnu: Add texlive-mflua-bin.
* gnu/packages/tex.scm (texlive-mflua-bin): New variable.
(texlive-mflua)[arguments]<#:link-scripts>: Remove keyword, since
"fmlua.lua"
is a not meant to be symlinked to "bin/".
[propagated-inputs]: Add TEXLIVE-MFLUA-BIN.
Change-Id: I7dc275c169afbc4bdada02feec83fa9470d49f94
---
gnu/packages/tex.scm | 60 +++++++++++++++++++++++++++++++++++++++++++++++-----
1 file changed, 55 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 7442d68d78..0491830117 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -40180,11 +40180,8 @@ clearly show any mismatches.")
(base32
"0ngbhdh8hgpjfqnrjlnp27x3qziks3yf2zp1qq7r4bjfa5jx9gr6")))
(build-system texlive-build-system)
- (arguments
- (list
- #:link-scripts #~(list "mflua.lua")
- #:create-formats #~(list "mflua")))
- (propagated-inputs (list texlive-luatex texlive-metafont))
+ (arguments (list #:create-formats #~(list "mflua")))
+ (propagated-inputs (list texlive-luatex texlive-metafont
texlive-mflua-bin))
(home-page "https://ctan.org/pkg/mflua")
(synopsis "Configuration and base files for MFLua")
(description
@@ -40195,6 +40192,59 @@ MFLua without any modification to produce exactly the
same result.")
;; released under Public Domain terms.
(license (list license:knuth license:public-domain))))
+(define-public texlive-mflua-bin
+ (package
+ (inherit texlive-bin)
+ (name "texlive-mflua-bin")
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons* "--disable-web2c"
+ "--enable-mflua"
+ ;; LuaJIT is not ported to some architectures yet.
+ #$@(if (or (target-ppc64le?)
+ (target-riscv64?))
+ '()
+ '("--enable-mfluajit"))
+ (delete "--disable-mflua"
+ (delete "--disable-mfluajit"
+ (delete "--enable-web2c" #$flags)))))
+ ((#:phases phases)
+ #~(let ((bin (string-append #$output "/bin")))
+ ;; Once Web2C is disabled, build process refuses to build
+ ;; libraries in the source tree, in particular lua53 and luajit,
+ ;; required for MfluaJIT. The following changes forces building
+ ;; them.
+ (modify-phases #$phases
+ #$@(if (or (target-ppc64le?) (target-riscv64?))
+ '()
+ '((add-after 'unpack 'force-luajit-build
+ (lambda _
+ (substitute* "libs/configure"
+ (("x\\$need_luajit") "xyes"))))
+ (add-after 'install 'install-mfluajiit
+ (lambda _
+ (with-directory-excursion "texk/web2c"
+ (invoke "make" "mfluajit")
+ (install-file ".libs/mfluajit" bin))))))
+ (add-after 'unpack 'force-lua53-build
+ (lambda _
+ (substitute* "libs/configure"
+ (("x\\$need_lua53") "xyes"))))
+ (add-after 'install 'install-mflua
+ (lambda _
+ (with-directory-excursion "texk/web2c"
+ (invoke "make" "mflua")
+ (install-file ".libs/mflua" bin)))))))))
+ (native-inputs (list pkg-config))
+ (inputs (modify-inputs (package-inputs texlive-bin)
+ (append potrace)))
+ (home-page (package-home-page texlive-mflua))
+ (synopsis "Binaries for @code{texlive-mflua}")
+ (description
+ "This package provides the binaries for @code{texlive-mflua}.")
+ (license (package-license texlive-mflua))))
+
(define-public texlive-mkjobtexmf
(package
(name "texlive-mkjobtexmf")
- 54/72: gnu: Add texlive-lacheck-bin., (continued)
- 54/72: gnu: Add texlive-lacheck-bin., guix-commits, 2024/06/03
- 50/72: gnu: Add texlive-dviljk-bin., guix-commits, 2024/06/03
- 47/72: gnu: Add texlive-dtl-bin., guix-commits, 2024/06/03
- 49/72: gnu: Add texlive-dvidvi-bin., guix-commits, 2024/06/03
- 53/72: gnu: Add texlive-lcdftypetools-bin., guix-commits, 2024/06/03
- 55/72: gnu: Add texlive-seetexk-bin., guix-commits, 2024/06/03
- 56/72: gnu: Add texlive-ps2eps-bin., guix-commits, 2024/06/03
- 58/72: gnu: texlive-texdoctk: Fix runtime error., guix-commits, 2024/06/03
- 57/72: gnu: Add texlive-t1utils-bin., guix-commits, 2024/06/03
- 64/72: gnu: texlive-dviout-util: Build binaries separately., guix-commits, 2024/06/03
- 63/72: gnu: Add texlive-mflua-bin.,
guix-commits <=
- 65/72: gnu: texlive-ps2pk: Build binaries separately., guix-commits, 2024/06/03
- 66/72: gnu: texlive-dvipos: Build binaries separately., guix-commits, 2024/06/03
- 70/72: gnu: texlive importer: Propagate binaries when necessary., guix-commits, 2024/06/03
- 69/72: gnu: texlive-xindy: Build binary separately., guix-commits, 2024/06/03
- 71/72: gnu: Update commentary section in "tex.scm"., guix-commits, 2024/06/03
- 72/72: gnu: texlive-xits: Fix typo in description., guix-commits, 2024/06/03
- 61/72: gnu: Add texlive-xml2pmx-bin., guix-commits, 2024/06/03
- 59/72: gnu: Add texlive-xpdfopen-bin., guix-commits, 2024/06/03
- 67/72: gnu: texlive-musixtnt: Build binary separately., guix-commits, 2024/06/03
- 68/72: gnu: texlive-axodraw2: Build binary separately., guix-commits, 2024/06/03