Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/poppler/
Date: Sat, 03 Jul 2021 10:21:41
Message-Id: 1625307690.c43510438b408eac6b17afac69ec1d956c6ec42d.polynomial-c@gentoo
1 commit: c43510438b408eac6b17afac69ec1d956c6ec42d
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 3 10:21:18 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 3 10:21:30 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4351043
7
8 app-text/poppler: Bump to version 21.07.0
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 app-text/poppler/Manifest | 1 +
13 app-text/poppler/poppler-21.07.0.ebuild | 128 ++++++++++++++++++++++++++++++++
14 2 files changed, 129 insertions(+)
15
16 diff --git a/app-text/poppler/Manifest b/app-text/poppler/Manifest
17 index 9d4dcae058d..51fa98d6a77 100644
18 --- a/app-text/poppler/Manifest
19 +++ b/app-text/poppler/Manifest
20 @@ -1,2 +1,3 @@
21 DIST poppler-21.05.0.tar.xz 1700632 BLAKE2B 5e277f3d9d6fafbd39b395d7730182ec028c0ccdbb59e0b9d6ea93e079eb6dc8ff6e46a2b378ec4502055e8748973d353e1f947d734cdee4c5abb9f1bb6dba2c SHA512 428f63a85fc8a227efebcd64ca7e89fec487fea07c93f9dd990fae343532547bcfec29a3288dd9ffce698cf994ccc2ce5055e4fa677ebceb216c1caaa3e0cdae
22 DIST poppler-21.06.1.tar.xz 1708344 BLAKE2B 424888e16c72e9ad37fcb0aa3ecc7bef8c6150f3ca51b205407f9db51a5800bf76c703ad7a7e642e5ce60edc0ab3506d29bd18c8424425da7d4270bb2adb3025 SHA512 6e447d09421b7729d83a59a24deaaaea15103240cac0eaf41ddcdd64ac2c8f08a6902b95d56bbbcfd9e229054bd0a4f1769ea05c7e20691bc8f995e3f959f0e9
23 +DIST poppler-21.07.0.tar.xz 1709664 BLAKE2B 22c411c44a7f61344a0ea747fd435ad2b0180979d8117425167338b7f5cf963eefac19d38b5630df03b4ef978a113c9f031966d3bd8b0c1d86a5bdecd526d191 SHA512 ce1d8a5dd4a300a24aa71aea4919262e108ce1717dee04863da41de0962e4c0067e9c703c190386bd66d9c4ef54d04513cc8509f4beaf76e996576912d2583e8
24
25 diff --git a/app-text/poppler/poppler-21.07.0.ebuild b/app-text/poppler/poppler-21.07.0.ebuild
26 new file mode 100644
27 index 00000000000..048302fba12
28 --- /dev/null
29 +++ b/app-text/poppler/poppler-21.07.0.ebuild
30 @@ -0,0 +1,128 @@
31 +# Copyright 2005-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit cmake toolchain-funcs xdg-utils
37 +
38 +if [[ ${PV} == *9999* ]] ; then
39 + inherit git-r3
40 + EGIT_REPO_URI="https://anongit.freedesktop.org/git/poppler/poppler.git"
41 + SLOT="0/9999"
42 +else
43 + SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz"
44 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
45 + SLOT="0/111" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION
46 +fi
47 +
48 +DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base"
49 +HOMEPAGE="https://poppler.freedesktop.org/"
50 +
51 +LICENSE="GPL-2"
52 +IUSE="cairo cjk curl +cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png qt5 +splash tiff +utils"
53 +
54 +# No test data provided
55 +RESTRICT="test"
56 +
57 +BDEPEND="
58 + dev-util/glib-utils
59 + virtual/pkgconfig
60 +"
61 +DEPEND="
62 + media-libs/fontconfig
63 + media-libs/freetype
64 + sys-libs/zlib
65 + cairo? (
66 + dev-libs/glib:2
67 + x11-libs/cairo
68 + introspection? ( dev-libs/gobject-introspection:= )
69 + )
70 + curl? ( net-misc/curl )
71 + jpeg? ( virtual/jpeg:0 )
72 + jpeg2k? ( >=media-libs/openjpeg-2.3.0-r1:2= )
73 + lcms? ( media-libs/lcms:2 )
74 + nss? ( >=dev-libs/nss-3.19:0 )
75 + png? ( media-libs/libpng:0= )
76 + qt5? (
77 + dev-qt/qtcore:5
78 + dev-qt/qtgui:5
79 + dev-qt/qtxml:5
80 + )
81 + tiff? ( media-libs/tiff:0 )
82 +"
83 +RDEPEND="${DEPEND}
84 + cjk? ( app-text/poppler-data )
85 +"
86 +DEPEND+="
87 + splash? ( dev-libs/boost )
88 +"
89 +
90 +DOCS=( AUTHORS NEWS README.md README-XPDF )
91 +
92 +PATCHES=(
93 + "${FILESDIR}/${PN}-20.12.1-qt5-deps.patch"
94 + "${FILESDIR}/${PN}-21.04.0-respect-cflags.patch"
95 + "${FILESDIR}/${PN}-0.57.0-disable-internal-jpx.patch"
96 +)
97 +
98 +src_prepare() {
99 + cmake_src_prepare
100 +
101 + # Clang doesn't grok this flag, the configure nicely tests that, but
102 + # cmake just uses it, so remove it if we use clang
103 + if [[ ${CC} == clang ]] ; then
104 + sed -e 's/-fno-check-new//' -i cmake/modules/PopplerMacros.cmake || die
105 + fi
106 +
107 + if ! grep -Fq 'cmake_policy(SET CMP0002 OLD)' CMakeLists.txt ; then
108 + sed -e '/^cmake_minimum_required/acmake_policy(SET CMP0002 OLD)' \
109 + -i CMakeLists.txt || die
110 + else
111 + einfo "policy(SET CMP0002 OLD) - workaround can be removed"
112 + fi
113 +}
114 +
115 +src_configure() {
116 + xdg_environment_reset
117 + local mycmakeargs=(
118 + -DBUILD_GTK_TESTS=OFF
119 + -DBUILD_QT5_TESTS=OFF
120 + -DBUILD_CPP_TESTS=OFF
121 + -DBUILD_MANUAL_TESTS=OFF
122 + -DRUN_GPERF_IF_PRESENT=OFF
123 + # Required for SPLASH
124 + -DENABLE_BOOST="$(usex splash)"
125 + -DENABLE_SPLASH="$(usex splash)"
126 + -DENABLE_ZLIB=ON
127 + -DENABLE_ZLIB_UNCOMPRESS=OFF
128 + -DENABLE_UNSTABLE_API_ABI_HEADERS=ON
129 + -DUSE_FLOAT=OFF
130 + -DWITH_Cairo=$(usex cairo)
131 + -DENABLE_LIBCURL=$(usex curl)
132 + -DENABLE_CPP=$(usex cxx)
133 + -DWITH_JPEG=$(usex jpeg)
134 + -DENABLE_DCTDECODER=$(usex jpeg libjpeg none)
135 + -DENABLE_LIBOPENJPEG=$(usex jpeg2k openjpeg2 none)
136 + -DENABLE_CMS=$(usex lcms lcms2 none)
137 + -DWITH_NSS3=$(usex nss)
138 + -DWITH_PNG=$(usex png)
139 + $(cmake_use_find_package qt5 Qt5Core)
140 + -DWITH_TIFF=$(usex tiff)
141 + -DENABLE_UTILS=$(usex utils)
142 + -DENABLE_QT6=OFF
143 + )
144 + use cairo && mycmakeargs+=( -DWITH_GObjectIntrospection=$(usex introspection) )
145 +
146 + cmake_src_configure
147 +}
148 +
149 +src_install() {
150 + cmake_src_install
151 +
152 + # live version doesn't provide html documentation
153 + if use cairo && use doc && [[ ${PV} != *9999* ]]; then
154 + # For now install gtk-doc there
155 + insinto /usr/share/gtk-doc/html/poppler
156 + doins -r "${S}"/glib/reference/html/*
157 + fi
158 +}