From cab7ad2cee34b0e926404dc3be1d805538d04385 Mon Sep 17 00:00:00 2001 From: Alexander Miroshnichenko Date: Sat, 14 Jun 2025 08:49:20 +0300 Subject: [PATCH] app-text/context: update --- app-text/context/context-2025.06.12.ebuild | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/app-text/context/context-2025.06.12.ebuild b/app-text/context/context-2025.06.12.ebuild index ce26b55..361ce29 100644 --- a/app-text/context/context-2025.06.12.ebuild +++ b/app-text/context/context-2025.06.12.ebuild @@ -60,7 +60,8 @@ src_install(){ doexe scripts/context/lua/context.lua doexe scripts/context/lua/mtxrun.lua - echo PATH="${TEXMFBIN}" > "${T}"/99texmf-linux-context + echo "PATH=${TEXMFBIN}" > "${T}"/99texmf-linux-context + echo "OSFONTDIR=/usr/share/fonts" >> "${T}"/99texmf-linux-context doenvd "${T}"/99texmf-linux-context dosym -r "${TEXMFBIN}"/luametatex "${TEXMFBIN}"/mtxrun @@ -69,8 +70,19 @@ src_install(){ "${TEXMFROOT}"/texmf-context/web2c/texmfcnf.lua greadme_stdin <<-EOF - If you plan to use mkIV and its 'context' command to generate your documents, - you have to run 'mtxrun --generate' as normal user before first use. + You have to run 'mtxrun --generate' as normal user before first use. + It's very likely that you also want to use the system fonts. To do it + define env var: 'export OSFONTDIR=$HOME/.local/share/fonts:/usr/share/fonts' and run + 'mtxrun --script fonts --reload'. Check available fonts for ConTeXt by running + 'mtxrun --script fonts --list --all' + + This package does not include fonts. You need install them manualy: + media-fonts/stix-fonts + media-fonts/sil-gentium + media-fonts/cm-unicode + media-fonts/dejavu + media-fonts/eb-garamond + media-fonts/ibm-plex EOF }