diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc b/meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc index 162051f62b..83cedbcc11 100644 --- a/meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc +++ b/meta/recipes-devtools/docbook-sgml-dtd/docbook-sgml-dtd-native.inc | |||
@@ -20,9 +20,9 @@ SRC_URI = "http://www.docbook.org/sgml/${DTD_VERSION}/docbook-${DTD_VERSION}.zip | |||
20 | # The .zip file extracts to the current dir | 20 | # The .zip file extracts to the current dir |
21 | S = "${WORKDIR}" | 21 | S = "${WORKDIR}" |
22 | 22 | ||
23 | INC_PR = "r0" | 23 | INC_PR = "r1" |
24 | 24 | ||
25 | SYSROOT_PREPROCESS_FUNCS += "docbook_sgml_dtd_native_mangle" | 25 | SSTATEPOSTINSTFUNCS += "docbook_sgml_dtd_sstate_postinst" |
26 | 26 | ||
27 | inherit native | 27 | inherit native |
28 | 28 | ||
@@ -33,21 +33,15 @@ do_install () { | |||
33 | install docbook.cat ${D}${datadir}/sgml/docbook/sgml-dtd-${DTD_VERSION}/catalog | 33 | install docbook.cat ${D}${datadir}/sgml/docbook/sgml-dtd-${DTD_VERSION}/catalog |
34 | cp -PpRr *.dtd *.mod *.dcl ${D}${datadir}/sgml/docbook/sgml-dtd-${DTD_VERSION} | 34 | cp -PpRr *.dtd *.mod *.dcl ${D}${datadir}/sgml/docbook/sgml-dtd-${DTD_VERSION} |
35 | 35 | ||
36 | install-catalog \ | ||
37 | --add ${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat \ | ||
38 | ${D}${datadir}/sgml/docbook/sgml-dtd-${DTD_VERSION}/catalog | ||
39 | |||
40 | install-catalog \ | ||
41 | --add ${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat \ | ||
42 | ${sysconfdir}/sgml/sgml-docbook.cat | ||
43 | |||
44 | # Copy the generated catalog to the image directory for staging. | ||
45 | install -d ${D}${sysconfdir}/sgml | 36 | install -d ${D}${sysconfdir}/sgml |
46 | cp ${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat ${D}${sysconfdir}/sgml/ | 37 | echo "CATALOG ${datadir}/sgml/docbook/sgml-dtd-${DTD_VERSION}/catalog" > \ |
38 | ${D}${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat | ||
47 | } | 39 | } |
48 | 40 | ||
49 | docbook_sgml_dtd_native_mangle () { | 41 | docbook_sgml_dtd_sstate_postinst () { |
50 | # Remove the image directory path ${D} from the .cat files. | 42 | # Ensure that the catalog file sgml-docbook.cat is properly |
51 | sed -i -e "s|${D}||g" ${SYSROOT_DESTDIR}${sysconfdir}/sgml/sgml-docbook.cat || true | 43 | # updated when the package is installed from sstate cache. |
52 | sed -i -e "s|${D}||g" ${SYSROOT_DESTDIR}${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat | 44 | install-catalog \ |
45 | --add ${sysconfdir}/sgml/sgml-docbook.cat \ | ||
46 | ${sysconfdir}/sgml/sgml-docbook-dtd-${DTD_VERSION}.cat | ||
53 | } | 47 | } |