diff options
Diffstat (limited to 'packages/sgml-common')
-rw-r--r-- | packages/sgml-common/sgml-common-native_0.6.3.bb | 25 | ||||
-rw-r--r-- | packages/sgml-common/sgml-common_0.6.3.bb | 26 |
2 files changed, 44 insertions, 7 deletions
diff --git a/packages/sgml-common/sgml-common-native_0.6.3.bb b/packages/sgml-common/sgml-common-native_0.6.3.bb index 749e26a500..873de8021b 100644 --- a/packages/sgml-common/sgml-common-native_0.6.3.bb +++ b/packages/sgml-common/sgml-common-native_0.6.3.bb @@ -8,18 +8,29 @@ S = "${WORKDIR}/sgml-common-${PV}" PACKAGES = "" do_stage () { - install -m 0755 bin/install-catalog ${STAGING_BINDIR}/ - install -m 0755 bin/sgmlwhich ${STAGING_BINDIR}/ - install -d ${STAGING_DIR}/etc - install -m 0644 config/sgml.conf ${STAGING_DIR}/etc/ + # For unknown reasons 'make install' does not work. + install -m 0755 bin/install-catalog ${STAGING_BINDIR_NATIVE}/ + install -m 0755 bin/sgmlwhich ${STAGING_BINDIR_NATIVE}/ + + install -d ${sysconfdir}/sgml + install -m 0644 config/sgml.conf ${sysconfdir}/sgml + install -d ${STAGING_DATADIR}/sgml install -m 0644 xml.dcl ${STAGING_DATADIR}/sgml/ - install -d ${STAGING_DATADIR}/xml/xml-iso-entities-8879.1986 - install -m 0644 xml-iso-entities/catalog ${STAGING_DATADIR}/xml/xml-iso-entities-8879.1986/ - install -m 0644 xml-iso-entities/*.ent ${STAGING_DATADIR}/xml/xml-iso-entities-8879.1986/ + + install -d ${STAGING_DATADIR}/sgml/xml-iso-entities-8879.1986 + install -m 0644 xml-iso-entities/catalog ${STAGING_DATADIR}/sgml/xml-iso-entities-8879.1986/ + install -m 0644 xml-iso-entities/*.ent ${STAGING_DATADIR}/sgml/xml-iso-entities-8879.1986/ install -d ${STAGING_DATADIR}/sgml/sgml-iso-entities-8879.1986 install -m 0644 sgml-iso-entities/catalog ${STAGING_DATADIR}/sgml/sgml-iso-entities-8879.1986/ install -m 0644 sgml-iso-entities/*.ent ${STAGING_DATADIR}/sgml/sgml-iso-entities-8879.1986/ + + install-catalog \ + --add ${sysconfdir}/sgml/sgml-ent.cat ${STAGING_DATADIR}/sgml/sgml-iso-entities-8879.1986/catalog + + install-catalog \ + --add ${sysconfdir}/sgml/sgml-docbook.cat ${sysconfdir}/sgml/sgml-ent.cat + } do_install () { diff --git a/packages/sgml-common/sgml-common_0.6.3.bb b/packages/sgml-common/sgml-common_0.6.3.bb index 8b9fd5aeda..3454b1cb01 100644 --- a/packages/sgml-common/sgml-common_0.6.3.bb +++ b/packages/sgml-common/sgml-common_0.6.3.bb @@ -14,3 +14,29 @@ SRC_URI = "ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/sgml-co 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 +} + |