summaryrefslogtreecommitdiff
path: root/packages/docbook-sgml-dtd/docbook-sgml-dtd-native_3.1.bb
blob: 926c311fd5e62cf2584b9228150b5c3539bf751d (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
DESCRIPTION = "Document type definitions for verification of SGML data files against the DocBook rule set"

DEPENDS = "sgml-common-native"

SRC_URI = "http://www.docbook.org/sgml/${PV}/docbk31.zip"

S = "${WORKDIR}"

inherit native

do_compile() {
    sed -i -e '/ISO 8879/d' -e 's|DTDDECL "-//OASIS//DTD DocBook V3.1//EN"|SGMLDECL|g' docbook.cat
}

do_stage () {
    # Refer to http://www.linuxfromscratch.org/blfs/view/stable/pst/sgml-dtd-3.html
    # for details.
    install -d -m 755 ${STAGING_DATADIR}/sgml/docbook/sgml-dtd-${PV}
    install docbook.cat ${STAGING_DATADIR}/sgml/docbook/sgml-dtd-${PV}/catalog
    cp -dpr *.dtd *.mod *.dcl ${STAGING_DATADIR}/sgml/docbook/sgml-dtd-${PV}
    
    install-catalog --add ${sysconfdir}/sgml/sgml-docbook-dtd-${PV}.cat \
      ${STAGING_DATADIR}/sgml/docbook/sgml-dtd-${PV}/catalog
	
    install-catalog --add ${sysconfdir}/sgml/sgml-docbook-dtd-${PV}.cat \
      ${sysconfdir}/sgml/sgml-docbook.cat    
}

PACKAGES = ""