[oe] [meta-oe][PATCH] poppler-data: install CMap resources for CJK glyph support

Joshua Lock joshua.lock at collabora.co.uk
Tue Dec 1 20:39:06 UTC 2015


On 01/12/15 20:24, Joshua Lock wrote:
> CID-keyed fonts, as commonly used to support pictographic East
> Asian character sets require Character Maps which unidirectionally
> map character codes (i.e. Unicode encoding) to CID (the glyphs in
> the font face).
>
> Without a CMap poppler isn't able to correctly PDF files in
> Chinese, Japanese or Korean without embedded fonts.
>
> This change installs a copy of the Identity files from Adobe's
> CMap Resources[1] based on a similar change in Fedora's
> poppler-data[2][3].
>
> 1. https://github.com/adobe-type-tools/cmap-resources
> 2. http://pkgs.fedoraproject.org/cgit/poppler-data.git/tree/poppler-data.spec#n18
> 3. https://bugzilla.redhat.com/show_bug.cgi?id=842351
>
> Signed-off-by: Joshua Lock <joshua.lock at collabora.co.uk>
> ---
>   meta-oe/recipes-support/poppler/poppler-data_0.4.7.bb | 12 ++++++++++--
>   1 file changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/meta-oe/recipes-support/poppler/poppler-data_0.4.7.bb b/meta-oe/recipes-support/poppler/poppler-data_0.4.7.bb
> index 4f55e9f..5a3f086 100644
> --- a/meta-oe/recipes-support/poppler/poppler-data_0.4.7.bb
> +++ b/meta-oe/recipes-support/poppler/poppler-data_0.4.7.bb
> @@ -1,5 +1,6 @@
>   SUMMARY = "Poppler is a PDF rendering library based on the xpdf-3.0 code base"
> -LICENSE = "Adobe"
> +DESCRIPTION = ""
> +LICENSE = "BSD && GPLv2 && GPLv3+"

The LICENSE field is incorrect and I didn't fill out description, I'll 
fix those and send a v2.

Apologies,

Joshua

>   LIC_FILES_CHKSUM = "file://COPYING;md5=4870b98343f0bbb25fa43b9d2ba59448 \
>                       file://COPYING.adobe;md5=63c6a8a9df204c00461fa5f163d8a663 \
>                       file://COPYING.gpl2;md5=751419260aa954499f7abaabaa882bbe \
> @@ -7,15 +8,22 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4870b98343f0bbb25fa43b9d2ba59448 \
>
>   inherit allarch
>
> -SRC_URI = "http://poppler.freedesktop.org/${BP}.tar.gz"
> +INHIBIT_DEFAULT_DEPS = "1"
> +
> +SRC_URI = "http://poppler.freedesktop.org/${BP}.tar.gz \
> +           https://github.com/adobe-type-tools/cmap-resources/raw/master/cmapresources_identity-0.zip;name=cmap"
>   SRC_URI[md5sum] = "636a8f2b9f6df9e7ced8ec0946961eaf"
>   SRC_URI[sha256sum] = "e752b0d88a7aba54574152143e7bf76436a7ef51977c55d6bd9a48dccde3a7de"
> +SRC_URI[cmap.md5sum] = "32aab2e25655e475dd58a50479270f91"
> +SRC_URI[cmap.sha256sum] = "3a3b591b7153588a77d1304bcefc1781750a36811cebae03680c85882765f515"
>
>   do_compile() {
>   }
>
>   do_install() {
>       oe_runmake install DESTDIR=${D}
> +    install -d ${D}${datadir}/poppler/cMap
> +    install -m644 ${WORKDIR}/cmapresources_identity-0/CMap/Identity-* ${D}${datadir}/poppler/cMap/
>   }
>
>   FILES_${PN} += "${datadir}"
>




More information about the Openembedded-devel mailing list