diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-09-13 17:45:37 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-09-13 17:45:37 +0100 |
commit | a1392efe64137262023d92492396ca9156d22396 (patch) | |
tree | de438b2711c7697c4597fb04f07e988586f34233 /app-text/docbook-xml-simple-dtd/docbook-xml-simple-dtd-4.1.2.5-r3.ebuild | |
parent | e3cf2c86fca1750343c1885311f857f185ee4f2d (diff) |
gentoo resync : 13.09.2019
Diffstat (limited to 'app-text/docbook-xml-simple-dtd/docbook-xml-simple-dtd-4.1.2.5-r3.ebuild')
-rw-r--r-- | app-text/docbook-xml-simple-dtd/docbook-xml-simple-dtd-4.1.2.5-r3.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/app-text/docbook-xml-simple-dtd/docbook-xml-simple-dtd-4.1.2.5-r3.ebuild b/app-text/docbook-xml-simple-dtd/docbook-xml-simple-dtd-4.1.2.5-r3.ebuild new file mode 100644 index 000000000000..b818a587508e --- /dev/null +++ b/app-text/docbook-xml-simple-dtd/docbook-xml-simple-dtd-4.1.2.5-r3.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit sgml-catalog-r1 + +MY_P=simple${PV//./} +DESCRIPTION="Simplified Docbook DTD for XML" +HOMEPAGE="http://www.oasis-open.org/docbook/xml/simple/4.1.2.5/" +SRC_URI="https://www.oasis-open.org/docbook/xml/simple/${PV}/${MY_P}.zip" + +LICENSE="docbook" +SLOT="${PV}" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos ~sparc-solaris" +IUSE="" + +RDEPEND=">=app-text/build-docbook-catalog-1.6" +DEPEND=">=app-arch/unzip-5.41" + +S=${WORKDIR} + +src_install() { + insinto /usr/share/sgml/docbook/${P#docbook-} + doins *.dtd *.mod *.css + newins "${FILESDIR}"/${P}.catalog catalog + + insinto /etc/sgml + newins - "xml-simple-docbook-${PV}.cat" <<-EOF + CATALOG "${EPREFIX}/usr/share/sgml/docbook/xml-simple-dtd-${PV}/catalog" + EOF +} + +pkg_preinst() { + # work-around old revision removing it + cp "${ED}"/etc/sgml/xml-simple-docbook-${PV}.cat "${T}" || die +} + +pkg_postinst() { + if [[ ! -f ${EROOT}/etc/sgml/xml-simple-docbook-${PV}.cat ]]; then + cp "${T}"/xml-simple-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 +} |