-# Copyright © 2020 Nick Bowler
+# Copyright © 2020-2021 Nick Bowler
# License GPLv3+: GNU General Public License version 3 or any later version.
# This is free software: you are free to change and redistribute it.
# There is NO WARRANTY, to the extent permitted by law.
RDEPEND="dev-libs/libxml2
app-text/docbook-xml-dtd:4.3
- app-text/mathml-xml-dtd"
+ app-text/mathml2"
src_unpack () {
cp "$DISTDIR/$A" "$S" || die
insinto /etc/sgml
newins - mathml-docbook-$PV.cat <<-EOF
- CATALOG "${EPREFIX#/}$insdir/catalog"
+ CATALOG "${EPREFIX%/}$insdir/catalog"
EOF
}
update_catalog () {
- local insdir="file://${EPREFIX#/}/usr/share/sgml/docbook/${P#docbook-}"
+ local insdir="file://${EPREFIX%/}/usr/share/sgml/docbook/${P#docbook-}"
local xmlcatalog="${BROOT%/}/usr/bin/xmlcatalog"
local dtdpublic="-//OASIS//DTD DocBook MathML Module V$DTDVER//EN"