mono-1.9.1: first pass at adding mono 1.9.1 to OE
[openembedded.git] / packages / docbook-sgml-dtd / docbook-sgml-dtd-native.inc
blob69c9811d8a653780c990ed2feca89e594c932567
1 # The DTDs of the various versions have to be installed in parallel and should
2 # not replace each other. The installation step is common for all versions
3 # and just differs in the DTD_VERSION.
5 # However the DTDs need some quirks (see LFS documentation).
7 DESCRIPTION = "Document type definitions for verification of SGML data files against the DocBook rule set"
9 DEPENDS = "sgml-common-native"
11 SRC_URI = "http://www.docbook.org/sgml/${DTD_VERSION}/docbook-${DTD_VERSION}.zip"
13 S = "${WORKDIR}"
15 inherit native
17 do_stage () {
18     # Refer to http://www.linuxfromscratch.org/blfs/view/stable/pst/sgml-dtd.html
19     # for details.
20     install -d -m 755 ${STAGING_DATADIR}/sgml/docbook/sgml-dtd-${DTD_VERSION}
21     install docbook.cat ${STAGING_DATADIR}/sgml/docbook/sgml-dtd-${DTD_VERSION}/catalog
22     cp -dpr *.dtd *.mod *.dcl ${STAGING_DATADIR}/sgml/docbook/sgml-dtd-${DTD_VERSION}
23     
24     install-catalog --add ${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat \
25       ${STAGING_DATADIR}/sgml/docbook/sgml-dtd-${DTD_VERSION}/catalog
26         
27     install-catalog --add ${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat \
28       ${sysconfdir}/sgml/sgml-docbook.cat
31 PACKAGES = ""