diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-09-13 17:56:30 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-09-13 17:56:30 +0100 |
commit | 948d557b4a61dc14722668b6b11a4cf3cee07b01 (patch) | |
tree | b28b6cb077ae6b2457e30d49028fc978d8e2b59b /app-text/docbook-xml-dtd/docbook-xml-dtd-4.1.2-r7.ebuild | |
parent | e3cf2c86fca1750343c1885311f857f185ee4f2d (diff) |
gentoo resync : 13.09.2019
Diffstat (limited to 'app-text/docbook-xml-dtd/docbook-xml-dtd-4.1.2-r7.ebuild')
-rw-r--r-- | app-text/docbook-xml-dtd/docbook-xml-dtd-4.1.2-r7.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/app-text/docbook-xml-dtd/docbook-xml-dtd-4.1.2-r7.ebuild b/app-text/docbook-xml-dtd/docbook-xml-dtd-4.1.2-r7.ebuild new file mode 100644 index 000000000000..fdf2ac2ad673 --- /dev/null +++ b/app-text/docbook-xml-dtd/docbook-xml-dtd-4.1.2-r7.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit sgml-catalog-r1 + +MY_P="docbkx${PV//./}" +DESCRIPTION="Docbook DTD for XML" +HOMEPAGE="https://docbook.org/" +SRC_URI="https://docbook.org/xml/${PV}/${MY_P}.zip" + +LICENSE="docbook" +SLOT="${PV}" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +RDEPEND=">=app-text/docbook-xsl-stylesheets-1.65 + >=app-text/build-docbook-catalog-1.2" +DEPEND=">=app-arch/unzip-5.41" + +S=${WORKDIR} + +src_prepare() { + # Prepend OVERRIDE directive + sed -i -e '1i\\OVERRIDE YES' docbook.cat || die + default +} + +src_install() { + keepdir /etc/xml + + insinto "/usr/share/sgml/docbook/xml-dtd-${PV}" + doins *.cat *.dtd *.mod || die + insinto "/usr/share/sgml/docbook/xml-dtd-${PV}/ent" + doins ent/*.ent + + insinto /etc/sgml + newins - "xml-docbook-${PV}.cat" <<-EOF + CATALOG "${EPREFIX}/etc/sgml/sgml-docbook.cat" + CATALOG "${EPREFIX}/usr/share/sgml/docbook/xml-dtd-${PV}/docbook.cat" + EOF + + dodoc ChangeLog *.txt +} + +pkg_preinst() { + # work-around old revision removing it + cp "${ED}"/etc/sgml/xml-docbook-${PV}.cat "${T}" || die +} + +pkg_postinst() { + if [[ ! -f ${EROOT}/etc/sgml/xml-docbook-${PV}.cat ]]; then + cp "${T}"/xml-docbook-${PV}.cat "${EROOT}"/etc/sgml/ || die + fi + build-docbook-catalog + sgml-catalog-r1_pkg_postinst +} + +pkg_postrm() { + build-docbook-catalog + sgml-catalog-r1_pkg_postrm +} |