summaryrefslogtreecommitdiff
blob: be354be83ba8b9e0077d04b90442ed8f98086305 (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
34
35
36
37
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/app-text/gentoo-guide-xml-dtd/gentoo-guide-xml-dtd-2.1.ebuild,v 1.8 2002/09/12 07:20:19 satai Exp $

S=${WORKDIR}
DESCRIPTION="DTD for Gentoo-Guide Style XML Files"
HOMEPAGE="http://www.gentoo.org"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 sparc sparc64"

DEPEND=">=app-text/sgml-common-0.6.1"

src_install () {

    cd ${FILESDIR}

    insinto /usr/share/sgml/guide
    doins catalog
    insinto /usr/share/sgml/guide/ent
    doins ent/*.ent
    insinto /usr/share/sgml/guide/xml-dtd-2.1
    newins guide/guide-2.1.dtd guide.dtd

}

pkg_postinst() {
    install-catalog --add /etc/sgml/gentoo-guide.cat /usr/share/sgml/guide/catalog
}

pkg_prerm() {
	if [ -e /etc/sgml/gentoo-guide.cat ]
	then
    	install-catalog --remove /etc/sgml/gentoo-guide.cat /usr/share/sgml/guide/catalog
	fi
}