All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hongxu Jia <hongxu.jia@windriver.com>
To: <openembedded-core@lists.openembedded.org>
Cc: saul.wold@intel.com
Subject: Re: [PATCH 3/8] docbook-xml: add docbook-xml-dtd4
Date: Tue, 8 Jul 2014 18:03:26 +0800	[thread overview]
Message-ID: <53BBC1EE.5060608@windriver.com> (raw)
In-Reply-To: <b0e0464a72f2f2fa6b96a0f1d175c8b0d2b41ebb.1404812342.git.hongxu.jia@windriver.com>

On 07/08/2014 05:47 PM, Hongxu Jia wrote:

> diff --git a/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4_4.5.bb b/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4_4.5.bb
> new file mode 100644
> index 0000000..3b20391
> --- /dev/null
> +++ b/meta/recipes-devtools/docbook-xml/docbook-xml-dtd4_4.5.bb
> @@ -0,0 +1,75 @@
> +# The DTDs of the various versions have to be installed in parallel and
> +# should not replace each other. The installation step is common for
> +# all versions and just differs in ${DTD_VERSION} which is set in each
> +# version recipe.
> +#
> +# The DTDs do have some quirks (see LFS documentation).
> +SUMMARY = "Document type definitions for verification of XML data files"
> +DESCRIPTION = "Document type definitions for verification of XML data \
> +files against the DocBook rule set, it ships with the latest DocBook 4.5 \
> +XML DTD, as well as a selected set of legacy DTDs for use with older \
> +documents, including 4.0, 4.1.2, 4.2, 4.3 and 4.4"
> +HOMEPAGE = "http://www.docbook.org/xml/"
> +
> +LICENSE = "OASIS"
> +LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE-OASIS;md5=c608985dd5f7f215e669e7639a0b1d2e"
> +
> +# Note: the upstream sources are not distributed with a license file.
> +# LICENSE-OASIS is included as a "patch" to workaround this. When
> +# upgrading this recipe, please verify whether this is still needed.
> +SRC_URI = "${DEBIAN_MIRROR}/main/d/docbook-xml/docbook-xml_${PV}.orig.tar.gz \
> +           file://LICENSE-OASIS \
> +           file://docbook-xml-update-catalog.xml.patch \
> +           file://docbook-xml.xml \
> +"
> +
> +SRC_URI[md5sum] = "487b4d44e15cffb1f4048af23f98208e"
> +SRC_URI[sha256sum] = "b0f8edcf697f5318e63dd98c9a931f3fee167af0805ba441db372e0f17b2a44f"
> +
> +S="${WORKDIR}/docbook-xml-4.5.c31424"
> +
> +inherit allarch
> +BBCLASSEXTEND = "native"
> +
> +SSTATEPOSTINSTFUNCS_append_class-native = " docbook_xml_dtd_sstate_postinst"
> +SYSROOT_PREPROCESS_FUNCS_append_class-native = " docbook_xml_dtd_sysroot_preprocess"
> +
> +do_configre (){
> +  :
> +}
> +
> +do_compile (){
> +  :
> +}
> +
> +do_install () {
> +    # Refer debian https://packages.debian.org/sid/all/docbook-xml/filelist
> +    for DTDVERSION in 4.0 4.1.2 4.2 4.3 4.4 4.5; do
> +        install -d -m 755 ${D}${datadir}/xml/docbook/schema/dtd/${DTDVERSION}
> +        cp -v -R docbook-${DTDVERSION}/* ${D}${datadir}/xml/docbook/schema/dtd/${DTDVERSION}
> +    done
> +
> +    install -d ${D}${sysconfdir}/xml/
> +    install -m 755  ${WORKDIR}/docbook-xml.xml ${D}${sysconfdir}/xml/docbook-xml.xml
> +}
> +
> +do_install_append_class-nativesdk () {
> +    # Update the hardcode dir in docbook-xml.xml
> +    sed -i -e "s|file:///usr/share/xml|file://${datadir}/xml|g" ${D}${sysconfdir}/xml/docbook-xml.xml
> +}

Remove the nativesdk do_install_append_class-nativesd, we don't support 
nativesdk.

I update the git tree directly, no v2 will be sent.

//Hongxu

> +
> +docbook_xml_dtd_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-xml.xml
> +    fi
> +}
> +
> +docbook_xml_dtd_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-xml.xml
> +}
> +
> +FILES_${PN} = "${datadir}/* ${sysconfdir}/xml/docbook-xml.xml"



  reply	other threads:[~2014-07-08 10:03 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-08  9:47 [PATCH 0/8] support xmlto Hongxu Jia
2014-07-08  9:47 ` [PATCH 1/8] libxml2: enable Catalog support Hongxu Jia
2014-07-08 15:26   ` Burton, Ross
2014-07-08  9:47 ` [PATCH 2/8] docbook-xml: add docbook-xsl-stylesheets 1.78.1 Hongxu Jia
2014-07-08  9:47 ` [PATCH 3/8] docbook-xml: add docbook-xml-dtd4 Hongxu Jia
2014-07-08 10:03   ` Hongxu Jia [this message]
2014-07-08  9:47 ` [PATCH 4/8] xmlto: add version 0.0.25 Hongxu Jia
2014-07-08  9:47 ` [PATCH 5/8] alsa-utils: enable xmlto Hongxu Jia
2014-07-08  9:47 ` [PATCH 6/8] xorg-proto-common.inc: " Hongxu Jia
2014-07-08  9:47 ` [PATCH 7/8] xorg-lib-common.inc: " Hongxu Jia
2014-07-08  9:48 ` [PATCH 8/8] xserver-xorg.inc: " Hongxu Jia
2014-07-08 18:53   ` Otavio Salvador
2014-07-08 18:57 ` [PATCH 0/8] support xmlto Otavio Salvador
2014-07-08 21:33 ` Burton, Ross
2014-07-09  0:57   ` Otavio Salvador
2014-07-09  1:31   ` Hongxu Jia
  -- strict thread matches above, loose matches on Subject: below --
2014-07-09 10:16 [PATCH V2 " Hongxu Jia
2014-07-09 10:16 ` [PATCH 3/8] docbook-xml: add docbook-xml-dtd4 Hongxu Jia
2014-07-15 12:35 [PATCH V3 0/8] support xmlto Hongxu Jia
2014-07-15 12:35 ` [PATCH 3/8] docbook-xml: add docbook-xml-dtd4 Hongxu Jia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53BBC1EE.5060608@windriver.com \
    --to=hongxu.jia@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=saul.wold@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.