summaryrefslogtreecommitdiff
blob: 694a88facc45f6a81e9460cfd38900421f15d4b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/xhtml1/xhtml1-20020801.ebuild,v 1.3 2003/07/11 20:35:25 aliz Exp $

DESCRIPTION="DTDs for the eXtensible HyperText Markup Language 1.0"
HOMEPAGE="http://www.w3.org/TR/${PN}/"
SRC_URI="${HOMEPAGE}${PN}.tgz"
LICENSE="W3C"
SLOT="0"
KEYWORDS="x86"
DEPEND="app-text/sgml-common"

src_install() {
	insinto /usr/share/sgml/${PN}
	doins DTD/xhtml.soc DTD/*.dcl DTD/*.dtd DTD/*.ent
	insinto /etc/sgml
	dodoc *.pdf *.ps
	dohtml *.html *.png *.css
}

pkg_postinst() {
    if [ -x  "/usr/bin/install-catalog" ] && [ "$ROOT" = "/" ]
	then
		install-catalog --add /etc/sgml/${PN}.cat /usr/share/sgml/${PN}/xhtml.soc
	fi
}

pkg_prerm() {
	if [ -e /etc/sgml/${PN}.cat ]
	then
		install-catalog --remove /etc/sgml/${PN}.cat /usr/share/sgml/${PN}/xhtml.soc
	fi
}