| # Copyright 1999-2010 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.12 2010/02/11 14:51:39 ulm Exp $ |
| |
| 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="*" |
| IUSE="" |
| |
| RDEPEND="" |
| 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" |
| |
| 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 *.xml || die |
| insinto /usr/share/sgml/docbook/xml-dtd-${PV}/ent |
| doins ent/*.ent || die |
| |
| cp 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 |
| } |