dev-tex/xmltex: add tl2019 support
authorMikle Kolyada <zlogene@gentoo.org>
Mon, 3 Jun 2019 17:03:19 +0000 (20:03 +0300)
committerMikle Kolyada <zlogene@gentoo.org>
Mon, 3 Jun 2019 17:03:19 +0000 (20:03 +0300)
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11

dev-tex/xmltex/xmltex-1.9-r2.ebuild

index 0f52e2b027dd62f0f51e26838a723105e6c53ee6..6ae39aebfbc350b9f7b9fee107abc995f534fd61 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -26,7 +26,10 @@ RDEPEND="${DEPEND}
        !=dev-texlive/texlive-htmlxml-2007*"
 
 src_compile() {
-       TEXMFHOME="${S}" fmtutil --cnffile "${FILESDIR}/format.${PN}.cnf" --fmtdir "${S}/texmf-var/web2c" --all\
+       fmt_call="$(has_version '>=app-text/texlive-core-2019' \
+         && echo "fmtutil-user" || echo "fmtutil")"
+
+       TEXMFHOME="${S}" $fmt_call --cnffile "${FILESDIR}/format.${PN}.cnf" --fmtdir "${S}/texmf-var/web2c" --all\
                        || die "failed to build format ${PN}"
 }