texlive: fixup mtxrun for 2024 version (#46465)
This commit is contained in:
parent
13feee8364
commit
653556e881
@ -104,6 +104,7 @@ class Texlive(AutotoolsPackage):
|
|||||||
depends_on("teckit")
|
depends_on("teckit")
|
||||||
depends_on("zlib-api")
|
depends_on("zlib-api")
|
||||||
depends_on("zziplib")
|
depends_on("zziplib")
|
||||||
|
depends_on("lua-lpeg", when="@20240312:")
|
||||||
|
|
||||||
build_directory = "spack-build"
|
build_directory = "spack-build"
|
||||||
|
|
||||||
@ -152,9 +153,17 @@ def setup_texlive(self):
|
|||||||
# Create and run setup utilities
|
# Create and run setup utilities
|
||||||
fmtutil_sys = Executable(join_path(self.prefix.bin, self.tex_arch(), "fmtutil-sys"))
|
fmtutil_sys = Executable(join_path(self.prefix.bin, self.tex_arch(), "fmtutil-sys"))
|
||||||
mktexlsr = Executable(join_path(self.prefix.bin, self.tex_arch(), "mktexlsr"))
|
mktexlsr = Executable(join_path(self.prefix.bin, self.tex_arch(), "mktexlsr"))
|
||||||
mtxrun = Executable(join_path(self.prefix.bin, self.tex_arch(), "mtxrun"))
|
|
||||||
mktexlsr()
|
mktexlsr()
|
||||||
fmtutil_sys("--all")
|
fmtutil_sys("--all")
|
||||||
|
if self.spec.satisfies("@:2023"):
|
||||||
|
mtxrun = Executable(join_path(self.prefix.bin, self.tex_arch(), "mtxrun"))
|
||||||
|
else:
|
||||||
|
mtxrun_lua = join_path(
|
||||||
|
self.prefix, "texmf-dist", "scripts", "context", "lua", "mtxrun.lua"
|
||||||
|
)
|
||||||
|
chmod = which("chmod")
|
||||||
|
chmod("+x", mtxrun_lua)
|
||||||
|
mtxrun = Executable(mtxrun_lua)
|
||||||
mtxrun("--generate")
|
mtxrun("--generate")
|
||||||
|
|
||||||
def setup_build_environment(self, env):
|
def setup_build_environment(self, env):
|
||||||
|
Loading…
Reference in New Issue
Block a user