From 376ee0221e6a0495e27dccb3cb44e7c7c2ed126f Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Wed, 4 Sep 2019 10:39:45 +0200 Subject: app-text/docbook-xml-simple-dtd: Bump to EAPI 7, use sgml-catalog-r1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- .../docbook-xml-simple-dtd-1.0-r3.ebuild | 49 ++++++++++++++++++++ .../docbook-xml-simple-dtd-4.1.2.4-r4.ebuild | 53 ++++++++++++++++++++++ .../docbook-xml-simple-dtd-4.1.2.5-r3.ebuild | 49 ++++++++++++++++++++ 3 files changed, 151 insertions(+) create mode 100644 app-text/docbook-xml-simple-dtd/docbook-xml-simple-dtd-1.0-r3.ebuild create mode 100644 app-text/docbook-xml-simple-dtd/docbook-xml-simple-dtd-4.1.2.4-r4.ebuild create mode 100644 app-text/docbook-xml-simple-dtd/docbook-xml-simple-dtd-4.1.2.5-r3.ebuild (limited to 'app-text/docbook-xml-simple-dtd') diff --git a/app-text/docbook-xml-simple-dtd/docbook-xml-simple-dtd-1.0-r3.ebuild b/app-text/docbook-xml-simple-dtd/docbook-xml-simple-dtd-1.0-r3.ebuild new file mode 100644 index 000000000000..ca6929bbed33 --- /dev/null +++ b/app-text/docbook-xml-simple-dtd/docbook-xml-simple-dtd-1.0-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=docbook-simple-${PV} +DESCRIPTION="Simplified Docbook DTD for XML" +HOMEPAGE="https://www.oasis-open.org/docbook/" +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}.cat 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 +} diff --git a/app-text/docbook-xml-simple-dtd/docbook-xml-simple-dtd-4.1.2.4-r4.ebuild b/app-text/docbook-xml-simple-dtd/docbook-xml-simple-dtd-4.1.2.4-r4.ebuild new file mode 100644 index 000000000000..546b6d954eed --- /dev/null +++ b/app-text/docbook-xml-simple-dtd/docbook-xml-simple-dtd-4.1.2.4-r4.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit sgml-catalog-r1 + +MY_P="sdb${PV//.}" +DESCRIPTION="Simplified Docbook DTD for XML" +HOMEPAGE="https://www.oasis-open.org/docbook/" +SRC_URI="mirror://gentoo/${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 + !!app-text/docbook-xml-simple-dtd:0" +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 /usr/share/sgml/docbook/${P#docbook-}/ent + doins ent/*.ent + + 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 +} 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 +} -- cgit v1.2.3-65-gdbad