Notes on TeX related ebuilds
Dependencies
We have two virtual ebuilds in the tree which consumers of tex/latex should depend on (see also bug #195894).
- virtual/latex-base (required in most cases)
- virtual/tex-base
Run time dependencies for packages like TeX editors and GUIs
If a package requires (La)TeX at runtime, but we do not know what the user wants to do with it exactly, it should depend on app-text/texlive.
Examples: app-office/texstudio.
RDEPEND="app-text/texlive"
Run time dependencies for packages with specific TeX dependencies
If a package requires specific TeX packages at runtime, like in a music score editor, which renders a score with LaTeX, it should depend on virtual/latex-base plus the specific packages.
Examples: media-sound/lilypond. TODO: FILEBOX
Build time dependencies for packages like PDF manuals
If a package requires TeX only at build time, it should depend on virtual/latex-base and if required also depend on specific tex packages.
Examples: app-doc/kicad-doc and media-gfx/inkscape.
RDEPEND="
latex? (
virtual/latex-base
media-gfx/pstoedit[plotutils]
app-text/dvipsk
)
"
Migrate SRC_URI from CTAN to TexLive (draft)
It is a common problem for our ebuilds that the CTAN server provides
- only the latest version of a package
- this package sometimes has no version information in the filename (the new version overwrites the old version)
The Gentoo mirror was misused as primary source as workaround for many TeX ebuilds.
..
SRC_URI="mirror://gentoo/${P}.zip"
..
Sometimes the developer webspace was used, which is much cleaner but not ideal too.
We should migrate to the texlive ftp server ftp://tug.org/historic/systems/texlive/
ftp://tug.org/historic/systems/texlive/2015/tlnet-final/archive/acronym.tar.xz
ftp://tug.org/historic/systems/texlive/2016/tlnet-final/archive/acronym.tar.xz
ftp://tug.org/historic/systems/texlive/2017/tlnet-final/archive/acronym.tar.xz
Enables us to create a generic SRC_URI
SRC_URI="ftp://tug.org/historic/systems/texlive/${PV}/tlnet-final/archive/${PN}.tar.xz"
VARTEXFONTS
kpathsea sets the path for font cache generation to (???) which is outside of the sandbox.
Setting VARTEXFONTS=${T}/fonts prevents sandbox violations. See also the Tracker bug #223077
Notes to be written
- Procedure how to test a latex ebuild