Files
haikuports/app-text/luametatex/luametatex-2.11.08.recipe
Joachim Mairböck 0a3f5003b3 luametatex: new recipe, version 2.11.08 (#12045)
It builds, but doesn't work yet, because it doesn't find any paths.
It seems like this requires some further patching, probably in mtxrun.lua,
which comes from texlive. Note that this doesn't use libkpathsea and therefore
doesn't use the already patched logic we have.

Notes about the recipe:
This contains an alternate download URL from TeXLive's SVN, used before when
the upstream GitHub didn't have this version yet.  The official download from
the website is unversioned and contains the full ConTeXt distribution, which
makes it unsuitable for packaging.
2026-04-01 14:00:28 +02:00

73 lines
2.7 KiB
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
SUMMARY="Next generation ConTeXt processing engine"
DESCRIPTION="The LuaMetaTeX program is a light weight variant of LuaTeX. This program finds its \
origin in parts of TeX (the original program, eTeX (some extensions), pdfTeX (more extensions) \
Aleph (based on Omega, directions) and of course LuaTeX (lots of things).
This is a follow up on the LuaTeX project. The source is considered part of the ConTeXt \
distribution and managed by the ConTeXt development team and the ConTeXt user group. That way it \
can be guaranteed that the engine and this TeX macro package work together as expected. The idea \
is that users can easily compile the source themselves and that way have a guaranteed long term \
(minimal) TeX based installation. Because the management scripts are in Lua, only one binary is \
needed to serve the ConTeXt distribution.
In the source code it was tried to stay close to the ancestors, LuaTeX, pdfTeX, eTeX and TeX, but \
in the meantime due to additions there is quite some diverge. There are new primitives and \
submechanisms, there is more control over the inner workings, font handling is mostly delegated \
to Lua and there is no built-in backend. The code base is all-inclusive and has no (nor will \
have) dependencies on external libraries. Performance and memory consumption have been optimized \
and the additions (compared to LuaTeX) dont have a negative impact."
HOMEPAGE="https://github.com/contextgarden/luametatex"
COPYRIGHT="Taco Hoekwater & Hans Hagen & Wolfgang Schuster"
LICENSE="GNU GPL v2"
REVISION="1"
# download from texlive SVN repo in case the GitHub repo is outdated (now not available any more):
#srcSvnRev="74428"
#SOURCE_URI="https://svn.tug.org:8369/texlive/trunk/Master/source/luametatex-$portVersion.tar.xz?revision=$srcSvnRev&view=co"
#CHECKSUM_SHA256="a2ed3859c2a7c842539145781e1946c034ec71d1094df946bf472937af6a9161"
#SOURCE_DIR="luametatex"
# main download location:
SOURCE_URI="https://github.com/contextgarden/luametatex/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="cf825633ee10a7bbf2a9bf98aa6842de5ef23258e8c370560c19ff5581b3d534"
PATCHES="luametatex-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
luametatex$secondaryArchSuffix = $portVersion
cmd:context = $portVersion
cmd:luametatex = $portVersion
cmd:mtxrun = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_BINDIR=$prefix/bin
make -C build $jobArgs
}
INSTALL()
{
make -C build install
# install symlinks
ln -s luametatex $prefix/bin/context
ln -s luametatex $prefix/bin/mtxrun
}