Tex ebuild-o-mat
A tool to create and manage Gentoo's TexLive ebuilds.
Basically this tool takes the texlive source as input and outputs Gentoo's tex ebuilds.
The main entry point is org.gentoo.tex.ebuildomat.TexEbuildomat.
Useful information
Linked Scripts and Binlinks
We pass --enable-linked-scripts=no to texlive-core, which means texlive-core will not install links to scripts for us. Therefore the ebuilds have to create those links.
Upstream's logic for this is in texlive.git Build/source/texk/texlive/linked_scripts/
. We are interested in scripts.lst
to extract the list of linked scripts and Makefile.am
to extract the "binlinks".
Using the extracted information, we are able to reproduce upstreams behavior via ebuilds and eclasses.
tlmgr conf
The output of tlmgr conf
shows that the TexLive installation believes to know about its environment and configuration. Gentoo does not enable tlmgr
in PATH, but it can be invoked manually:
$ /usr/share/texmf-dist/scripts/texlive/tlmgr.pl conf
=========================== version information ==========================
tlmgr revision 69686 (2024-02-03 08:34:54 +0100)
tlmgr using installation: /usr/share/texmf-dist/scripts/texlive/../..
?
Resources
- Redistributing TeX and friends: https://tug.org/TUGboat/tb34-3/tb108preining-distro.pdf
- Tex Directory Structure: https://tug.org/tds/tds.pdf