diff options
author | Scott Garman <scott.a.garman@intel.com> | 2011-01-24 18:50:09 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-01 23:59:35 +0000 |
commit | b8bb770e96d4c3296f8b2da497675b067145ddf6 (patch) | |
tree | aa0584b485826145b890a9581b9a934bc28f2d32 /meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb | |
parent | 05954ef4d7d882f34e2bb1f3bc44ad6f80c11d4c (diff) | |
download | openembedded-core-b8bb770e96d4c3296f8b2da497675b067145ddf6.tar.gz openembedded-core-b8bb770e96d4c3296f8b2da497675b067145ddf6.tar.bz2 openembedded-core-b8bb770e96d4c3296f8b2da497675b067145ddf6.zip |
sgml-common: new recipe v0.6.3
Recipe derived from OpenEmbedded.
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Diffstat (limited to 'meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb')
-rw-r--r-- | meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb b/meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb new file mode 100644 index 0000000000..7e9b923622 --- /dev/null +++ b/meta/recipes-devtools/sgml-common/sgml-common-native_0.6.3.bb @@ -0,0 +1,50 @@ +SUMMARY = "Base utilities for working with SGML and XML" +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." +HOMEPAGE = "http://sources.redhat.com/docbook-tools/" +LICENSE = "GPLv2" +# The COPYING file sgml-common ships with is just a symlink to +# /usr/share/automake/COPYING, which means we can't verify it +# using our normal means. :( Hash the README file instead as +# LIC_FILES_CHKSUM is still required. +LIC_FILES_CHKSUM = "file://README;md5=197bd940bf13548ac2198e4f77d3da92" +SECTION = "base" + +PR = "r0" + +require sgml-common_${PV}.bb +inherit native + +S = "${WORKDIR}/sgml-common-${PV}" + +SYSROOT_PREPROCESS_FUNCS += "sgml_common_native_mangle" + +do_install_append() { + # install-catalog script contains hard-coded references to + # {sysconfdir}. Change it to ${D}${sysconfdir}. + sed -i -e "s|${sysconfdir}/sgml|${D}${sysconfdir}/sgml|g" ${D}${bindir}/install-catalog + + ${D}${bindir}/install-catalog \ + --add ${D}${sysconfdir}/sgml/sgml-ent.cat \ + ${D}${datadir}/sgml/sgml-iso-entities-8879.1986/catalog + + ${D}${bindir}/install-catalog \ + --add ${D}${sysconfdir}/sgml/sgml-docbook.cat \ + ${D}${sysconfdir}/sgml/sgml-ent.cat +} + +sgml_common_native_mangle () { + # Revert back to ${sysconfdir} path in install-catalog + sed -i -e "s|${D}${sysconfdir}/sgml|${sysconfdir}/sgml|g" ${SYSROOT_DESTDIR}${STAGING_BINDIR}/install-catalog + # Change path from ${D}${datadir}/sgml/sgml-iso-entities-8879.1986/catalog to ${datadir}/sgml/sgml-iso-entities-8879.1986/catalog in sgml-ent.cat + sed -i -e "s|${D}${datadir}/sgml/sgml-iso-entities-8879.1986/catalog|${datadir}/sgml/sgml-iso-entities-8879.1986/catalog|g" ${SYSROOT_DESTDIR}${sysconfdir}/sgml/sgml-ent.cat + # Change path from ${D}${sysconfdir}/sgml/sgml-ent.cat|${sysconfdir}/sgml/sgml-ent.cat to ${sysconfdir}/sgml/sgml-ent.cat in sgml-ent.cat + sed -i -e "s|${D}${sysconfdir}/sgml/sgml-ent.cat|${sysconfdir}/sgml/sgml-ent.cat|g" ${SYSROOT_DESTDIR}${sysconfdir}/sgml/sgml-docbook.cat + # Remove ${D} path from catalog file created by install-catalog script + sed -i -e "s|${D}||g" ${SYSROOT_DESTDIR}${sysconfdir}/sgml/catalog +} |