diff options
Diffstat (limited to 'packages/docbook-sgml-dtd/docbook-sgml-dtd-native_3.1.bb')
-rw-r--r-- | packages/docbook-sgml-dtd/docbook-sgml-dtd-native_3.1.bb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/packages/docbook-sgml-dtd/docbook-sgml-dtd-native_3.1.bb b/packages/docbook-sgml-dtd/docbook-sgml-dtd-native_3.1.bb new file mode 100644 index 0000000000..926c311fd5 --- /dev/null +++ b/packages/docbook-sgml-dtd/docbook-sgml-dtd-native_3.1.bb @@ -0,0 +1,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 = "" |