diff --git a/app-text/context/Manifest b/app-text/context/Manifest new file mode 100644 index 0000000..dd178c8 --- /dev/null +++ b/app-text/context/Manifest @@ -0,0 +1 @@ +DIST context-2025.06.12.tar.gz 136307004 BLAKE2B e02007cda2d59c323db8ba064f08b88d66362d1690921b451a699e68416e3de2ad49c858c722cc303b18d12c91c5604499899941990d33421566150943a45b11 SHA512 520aa0a7a1d03340c56d8ef83190fee9cc5cd6dbef690fb66e99c39c0d3fb7a1fdee67b9f4463d71b6743c3c9da086e14ab6756ed314369aeacdc630514b3487 diff --git a/app-text/context/context-2025.06.12.ebuild b/app-text/context/context-2025.06.12.ebuild new file mode 100644 index 0000000..8651d01 --- /dev/null +++ b/app-text/context/context-2025.06.12.ebuild @@ -0,0 +1,79 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CMAKE_MAKEFILE_GENERATOR="ninja" +TEXMFROOT=/usr/share/texmf-dist +TEXMFBIN="${TEXMFROOT}/tex/texmf-linux-64/bin" + +DESCRIPTION="ConTeXt" +HOMEPAGE="https://wiki.contextgarden.net + https://www.pragma-ade.com + https://github.com/contextgarden/context" + +inherit cmake greadme + +IUSE="doc" + +COMMIT="fb28e149a3cbfdeb4224fc0ff32fa6881255b1bc" +SRC_URI="https://github.com/contextgarden/${PN}/archive/${COMMIT}.tar.gz + -> ${P}.tar.gz" + +S="${WORKDIR}"/${PN}-${COMMIT} + +LICENSE="" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="" +RDEPEND="${DEPEND} + !dev-texlive/texlive-context" +BDEPEND="" + +src_prepare() { + CMAKE_USE_DIR="${S}"/source/luametatex cmake_src_prepare +} + +src_configure() { + CMAKE_USE_DIR="${S}"/source/luametatex cmake_src_configure +} + +src_compile(){ + CMAKE_USE_DIR="${S}"/source/luametatex cmake_src_compile +} + +src_install(){ + + DESTDIR="${T}" cmake_build install + + into "${TEXMFBIN}" + dobin ${T}/usr/bin/luametatex + + insinto "${TEXMFROOT}" + + doins -r bibtex colors context context-readme.txt fonts metapost scripts tex web2c + + if use doc; then + doins -r doc + fi + + exeinto "${TEXMFBIN}" + doexe scripts/context/lua/context.lua + doexe scripts/context/lua/mtxrun.lua + + echo PATH="${TEXMFBIN}" > "${T}"/99texmf-linux-context + doenvd "${T}"/99texmf-linux-context + + dosym -r "${D}""${TEXMFBIN}"/luametatex "${D}""${TEXMFBIN}"/mtxrun + dosym -r "${D}""${TEXMFBIN}"/luametatex "${D}""${TEXMFBIN}"/context + + 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. + EOF +} + +pkg_postinst() { + greadme_pkg_postinst +} \ No newline at end of file