dev-tex/hevea: call etexmf-update instead of custom logic

Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
Florian Schmaus 2024-03-19 15:07:34 +01:00
parent ac21aa95b7
commit 490a17af5d
No known key found for this signature in database
GPG Key ID: 2239A7E8F5852052
1 changed files with 4 additions and 6 deletions

View File

@ -3,6 +3,8 @@
EAPI=8
inherit texlive-common
DESCRIPTION="HeVeA is a quite complete and fast LaTeX to HTML translator"
HOMEPAGE="https://hevea.inria.fr/"
SRC_URI="https://hevea.inria.fr/distri/${P}.tar.gz"
@ -58,13 +60,9 @@ src_install() {
# If latex is installed later, it will see hevea.sty
pkg_postinst() {
if [[ -z "${ROOT}" ]] && [[ -x "${EPREFIX}"/usr/sbin/texmf-update ]] ; then
"${EPREFIX}"/usr/sbin/texmf-update || die "texmf-update returned non-zero exit status ${?}"
fi
etexmf-update
}
pkg_postrm() {
if [[ -z "${ROOT}" ]] && [[ -x "${EPREFIX}"/usr/sbin/texmf-update ]] ; then
"${EPREFIX}"/usr/sbin/texmf-update || die "texmf-update returned non-zero exit status ${?}"
fi
etexmf-update
}