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