diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2014-07-09 18:16:55 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-16 10:16:15 +0100 |
commit | f5554492c80c69ba9b34dbf206a7c748ab8f1fb6 (patch) | |
tree | a4aedd29d47008d00998a35fd388e58c44bb7233 /meta/recipes-devtools/docbook-xml | |
parent | 3cc3f8a069b3d6d895afa6f192b36443b8328f40 (diff) | |
download | openembedded-core-f5554492c80c69ba9b34dbf206a7c748ab8f1fb6.tar.gz openembedded-core-f5554492c80c69ba9b34dbf206a7c748ab8f1fb6.tar.bz2 openembedded-core-f5554492c80c69ba9b34dbf206a7c748ab8f1fb6.zip |
docbook-xml: add docbook-xsl-stylesheets 1.78.1
About the config files (docbook-xsl.xml), we refered what Ubuntu 13.04 did,
so the xmlto could correctly search the xsl stylesheets.
[YOCTO #2416]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/docbook-xml')
-rw-r--r-- | meta/recipes-devtools/docbook-xml/docbook-xsl-stylesheets/docbook-xsl.xml | 6 | ||||
-rw-r--r-- | meta/recipes-devtools/docbook-xml/docbook-xsl-stylesheets_1.78.1.bb | 67 |
2 files changed, 73 insertions, 0 deletions
diff --git a/meta/recipes-devtools/docbook-xml/docbook-xsl-stylesheets/docbook-xsl.xml b/meta/recipes-devtools/docbook-xml/docbook-xsl-stylesheets/docbook-xsl.xml new file mode 100644 index 0000000000..a1a576a2ec --- /dev/null +++ b/meta/recipes-devtools/docbook-xml/docbook-xsl-stylesheets/docbook-xsl.xml @@ -0,0 +1,6 @@ +<?xml version="1.0"?> +<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd"> +<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> +<delegateURI uriStartString="http://docbook.sourceforge.net/release/xsl/" catalog="file:///usr/share/xml/docbook/xsl-stylesheets-1.78.1/catalog.xml"/> +<delegateSystem systemIdStartString="http://docbook.sourceforge.net/release/xsl/" catalog="file:///usr/share/xml/docbook/xsl-stylesheets-1.78.1/catalog.xml"/> +</catalog> diff --git a/meta/recipes-devtools/docbook-xml/docbook-xsl-stylesheets_1.78.1.bb b/meta/recipes-devtools/docbook-xml/docbook-xsl-stylesheets_1.78.1.bb new file mode 100644 index 0000000000..39528c89c4 --- /dev/null +++ b/meta/recipes-devtools/docbook-xml/docbook-xsl-stylesheets_1.78.1.bb @@ -0,0 +1,67 @@ +SUMMARY = "XSL stylesheets for processing DocBook XML to various output formats" +HOMEPAGE = "http://docbook.sourceforge.net" +LICENSE = "XSL" +LIC_FILES_CHKSUM = "file://COPYING;md5=a6eeeed43d498c22a835382533356462" + +SRC_URI = "${SOURCEFORGE_MIRROR}/docbook/docbook-xsl-${PV}.tar.bz2 \ + file://docbook-xsl.xml \ +" + +SRC_URI[md5sum] = "6dd0f89131cc35bf4f2ed105a1c17771" +SRC_URI[sha256sum] = "c98f7296ab5c8ccd2e0bc07634976a37f50847df2d8a59bdb1e157664700b467" + +S = "${WORKDIR}/docbook-xsl-${PV}" + +inherit allarch +BBCLASSEXTEND = "native" + +SSTATEPOSTINSTFUNCS_append_class-native = " docbook_xsl_stylesheets_sstate_postinst" +SYSROOT_PREPROCESS_FUNCS_append_class-native = " docbook_xsl_stylesheets_sysroot_preprocess" + +do_configre (){ + : +} + +do_compile (){ + : +} + +do_install () { + # Refer to http://www.linuxfromscratch.org/blfs/view/stable/pst/docbook-xsl.html + # for details. + install -v -m755 -d ${D}${datadir}/xml/docbook/xsl-stylesheets-1.78.1 + + cp -v -R VERSION common eclipse epub extensions fo highlighting html \ + htmlhelp images javahelp lib manpages params profiling \ + roundtrip slides template tests tools webhelp website \ + xhtml xhtml-1_1 catalog.xml \ + ${D}${datadir}/xml/docbook/xsl-stylesheets-1.78.1 + + ln -s VERSION ${D}/${datadir}/xml/docbook/xsl-stylesheets-1.78.1/VERSION.xsl + + install -v -m644 -D README \ + ${D}${datadir}/doc/docbook-xsl-1.78.1/README.txt + install -v -m644 RELEASE-NOTES* NEWS* \ + ${D}${datadir}/doc/docbook-xsl-1.78.1 + + install -d ${D}${sysconfdir}/xml/ + install -m 755 ${WORKDIR}/docbook-xsl.xml ${D}${sysconfdir}/xml/docbook-xsl.xml + +} + +docbook_xsl_stylesheets_sstate_postinst () { + if [ "${BB_CURRENTTASK}" = "populate_sysroot" -o "${BB_CURRENTTASK}" = "populate_sysroot_setscene" ] + then + # Ensure that the catalog file sgml-docbook.cat is properly + # updated when the package is installed from sstate cache. + sed -i -e "s|file://.*/usr/share/xml|file://${datadir}/xml|g" ${SYSROOT_DESTDIR}${sysconfdir}/xml/docbook-xsl.xml + fi +} + +docbook_xsl_stylesheets_sysroot_preprocess () { + # Update the hardcode dir in docbook-xml.xml + sed -i -e "s|file:///usr/share/xml|file://${datadir}/xml|g" ${SYSROOT_DESTDIR}${sysconfdir}/xml/docbook-xsl.xml +} + +FILES_${PN} = "${datadir}/xml/* ${sysconfdir}/xml/docbook-xsl.xml" +FILES_${PN}-doc = "${datadir}/doc/*" |