diff options
Diffstat (limited to 'meta/recipes-devtools/docbook-dsssl-stylesheets')
| -rw-r--r-- | meta/recipes-devtools/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-native_1.79.bb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/recipes-devtools/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-native_1.79.bb b/meta/recipes-devtools/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-native_1.79.bb index d5f5381d72..461b48f4ca 100644 --- a/meta/recipes-devtools/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-native_1.79.bb +++ b/meta/recipes-devtools/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-native_1.79.bb | |||
| @@ -19,6 +19,7 @@ inherit native | |||
| 19 | 19 | ||
| 20 | SSTATEPOSTINSTFUNCS += "docbook_dsssl_stylesheets_sstate_postinst" | 20 | SSTATEPOSTINSTFUNCS += "docbook_dsssl_stylesheets_sstate_postinst" |
| 21 | SYSROOT_PREPROCESS_FUNCS += "docbook_dsssl_sysroot_preprocess" | 21 | SYSROOT_PREPROCESS_FUNCS += "docbook_dsssl_sysroot_preprocess" |
| 22 | CLEANFUNCS += "docbook_dsssl_stylesheets_sstate_clean" | ||
| 22 | 23 | ||
| 23 | 24 | ||
| 24 | do_install () { | 25 | do_install () { |
| @@ -57,3 +58,11 @@ docbook_dsssl_sysroot_preprocess () { | |||
| 57 | install -m 755 ${STAGING_BINDIR_NATIVE}/install-catalog ${SYSROOT_DESTDIR}${bindir_crossscripts}/install-catalog-docbook-dsssl | 58 | install -m 755 ${STAGING_BINDIR_NATIVE}/install-catalog ${SYSROOT_DESTDIR}${bindir_crossscripts}/install-catalog-docbook-dsssl |
| 58 | } | 59 | } |
| 59 | 60 | ||
| 61 | docbook_dsssl_stylesheets_sstate_clean () { | ||
| 62 | # Ensure that the catalog file sgml-docbook.cat is properly | ||
| 63 | # updated when the package is removed from sstate cache. | ||
| 64 | files="${sysconfdir}/sgml/sgml-docbook.bak ${sysconfdir}/sgml/sgml-docbook.cat" | ||
| 65 | for f in $files; do | ||
| 66 | [ ! -f $f ] || sed -i '/\/sgml\/dsssl-docbook-stylesheets.cat/d' $f | ||
| 67 | done | ||
| 68 | } | ||
