+mactex
this one is potentially difficult, for a number of reasons:
- they distribute a .pkg installer; we might be able to disassemble it, but i'd be worried about the ability of the pieces to live under an indeterminate tree
- the licensing question isn't clear:
The software in MacTeX is available without fees for both personal and professional use. This software has been produced by thousands of programmers, and each piece comes with its own license. So redistribution of files from the MacTeX collection should be done with care after reading the License restrictions from these copyright holders.
- i don't seem to be able to locate a source distribution. most likely because it's a suite of numerous other programs.
so, this will be an interesting problem to solve, if it is solvable.
we could do texlive instead but they provide a perl script to install on unix like systems
currently i am using this guide https://pwsmith.github.io/2020/06/16/custom-install-texlive-on-mac/ to install texlive to a custom location
that looks reasonably promising, though probably not build-from-source. we'd either need to pass all the options on the command line to the script, or mod it to accept the options we want.
needs more work, but this is a start: https://github.com/pkgxdev/pantry/commit/adba989323c816ee5040f4c63354542f4e34075a