diff options
| author | Scott Garman <scott.a.garman@intel.com> | 2011-02-22 18:43:43 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-23 15:53:31 +0000 |
| commit | ceb8863aeb6ee1a94e3f8199ee9462670129f8ef (patch) | |
| tree | 9834093dc0b3367822db53aea64d2bd278100ab2 /meta/recipes-devtools | |
| parent | 8cc18e629e73ef42b8baa84ec8c28b1677fe2602 (diff) | |
| download | poky-ceb8863aeb6ee1a94e3f8199ee9462670129f8ef.tar.gz | |
docbook-dsssl-stylesheets-native: run install-catalog from SSTATEPOSTINSTFUNCS
Otherwise the sgml-docbook.cat catalog would not be updated when a build
from sstate cache is run.
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Diffstat (limited to 'meta/recipes-devtools')
| -rw-r--r-- | meta/recipes-devtools/docbook-dsssl-stylesheets/docbook-dsssl-stylesheets-native_1.79.bb | 30 |
1 files changed, 12 insertions, 18 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 53e9865e1b..fc4d266a9c 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 | |||
| @@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://README;beginline=41;endline=74;md5=875385159b2ee76ecf | |||
| 7 | 7 | ||
| 8 | DEPENDS = "sgml-common-native" | 8 | DEPENDS = "sgml-common-native" |
| 9 | 9 | ||
| 10 | PR = "r1" | 10 | PR = "r2" |
| 11 | 11 | ||
| 12 | SRC_URI = "${SOURCEFORGE_MIRROR}/docbook/docbook-dsssl-${PV}.tar.bz2" | 12 | SRC_URI = "${SOURCEFORGE_MIRROR}/docbook/docbook-dsssl-${PV}.tar.bz2" |
| 13 | 13 | ||
| @@ -18,7 +18,7 @@ S = "${WORKDIR}/docbook-dsssl-${PV}" | |||
| 18 | 18 | ||
| 19 | inherit native | 19 | inherit native |
| 20 | 20 | ||
| 21 | SYSROOT_PREPROCESS_FUNCS += "docbook_dssl_stylesheets_native_mangle" | 21 | SSTATEPOSTINSTFUNCS += "docbook_dsssl_stylesheets_sstate_postinst" |
| 22 | 22 | ||
| 23 | do_install () { | 23 | do_install () { |
| 24 | # Refer to http://www.linuxfromscratch.org/blfs/view/stable/pst/docbook-dsssl.html | 24 | # Refer to http://www.linuxfromscratch.org/blfs/view/stable/pst/docbook-dsssl.html |
| @@ -30,23 +30,17 @@ do_install () { | |||
| 30 | install -m 0644 catalog ${D}${datadir}/sgml/docbook/dsssl-stylesheets-${PV} | 30 | install -m 0644 catalog ${D}${datadir}/sgml/docbook/dsssl-stylesheets-${PV} |
| 31 | cp -v -R * ${D}${datadir}/sgml/docbook/dsssl-stylesheets-${PV} | 31 | cp -v -R * ${D}${datadir}/sgml/docbook/dsssl-stylesheets-${PV} |
| 32 | 32 | ||
| 33 | install-catalog --add ${sysconfdir}/sgml/dsssl-docbook-stylesheets.cat \ | ||
| 34 | ${D}${datadir}/sgml/docbook/dsssl-stylesheets-${PV}/catalog | ||
| 35 | |||
| 36 | install-catalog --add ${sysconfdir}/sgml/dsssl-docbook-stylesheets.cat \ | ||
| 37 | ${D}${datadir}/sgml/docbook/dsssl-stylesheets-${PV}/common/catalog | ||
| 38 | |||
| 39 | install-catalog --add ${sysconfdir}/sgml/sgml-docbook.cat \ | ||
| 40 | ${sysconfdir}/sgml/dsssl-docbook-stylesheets.cat | ||
| 41 | |||
| 42 | # Move these to the image directory so they get staged properly. | ||
| 43 | install -d ${D}${sysconfdir}/sgml | 33 | install -d ${D}${sysconfdir}/sgml |
| 44 | cp ${sysconfdir}/sgml/dsssl-docbook-stylesheets.cat ${D}${sysconfdir}/sgml/ | 34 | echo "CATALOG ${datadir}/sgml/docbook/dsssl-stylesheets-${PV}/catalog" > \ |
| 45 | cp ${sysconfdir}/sgml/sgml-docbook.cat ${D}${sysconfdir}/sgml/ | 35 | ${D}${sysconfdir}/sgml/dsssl-docbook-stylesheets.cat |
| 46 | cp ${sysconfdir}/sgml/catalog ${D}${sysconfdir}/sgml/ | 36 | echo "CATALOG ${datadir}/sgml/docbook/dsssl-stylesheets-${PV}/common/catalog" >> \ |
| 37 | ${D}${sysconfdir}/sgml/dsssl-docbook-stylesheets.cat | ||
| 47 | } | 38 | } |
| 48 | 39 | ||
| 49 | docbook_dssl_stylesheets_native_mangle () { | 40 | docbook_dsssl_stylesheets_sstate_postinst () { |
| 50 | # Remove the image directory path ${D} from the .cat file. | 41 | # Ensure that the catalog file sgml-docbook.cat is properly |
| 51 | sed -i -e "s|${D}||g" ${SYSROOT_DESTDIR}${sysconfdir}/sgml/dsssl-docbook-stylesheets.cat | 42 | # updated when the package is installed from sstate cache. |
| 43 | install-catalog \ | ||
| 44 | --add ${sysconfdir}/sgml/sgml-docbook.cat \ | ||
| 45 | ${sysconfdir}/sgml/dsssl-docbook-stylesheets.cat | ||
| 52 | } | 46 | } |
