diff options
author | Leonardo Boshell <leonardop@gentoo.org> | 2007-08-20 09:53:52 +0000 |
---|---|---|
committer | Leonardo Boshell <leonardop@gentoo.org> | 2007-08-20 09:53:52 +0000 |
commit | 196f2b09ca724ccb258a31b9b18648242d51e6a1 (patch) | |
tree | 20ffaedd3e016da234d082089f4ef08cbd5c16a6 /app-text/docbook-xml-dtd/docbook-xml-dtd-4.5.ebuild | |
parent | dev-dotnet/mono-tools-1.2.4: Fixed compilation error with USE=-gtkhtml (diff) | |
download | gentoo-2-196f2b09ca724ccb258a31b9b18648242d51e6a1.tar.gz gentoo-2-196f2b09ca724ccb258a31b9b18648242d51e6a1.tar.bz2 gentoo-2-196f2b09ca724ccb258a31b9b18648242d51e6a1.zip |
XML DTD for DocBook 4.5 (bug #180371)
(Portage version: 2.1.3.5)
Diffstat (limited to 'app-text/docbook-xml-dtd/docbook-xml-dtd-4.5.ebuild')
-rw-r--r-- | app-text/docbook-xml-dtd/docbook-xml-dtd-4.5.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/app-text/docbook-xml-dtd/docbook-xml-dtd-4.5.ebuild b/app-text/docbook-xml-dtd/docbook-xml-dtd-4.5.ebuild new file mode 100644 index 000000000000..e537e3d76747 --- /dev/null +++ b/app-text/docbook-xml-dtd/docbook-xml-dtd-4.5.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/docbook-xml-dtd/docbook-xml-dtd-4.5.ebuild,v 1.1 2007/08/20 09:53:52 leonardop Exp $ + +inherit sgml-catalog + +MY_P=${P/-dtd/} +DESCRIPTION="Docbook DTD for XML" +HOMEPAGE="http://www.docbook.org/xml/" +SRC_URI="http://www.docbook.org/xml/${PV}/${MY_P}.zip" + +LICENSE="X11" +SLOT="4.5" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" +IUSE="" + +DEPEND=">=app-arch/unzip-5.41 + >=dev-libs/libxml2-2.4 + >=app-text/docbook-xsl-stylesheets-1.65 + >=app-text/build-docbook-catalog-1.2" + +RDEPEND="" + + +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" + + +src_unpack() { + mkdir "${S}" + cd "${S}" + 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 *.xml + insinto /usr/share/sgml/docbook/xml-dtd-${PV}/ent + doins ent/*.ent + + mv ent/README README.ent + dodoc ChangeLog README* +} + +pkg_postinst() { + build-docbook-catalog + sgml-catalog_pkg_postinst +} + +pkg_postrm() { + build-docbook-catalog + sgml-catalog_pkg_postrm +} |