summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2019-10-25 13:37:33 +0300
committerMikle Kolyada <zlogene@gentoo.org>2019-10-25 13:37:33 +0300
commit2ef78bac1e12a62b393f0c7fe4803a457d1c3324 (patch)
tree23302ddddcbfbe7a8310d783bd883d4fff552f0b /dev-tex/xmltex
parenttexlive-module.eclass: fix eclassdoc problems (diff)
downloadgentoo-2ef78bac1e12a62b393f0c7fe4803a457d1c3324.tar.gz
gentoo-2ef78bac1e12a62b393f0c7fe4803a457d1c3324.tar.bz2
gentoo-2ef78bac1e12a62b393f0c7fe4803a457d1c3324.zip
dev-tex/xmltex: port to EAPI=7
Package-Manager: Portage-2.3.76, Repoman-2.3.16 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Diffstat (limited to 'dev-tex/xmltex')
-rw-r--r--dev-tex/xmltex/xmltex-1.9-r3.ebuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-tex/xmltex/xmltex-1.9-r3.ebuild b/dev-tex/xmltex/xmltex-1.9-r3.ebuild
new file mode 100644
index 000000000000..48708edb6f40
--- /dev/null
+++ b/dev-tex/xmltex/xmltex-1.9-r3.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit latex-package texlive-common
+
+DESCRIPTION="A non validating namespace aware XML parser implemented in TeX"
+HOMEPAGE="http://www.dcarlisle.demon.co.uk/xmltex/manual.html"
+# Taken from: ftp://www.ctan.org/tex-archive/macros/xmltex.tar.gz
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="LPPL-1.2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x86-solaris"
+
+S=${WORKDIR}/${PN}/base
+
+TEXMF=/usr/share/texmf-site
+
+DEPEND="virtual/latex-base"
+
+RDEPEND="${DEPEND}"
+
+src_compile() {
+ 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}"
+}
+
+src_install() {
+ insinto /var/lib/texmf
+ doins -r texmf-var
+
+ insinto ${TEXMF}/tex/xmltex/base
+ doins *.{xmt,cfg,xml,tex}
+ insinto ${TEXMF}/tex/xmltex/config
+ doins *.ini
+
+ etexlinks "${FILESDIR}/format.${PN}.cnf"
+ insinto /etc/texmf/fmtutil.d
+ doins "${FILESDIR}/format.${PN}.cnf"
+
+ dodoc *.html
+ dodoc readme.txt
+}