commit:     492806073fd9e8d93c1623c824e222a24800309a
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 23 10:49:56 2024 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Tue Apr 23 12:01:44 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49280607

dev-texlive/texlive-context: install context scripts

Closes: https://bugs.gentoo.org/930400
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 ...build => texlive-context-2023_p69108-r2.ebuild} | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/dev-texlive/texlive-context/texlive-context-2023_p69108-r1.ebuild 
b/dev-texlive/texlive-context/texlive-context-2023_p69108-r2.ebuild
similarity index 78%
rename from dev-texlive/texlive-context/texlive-context-2023_p69108-r1.ebuild
rename to dev-texlive/texlive-context/texlive-context-2023_p69108-r2.ebuild
index 2619f7d82809..3c02f6e2eb0c 100644
--- a/dev-texlive/texlive-context/texlive-context-2023_p69108-r1.ebuild
+++ b/dev-texlive/texlive-context/texlive-context-2023_p69108-r2.ebuild
@@ -74,12 +74,38 @@ DEPEND="
        >=app-text/texlive-core-2023[xetex,luajittex?]
 "
 
+TEXLIVE_MODULE_BINSCRIPTS="
+       texmf-dist/scripts/context/stubs-mkiv/unix/contextjit
+       texmf-dist/scripts/context/stubs-mkiv/unix/luatools
+       texmf-dist/scripts/context/stubs-mkiv/unix/mtxrunjit
+
+       texmf-dist/scripts/context/stubs/unix/texexec
+       texmf-dist/scripts/context/stubs/unix/texmfstart
+"
+
 src_prepare() {
        default
        # No need to install these .exe
        rm -rf texmf-dist/scripts/context/stubs/{mswin,win64} || die
 }
 
+src_install() {
+       texlive-module_src_install
+
+       local mtxrun=/usr/share/texmf-dist/scripts/context/lua/mtxrun.lua
+       fperms 755 "${mtxrun}"
+       newbin - mtxrun <<-EOF
+       #!/bin/sh
+       export TEXMF_DIST="${EPREFIX}/usr/share/texmf-dist"
+       exec ${mtxrun} "\$@"
+EOF
+
+       newbin - context <<-EOF
+       #!/bin/sh
+       exec mtxrun --script context "\$@"
+EOF
+}
+
 TL_MODULE_INFORMATION="For using ConTeXt mkII simply use 'texexec' to generate
 your documents.
 If you plan to use mkIV and its 'context' command to generate your documents,

Reply via email to