diff options
author | Richard Berger <richard.berger@outlook.com> | 2024-09-27 02:23:21 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-27 10:23:21 +0200 |
commit | 653556e881f029fa1788d9cac49323c95d16dbf4 (patch) | |
tree | 600edb982acd608e6385f6d9b0af740288836f00 | |
parent | 13feee836439d84a44892bba298b692690c48fd3 (diff) | |
download | spack-653556e881f029fa1788d9cac49323c95d16dbf4.tar.gz spack-653556e881f029fa1788d9cac49323c95d16dbf4.tar.bz2 spack-653556e881f029fa1788d9cac49323c95d16dbf4.tar.xz spack-653556e881f029fa1788d9cac49323c95d16dbf4.zip |
texlive: fixup mtxrun for 2024 version (#46465)
-rw-r--r-- | var/spack/repos/builtin/packages/texlive/package.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/texlive/package.py b/var/spack/repos/builtin/packages/texlive/package.py index 909aade861..7accb43e8e 100644 --- a/var/spack/repos/builtin/packages/texlive/package.py +++ b/var/spack/repos/builtin/packages/texlive/package.py @@ -104,6 +104,7 @@ class Texlive(AutotoolsPackage): depends_on("teckit") depends_on("zlib-api") depends_on("zziplib") + depends_on("lua-lpeg", when="@20240312:") build_directory = "spack-build" @@ -152,9 +153,17 @@ class Texlive(AutotoolsPackage): # Create and run setup utilities fmtutil_sys = Executable(join_path(self.prefix.bin, self.tex_arch(), "fmtutil-sys")) mktexlsr = Executable(join_path(self.prefix.bin, self.tex_arch(), "mktexlsr")) - mtxrun = Executable(join_path(self.prefix.bin, self.tex_arch(), "mtxrun")) mktexlsr() 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") def setup_build_environment(self, env): |