diff options
Diffstat (limited to 'recipes/sgml-common/sgml-common_0.6.3.bb')
-rw-r--r-- | recipes/sgml-common/sgml-common_0.6.3.bb | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes/sgml-common/sgml-common_0.6.3.bb b/recipes/sgml-common/sgml-common_0.6.3.bb new file mode 100644 index 0000000000..3454b1cb01 --- /dev/null +++ b/recipes/sgml-common/sgml-common_0.6.3.bb @@ -0,0 +1,42 @@ +LICENSE = "GPL" +SECTION = "base" +DESCRIPTION = "The sgml-common package gathers very basic \ +stuff necessary to work with SGML and XML, such as xml.dcl, \ +a SGML declaration of XML; iso-entities, a list of the basic \ +SGML ISO entities; and install-catalog, a script used to \ +add entries to (or remove entries from) centralized catalogs \ +whose entries are pointers to SGML open catalogs, \ +as defined by OASIS." + +FILES_sgml-common_append = " ${datadir}/sgml" + +SRC_URI = "ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/sgml-common-${PV}.tgz \ + file://autohell.patch;patch=1" + +inherit autotools + +do_compile_append() { + # install-catalog script contains hardcoded reference to /etc/sgml. + sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" bin/install-catalog +} + +pkg_postinst() { + install-catalog \ + --add ${sysconfdir}/sgml/sgml-ent.cat \ + ${datadir}/sgml/sgml-iso-entities-8879.1986/catalog + + install-catalog \ + --add ${sysconfdir}/sgml/sgml-docbook.cat \ + ${sysconfdir}/sgml/sgml-ent.cat +} + +pkg_postrm() { + install-catalog \ + --remove ${sysconfdir}/sgml/sgml-ent.cat \ + ${datadir}/sgml/sgml-iso-entities-8879.1986/catalog + + install-catalog \ + --remove ${sysconfdir}/sgml/sgml-docbook.cat \ + ${sysconfdir}/sgml/sgml-ent.cat +} + |