Merge branch 'vuplus-1.6k' of code.vuplus.com:/opt/repository/openembedded into vuplu...
[vuplus_openembedded] / recipes / docbook-sgml-dtd / docbook-sgml-dtd-native.inc
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.
4 #
5 # However the DTDs need some quirks (see LFS documentation).
6
7 DESCRIPTION = "Document type definitions for verification of SGML data files against the DocBook rule set"
8
9 DEPENDS = "sgml-common-native"
10
11 SRC_URI = "http://www.docbook.org/sgml/${DTD_VERSION}/docbook-${DTD_VERSION}.zip"
12
13 S = "${WORKDIR}"
14
15 inherit native
16
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
29 }
30
31 PACKAGES = ""