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"
18 # Refer to http://www.linuxfromscratch.org/blfs/view/stable/pst/sgml-dtd.html
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}
24 install-catalog --add ${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat \
25 ${STAGING_DATADIR}/sgml/docbook/sgml-dtd-${DTD_VERSION}/catalog
27 install-catalog --add ${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat \
28 ${sysconfdir}/sgml/sgml-docbook.cat