texlive-common.eclass
Name
texlive-common.eclass
-- Provide various functions used by both texlive-core and texlive modules
Description
Purpose: Provide various functions used by both texlive-core and texlive modules.
Note that this eclass must not assume the presence of any standard tex too
Functions
- texlive-common_handle_config_files
-
Has to be called in src_install after having installed the files in ${D} This function will move the relevant files to /etc/texmf and symling them from their original location. This is to allow easy update of texlive's configuration
- texlive-common_is_file_present_in_texmf
-
Return if a file is present in the texmf tree Call it from the directory containing texmf and texmf-dist
- texlive-common_do_symlinks <src> <dest>
-
Mimic the install_link function of texlinks
Should have the same behavior as the one in /usr/bin/texlinks except that it is under the control of the package manager Note that $1 corresponds to $src and $2 to $dest in this function ( Arguments are switched because texlinks main function sends them switched ) This function should not be called from an ebuild, prefer etexlinks that will also do the fmtutil file parsing.
- etexlinks <file>
-
Mimic texlinks on a fmtutil format file
$1 has to be a fmtutil format file like fmtutil.cnf etexlinks foo will install the symlinks that texlinks --cnffile foo would have created. We cannot use texlinks with portage as it is not DESTDIR aware. (It would not fail but will not create the symlinks if the target is not in the same dir as the source) Also, as this eclass must not depend on a tex distribution to be installed we cannot use texlinks from here.
- dobin_texmf_scripts <file1> [file2] ...
-
Symlinks a script from the texmf tree to /usr/bin. Requires permissions to be correctly set for the file that it will point to.
- etexmf-update
-
Runs texmf-update if it is available and prints a warning otherwise. This function helps in factorizing some code. Useful in ebuilds' pkg_postinst and pkg_postrm phases.
- efmtutil-sys
-
Runs fmtutil-sys if it is available and prints a warning otherwise. This function helps in factorizing some code. Used in ebuilds' pkg_postinst to force a rebuild of TeX formats.
Authors
Original Author: Alexis Ballier <aballier@gentoo.org>
Reporting Bugs
Please report bugs via https://bugs.gentoo.org/