public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/poppler-data/
Date: Sat,  1 Oct 2022 06:56:27 +0000 (UTC)	[thread overview]
Message-ID: <1664607123.f7d3daf96af5d450b3f983df77129c5aeac3c376.sam@gentoo> (raw)

commit:     f7d3daf96af5d450b3f983df77129c5aeac3c376
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  1 06:49:48 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct  1 06:52:03 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7d3daf9

app-text/poppler-data: add additional cMaps files needed by ghostscript

Quoting John from the Bug;
>Ghostscript's official binary is built with bundled CMaps; on Gentoo, these are unbundled
>in favor of those provided by app-text/poppler-data. Ghostscript's CMaps include 3 files
>missing from poppler-data: Identity-H, Identity-V, and Identity-UTF16-H (CMap
>resources for the special-purpose Adobe Identity-0 ROS), and the lack of these files is causing this issue.
>
>Fedora and Arch avoid this problem by using GS-bundled CMaps, while Debian
>(and older versions of Fedora) relies on CMaps from poppler-data (like Gentoo does)
>and includes the missing files in their poppler-data package, installing them to
>/usr/share/poppler/cMap. (According to Debian, upstream poppler-data refuses to include them.)
>
>Two of these files are provided by Adobe Type Tools:
>https://github.com/adobe-type-tools/cmap-resources/tree/master/Adobe-Identity-0/CMap
>
>and the third is from Artifex themselves:
>http://git.ghostscript.com/?p=ghostpdl.git;a=blob;f=Resource/CMap/Identity-UTF16-H;hb=HEAD
>
>You can copy these 3 files to /usr/share/poppler/cMaps for a quick-and-dirty verification that
>they resolve the issue; by doing so, I was able to produce a match for gs-fail-good.jpg and
>pass the WeasyPrint test suite using ghostscript-gpl-9.56.1 (and 10.0). Including
>these files with poppler-data seems like the best approach. (As noted in
>Ghostscript's LICENSE file, Identity-UTF16-H is licensed under AGPL-3+.)

Bug: https://bugs.gentoo.org/844115
Thanks-to: John Wudrick <prochronism <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-text/poppler-data/Manifest                     |  1 +
 .../poppler-data/poppler-data-0.4.11-r1.ebuild     | 27 ++++++++++++++++++++++
 2 files changed, 28 insertions(+)

diff --git a/app-text/poppler-data/Manifest b/app-text/poppler-data/Manifest
index 3fe0df6c9ad8..9c070bc8218f 100644
--- a/app-text/poppler-data/Manifest
+++ b/app-text/poppler-data/Manifest
@@ -1 +1,2 @@
+DIST poppler-data-0.4.11-extra.tar.xz 3092 BLAKE2B 37d54a15a3725d4fe8c78ac2cb18cb4cc43cc65929822b6e4ac5e17c70f97dd3f4b144c34b4cb1c2439e58d379a61b6b348bc93304a1b730a6e37dd304c763ad SHA512 639dd5467cb06cb417dc1b09ca9db1f7233f902a54220899be3199a1081b91c69ff063f133080175312098ac8078ab8e2c4c91c89b460e8b92e6192f18395531
 DIST poppler-data-0.4.11.tar.gz 4497282 BLAKE2B 01f0f9f3d933f45683a702c4d538d8fc59874512290f199b601c16f98f9b596ff249fbc992574d046931cc80f3685f94733248450d3a54f2f961951cdeda7c39 SHA512 a5b7ace28d1677e12f7500ab6345b277dc22cd48ace8d472c083933416879edf4da4efe8217b0e11f75a3387ed98d832fe50567884095b6c0e09ebd8802b0f32

diff --git a/app-text/poppler-data/poppler-data-0.4.11-r1.ebuild b/app-text/poppler-data/poppler-data-0.4.11-r1.ebuild
new file mode 100644
index 000000000000..c65bde103305
--- /dev/null
+++ b/app-text/poppler-data/poppler-data-0.4.11-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+POPPLER_DATA_EXTRA_VERSION="0.4.11"
+DESCRIPTION="Data files for poppler to support uncommon encodings without xpdfrc"
+HOMEPAGE="https://poppler.freedesktop.org/"
+SRC_URI="https://poppler.freedesktop.org/${P}.tar.gz"
+SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-${POPPLER_DATA_EXTRA_VERSION}-extra.tar.xz"
+
+# AGPL-3+ for the extra files needed by ghostscript, bug #844115
+LICENSE="AGPL-3+ BSD GPL-2 MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+
+src_install() {
+	emake prefix="${EPREFIX}"/usr DESTDIR="${D}" install
+
+	# We need to include extra cMaps for ghostscript, bug #844115
+	cp "${WORKDIR}"/${PN}-${POPPLER_DATA_EXTRA_VERSION}-extra/Identity-* "${ED}"/usr/share/poppler/cMap || die
+
+	# bug #409361
+	dodir /usr/share/poppler/cMaps
+	cd "${ED}"/usr/share/poppler/cMaps || die
+	find ../cMap -type f -exec ln -s {} . \; || die
+}


             reply	other threads:[~2022-10-01  6:56 UTC|newest]

Thread overview: 60+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-01  6:56 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-09-04 13:29 [gentoo-commits] repo/gentoo:master commit in: app-text/poppler-data/ Andreas Sturmlechner
2023-09-03 16:46 Arthur Zamarin
2023-09-03 16:46 Arthur Zamarin
2023-08-19 12:39 Arthur Zamarin
2023-08-19 12:19 Arthur Zamarin
2023-08-19 12:19 Arthur Zamarin
2023-08-19 11:46 Arthur Zamarin
2023-08-19 11:46 Arthur Zamarin
2023-08-19 11:38 Sam James
2023-02-05  0:02 Sam James
2023-01-24 21:50 Andreas Sturmlechner
2022-11-18 19:42 Arthur Zamarin
2022-11-18 19:42 Arthur Zamarin
2022-10-20 19:06 Arthur Zamarin
2022-10-15  7:06 Jakov Smolić
2022-10-15  7:06 Jakov Smolić
2022-10-14 21:01 Arthur Zamarin
2022-10-13 23:19 Sam James
2022-10-13 23:01 Sam James
2022-10-02  3:15 Sam James
2022-08-17 16:21 Matt Turner
2022-05-17 12:48 WANG Xuerui
2022-02-23  4:40 Arthur Zamarin
2022-02-19 15:07 Arthur Zamarin
2022-02-19 13:43 Arthur Zamarin
2022-02-19 13:22 Jakov Smolić
2022-02-19 13:15 Jakov Smolić
2022-02-19 12:48 Arthur Zamarin
2022-02-19  9:35 Arthur Zamarin
2022-02-19  8:58 Arthur Zamarin
2021-09-07 17:12 Sam James
2021-09-07  6:48 Lars Wendler
2021-01-06 13:46 Fabian Groffen
2020-12-27 14:01 Fabian Groffen
2020-12-12 21:59 Andreas Sturmlechner
2020-11-24 19:06 Sergei Trofimovich
2020-11-24  7:43 Agostino Sarubbo
2020-11-23  9:47 Sam James
2020-11-23  9:44 Sam James
2020-11-23  4:52 Sam James
2020-11-23  3:58 Sam James
2020-11-23  0:29 Sam James
2020-11-23  0:29 Sam James
2020-11-22 23:51 Sam James
2020-10-24 16:16 Lars Wendler
2019-02-12 20:45 Andreas Sturmlechner
2019-02-12 13:29 Mart Raudsepp
2019-02-10 18:10 Mikle Kolyada
2019-02-10 18:10 Mikle Kolyada
2019-02-07 13:24 Mikle Kolyada
2019-02-04 19:41 Sergei Trofimovich
2019-02-02 19:18 Sergei Trofimovich
2019-02-01 20:00 Tobias Klausmann
2019-01-31 22:15 Thomas Deutschmann
2018-06-22  9:56 Mikle Kolyada
2018-04-26 10:52 Lars Wendler
2017-08-15  9:21 Lars Wendler
2017-03-29  0:01 Michael Weber
2017-01-29 15:24 Fabian Groffen

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=1664607123.f7d3daf96af5d450b3f983df77129c5aeac3c376.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox