summaryrefslogtreecommitdiff
path: root/recipes
diff options
context:
space:
mode:
authorNoor Ahsan <noor_ahsan@mentor.com>2010-08-24 02:50:58 +0000
committerFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2010-08-24 17:53:20 +0200
commitf36fb215be1576e105817c582ed554a4a590c813 (patch)
tree10b72e2390922c8a061c7135d83cfe3bae2de745 /recipes
parent167ad00f3819a0b300cc0d3daac6c16962c6c3a7 (diff)
sgml-common-native: Convert to new style staging, remove do_stage()
* Converted do_stage to do_install * Replaced ${STAGING_BINDIR_NATIVE} with ${D}${bindir}, ${sysconfdir} with ${D}${sysconfdir}, ${STAGING_DATADIR} with ${D}${datadir}. * Updated install-catalog script. it had hard coded reference to ${sysconfdir}. Changed it to ${D}${sysconfdir}. * Used SYSROOT_PREPROCESS_FUNCS to add a function sgml_common_native_mangle. * Write new function sgml_common_native_mangle function. * Reverted back ${sysconfdir} path in install-catalog in sgml_common_native_mangle * Updated path in sgml_common_native_mangle function from ${D}${datadir}/sgml/sgml-iso-entities-8879.1986/catalog to ${datadir}/sgml/sgml-iso-entities-8879.1986/catalog in sgml-ent.cat file. * Updated path in sgml_common_native_mangle function from ${D}${sysconfdir}/sgml/sgml-ent.cat|${sysconfdir}/sgml/sgml-ent.cat to ${sysconfdir}/sgml/sgml-ent.cat in sgml-ent.cat file * Removed ${D} path in sgml_common_native_mangle function from catalog file created by install-catalog script. * Bump PR to "r1" Signed-off-by: Noor Ahsan <noor_ahsan@mentor.com>
Diffstat (limited to 'recipes')
-rw-r--r--recipes/sgml-common/sgml-common-native_0.6.3.bb50
1 files changed, 31 insertions, 19 deletions
diff --git a/recipes/sgml-common/sgml-common-native_0.6.3.bb b/recipes/sgml-common/sgml-common-native_0.6.3.bb
index 67f1710a4f..9c33968f35 100644
--- a/recipes/sgml-common/sgml-common-native_0.6.3.bb
+++ b/recipes/sgml-common/sgml-common-native_0.6.3.bb
@@ -1,37 +1,49 @@
SECTION = "base"
DEPENDS = ""
+PR = "r1"
SRC_URI[md5sum] = "103c9828f24820df86e55e7862e28974"
SRC_URI[sha256sum] = "7dc418c1d361123ffc5e45d61f1b97257940a8eb35d0bfbbc493381cc5b1f959"
S = "${WORKDIR}/sgml-common-${PV}"
+SYSROOT_PREPROCESS_FUNCS += "sgml_common_native_mangle"
require sgml-common_${PV}.bb
inherit native
do_install () {
- :
-}
-do_stage () {
# 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}/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
+ install -d ${D}${bindir}/
+ install -m 0755 bin/install-catalog ${D}${bindir}/
+ install -m 0755 bin/sgmlwhich ${D}${bindir}/
+ install -d ${D}${sysconfdir}/sgml/
+ install -m 0644 config/sgml.conf ${D}${sysconfdir}/sgml
+ install -d ${D}${datadir}/sgml
+ install -m 0644 xml.dcl ${D}${datadir}/sgml/
+ install -d ${D}${datadir}/sgml/xml-iso-entities-8879.1986
+ install -m 0644 xml-iso-entities/catalog ${D}${datadir}/sgml/xml-iso-entities-8879.1986/
+ install -m 0644 xml-iso-entities/*.ent ${D}${datadir}/sgml/xml-iso-entities-8879.1986/
+ install -d ${D}${datadir}/sgml/sgml-iso-entities-8879.1986
+ install -m 0644 sgml-iso-entities/catalog ${D}${datadir}/sgml/sgml-iso-entities-8879.1986/
+ install -m 0644 sgml-iso-entities/*.ent ${D}${datadir}/sgml/sgml-iso-entities-8879.1986/
+ # install-catalog script contains hard coded reference to {sysconfdir}. Changed 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
}
PACKAGES = ""
+sgml_common_native_mangle () {
+ # Reverte 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
+}