diff options
Diffstat (limited to 'app-text/docbook-xml-dtd/docbook-xml-dtd-4.3-r1.ebuild')
-rw-r--r-- | app-text/docbook-xml-dtd/docbook-xml-dtd-4.3-r1.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/app-text/docbook-xml-dtd/docbook-xml-dtd-4.3-r1.ebuild b/app-text/docbook-xml-dtd/docbook-xml-dtd-4.3-r1.ebuild new file mode 100644 index 000000000000..92efbd845a58 --- /dev/null +++ b/app-text/docbook-xml-dtd/docbook-xml-dtd-4.3-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit sgml-catalog + +MY_P=${P/-dtd/} +DESCRIPTION="Docbook DTD for XML" +HOMEPAGE="http://www.docbook.org/" +SRC_URI="http://www.docbook.org/xml/${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 ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~arm-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" + +sgml-catalog_cat_include "/etc/sgml/xml-docbook-${PV}.cat" \ + "/etc/sgml/sgml-docbook.cat" +sgml-catalog_cat_include "/etc/sgml/xml-docbook-${PV}.cat" \ + "/usr/share/sgml/docbook/xml-dtd-${PV}/docbook.cat" + +S=${WORKDIR} + +src_unpack() { + unpack ${A} + + # Prepend OVERRIDE directive + sed -i -e '1i\\OVERRIDE YES' docbook.cat +} + +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 || die + + dodoc ChangeLog README +} + +pkg_postinst() { + build-docbook-catalog + sgml-catalog_pkg_postinst +} + +pkg_postrm() { + build-docbook-catalog + sgml-catalog_pkg_postrm +} |