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 | 9 |
1 files changed, 9 insertions, 0 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 ccce421cf3..fa7aa62eb3 100644 --- a/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb +++ b/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb | |||
@@ -40,6 +40,7 @@ CFLAGS =+ "-I${S}/include" | |||
40 | 40 | ||
41 | SSTATEPOSTINSTFUNCS += "openjade_sstate_postinst" | 41 | SSTATEPOSTINSTFUNCS += "openjade_sstate_postinst" |
42 | SYSROOT_PREPROCESS_FUNCS += "openjade_sysroot_preprocess" | 42 | SYSROOT_PREPROCESS_FUNCS += "openjade_sysroot_preprocess" |
43 | CLEANFUNCS += "openjade_sstate_clean" | ||
43 | 44 | ||
44 | # configure.in needs to be reloacted to trigger reautoconf | 45 | # configure.in needs to be reloacted to trigger reautoconf |
45 | do_extraunpack () { | 46 | do_extraunpack () { |
@@ -97,3 +98,11 @@ openjade_sysroot_preprocess () { | |||
97 | install -m 755 ${STAGING_BINDIR_NATIVE}/install-catalog ${SYSROOT_DESTDIR}${bindir_crossscripts}/install-catalog-openjade | 98 | install -m 755 ${STAGING_BINDIR_NATIVE}/install-catalog ${SYSROOT_DESTDIR}${bindir_crossscripts}/install-catalog-openjade |
98 | } | 99 | } |
99 | 100 | ||
101 | openjade_sstate_clean () { | ||
102 | # Ensure that the catalog file sgml-docbook.cat is properly | ||
103 | # updated when the package is removed from sstate cache. | ||
104 | files="${sysconfdir}/sgml/sgml-docbook.bak ${sysconfdir}/sgml/sgml-docbook.cat" | ||
105 | for f in $files; do | ||
106 | [ ! -f $f ] || sed -i '/\/sgml\/openjade-${PV}.cat/d' $f | ||
107 | done | ||
108 | } | ||