diff options
Diffstat (limited to 'meta/recipes-devtools/openjade/openjade-native_1.3.2.bb')
-rw-r--r-- | meta/recipes-devtools/openjade/openjade-native_1.3.2.bb | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb b/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb index afcb8ca13a..8b15b0c7ec 100644 --- a/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb +++ b/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb | |||
@@ -48,7 +48,6 @@ CXXFLAGS += "-fno-tree-dse" | |||
48 | 48 | ||
49 | SSTATEPOSTINSTFUNCS += "openjade_sstate_postinst" | 49 | SSTATEPOSTINSTFUNCS += "openjade_sstate_postinst" |
50 | SYSROOT_PREPROCESS_FUNCS += "openjade_sysroot_preprocess" | 50 | SYSROOT_PREPROCESS_FUNCS += "openjade_sysroot_preprocess" |
51 | CLEANFUNCS += "openjade_sstate_clean" | ||
52 | 51 | ||
53 | # configure.in needs to be reloacted to trigger reautoconf | 52 | # configure.in needs to be reloacted to trigger reautoconf |
54 | do_extraunpack () { | 53 | do_extraunpack () { |
@@ -104,6 +103,15 @@ openjade_sstate_postinst() { | |||
104 | ${SYSROOT_DESTDIR}${bindir_crossscripts}/install-catalog-openjade \ | 103 | ${SYSROOT_DESTDIR}${bindir_crossscripts}/install-catalog-openjade \ |
105 | --add ${sysconfdir}/sgml/sgml-docbook.cat \ | 104 | --add ${sysconfdir}/sgml/sgml-docbook.cat \ |
106 | ${sysconfdir}/sgml/openjade-${PV}.cat | 105 | ${sysconfdir}/sgml/openjade-${PV}.cat |
106 | cat << EOF > ${SSTATE_INST_POSTRM} | ||
107 | #!/bin/sh | ||
108 | # Ensure that the catalog file sgml-docbook.cat is properly | ||
109 | # updated when the package is removed from sstate cache. | ||
110 | files="${sysconfdir}/sgml/sgml-docbook.bak ${sysconfdir}/sgml/sgml-docbook.cat" | ||
111 | for f in \$files; do | ||
112 | [ ! -f \$f ] || sed -i '/\/sgml\/openjade-${PV}.cat/d' \$f | ||
113 | done | ||
114 | EOF | ||
107 | fi | 115 | fi |
108 | } | 116 | } |
109 | 117 | ||
@@ -111,12 +119,3 @@ openjade_sysroot_preprocess () { | |||
111 | install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/ | 119 | install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/ |
112 | install -m 755 ${STAGING_BINDIR_NATIVE}/install-catalog ${SYSROOT_DESTDIR}${bindir_crossscripts}/install-catalog-openjade | 120 | install -m 755 ${STAGING_BINDIR_NATIVE}/install-catalog ${SYSROOT_DESTDIR}${bindir_crossscripts}/install-catalog-openjade |
113 | } | 121 | } |
114 | |||
115 | openjade_sstate_clean () { | ||
116 | # Ensure that the catalog file sgml-docbook.cat is properly | ||
117 | # updated when the package is removed from sstate cache. | ||
118 | files="${sysconfdir}/sgml/sgml-docbook.bak ${sysconfdir}/sgml/sgml-docbook.cat" | ||
119 | for f in $files; do | ||
120 | [ ! -f $f ] || sed -i '/\/sgml\/openjade-${PV}.cat/d' $f | ||
121 | done | ||
122 | } | ||