# Copyright 1999-2005 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.4.ebuild,v 1.7 2005/09/04 17:04:42 ferdy Exp $ MY_P=${P/-dtd/} DESCRIPTION="Docbook DTD for XML" HOMEPAGE="http://www.docbook.org/xml/index.html" SRC_URI="http://www.docbook.org/xml/${PV}/${MY_P}.zip" LICENSE="X11" SLOT="4.4" KEYWORDS="alpha ~amd64 arm hppa ia64 ~mips ppc ppc64 s390 sparc x86" 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="" src_unpack() { mkdir ${S} cd ${S} unpack ${A} } src_install() { keepdir /etc/xml insinto /usr/share/sgml/docbook/xml-dtd-${PV} doins *.dtd *.mod doins docbook.cat 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 } pkg_postrm() { build-docbook-catalog }