The texlive module is a Bazel port of the TeX Live distribution (TeX, LaTeX, and related programs).
Key architectural details:
- Build Logic: Build files are hand-crafted to mirror upstream autotools builds (
configure.ac and Makefile.am) using rules_cc_autoconf for feature probing. - Runtime Data: LaTeX macros, fonts, and configuration (the
texmf-dist component) are not contained within this module. Instead, they reside in the texlive-texmf module and are pulled in transitively based on the matching version. - Directory Structure: The Bazel overlay shadows the
texlive-source/ tree. Binaries and libraries maintain their upstream paths, each with a hand-written BUILD.bazel file. The bazel/ directory contains Bazel-specific helpers, rules, and tools.