Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/poppler/
Date: Tue, 04 May 2021 22:57:19
Message-Id: 1620169005.506d2d9225ef42c909406a65ddb0b09d2292d33c.asturm@gentoo
1 commit: 506d2d9225ef42c909406a65ddb0b09d2292d33c
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 4 13:56:57 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue May 4 22:56:45 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=506d2d92
7
8 app-text/poppler: 21.05.0 version bump
9
10 Closes: https://bugs.gentoo.org/788232
11 Package-Manager: Portage-3.0.18, Repoman-3.0.3
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 app-text/poppler/Manifest | 1 +
15 app-text/poppler/poppler-21.05.0.ebuild | 123 ++++++++++++++++++++++++++++++++
16 2 files changed, 124 insertions(+)
17
18 diff --git a/app-text/poppler/Manifest b/app-text/poppler/Manifest
19 index afa19e72ff3..ce0d529a8cc 100644
20 --- a/app-text/poppler/Manifest
21 +++ b/app-text/poppler/Manifest
22 @@ -1,3 +1,4 @@
23 DIST poppler-21.02.0.tar.xz 1684496 BLAKE2B f62399a70baa0af36abd9bf7f5bc69003fcdc9b668a64475a6373dbdd9885092a8beb42f887eafdafac5ee17e9aac5b610bad1c9a64af8112e72c82f47e6a304 SHA512 3964990749f38f4468b244c579ff1f2dab7357dfddecb3035d14d3aaeac6ee4be42e76b4a1cc1a8cf53715518def9e92cc59d08c1e22592ced00a9c948989035
24 DIST poppler-21.03.0.tar.xz 1690848 BLAKE2B 60aef92bdfdc603b38dfb2a1aebd59c9085e6d51a2e22864edb3b0fd535421f47fb8041241e321d44cd8539538b61c6e19fe2d99a8a2d21fd85c3757ccadb5d2 SHA512 0eea1b5f32d79c3a497351a6491b5f617b089bef0a9a446723e87185acadba535e3146c0c141f4c2165ced1aa6fa853b54760a322d0932cfe3049c0ad94d64fa
25 DIST poppler-21.04.0.tar.xz 1694132 BLAKE2B 759a22b175ca8b64fa666d61e394cb7b6baa34a3dbc9c6cceb24c7ad4b0892ee34faea90278d9889d72d7b9558fc9abf52ab74fd739dc12e7314c3a755661350 SHA512 c3391787456e8a4a3bd6e57f96faa25051bb5e15ae7eeb7072ad6fbc25e3f8a34818945cc49d90a0e6ebc3d38dd4e70d3c60ba0a5cb42c4000bd8c15c947e5bc
26 +DIST poppler-21.05.0.tar.xz 1700632 BLAKE2B 5e277f3d9d6fafbd39b395d7730182ec028c0ccdbb59e0b9d6ea93e079eb6dc8ff6e46a2b378ec4502055e8748973d353e1f947d734cdee4c5abb9f1bb6dba2c SHA512 428f63a85fc8a227efebcd64ca7e89fec487fea07c93f9dd990fae343532547bcfec29a3288dd9ffce698cf994ccc2ce5055e4fa677ebceb216c1caaa3e0cdae
27
28 diff --git a/app-text/poppler/poppler-21.05.0.ebuild b/app-text/poppler/poppler-21.05.0.ebuild
29 new file mode 100644
30 index 00000000000..e66369be54d
31 --- /dev/null
32 +++ b/app-text/poppler/poppler-21.05.0.ebuild
33 @@ -0,0 +1,123 @@
34 +# Copyright 2005-2021 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +inherit cmake toolchain-funcs xdg-utils
40 +
41 +if [[ ${PV} == *9999* ]] ; then
42 + inherit git-r3
43 + EGIT_REPO_URI="https://anongit.freedesktop.org/git/poppler/poppler.git"
44 + SLOT="0/9999"
45 +else
46 + SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz"
47 + 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"
48 + SLOT="0/110" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION
49 +fi
50 +
51 +DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base"
52 +HOMEPAGE="https://poppler.freedesktop.org/"
53 +
54 +LICENSE="GPL-2"
55 +IUSE="cairo cjk curl +cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png qt5 tiff +utils"
56 +
57 +# No test data provided
58 +RESTRICT="test"
59 +
60 +BDEPEND="
61 + dev-util/glib-utils
62 + virtual/pkgconfig
63 +"
64 +DEPEND="
65 + media-libs/fontconfig
66 + media-libs/freetype
67 + sys-libs/zlib
68 + cairo? (
69 + dev-libs/glib:2
70 + x11-libs/cairo
71 + introspection? ( dev-libs/gobject-introspection:= )
72 + )
73 + curl? ( net-misc/curl )
74 + jpeg? ( virtual/jpeg:0 )
75 + jpeg2k? ( >=media-libs/openjpeg-2.3.0-r1:2= )
76 + lcms? ( media-libs/lcms:2 )
77 + nss? ( >=dev-libs/nss-3.19:0 )
78 + png? ( media-libs/libpng:0= )
79 + qt5? (
80 + dev-qt/qtcore:5
81 + dev-qt/qtgui:5
82 + dev-qt/qtxml:5
83 + )
84 + tiff? ( media-libs/tiff:0 )
85 +"
86 +RDEPEND="${DEPEND}
87 + cjk? ( app-text/poppler-data )
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 + -DENABLE_SPLASH=ON
124 + -DENABLE_ZLIB=ON
125 + -DENABLE_ZLIB_UNCOMPRESS=OFF
126 + -DENABLE_UNSTABLE_API_ABI_HEADERS=ON
127 + -DUSE_FLOAT=OFF
128 + -DWITH_Cairo=$(usex cairo)
129 + -DENABLE_LIBCURL=$(usex curl)
130 + -DENABLE_CPP=$(usex cxx)
131 + -DWITH_JPEG=$(usex jpeg)
132 + -DENABLE_DCTDECODER=$(usex jpeg libjpeg none)
133 + -DENABLE_LIBOPENJPEG=$(usex jpeg2k openjpeg2 none)
134 + -DENABLE_CMS=$(usex lcms lcms2 none)
135 + -DWITH_NSS3=$(usex nss)
136 + -DWITH_PNG=$(usex png)
137 + $(cmake_use_find_package qt5 Qt5Core)
138 + -DWITH_TIFF=$(usex tiff)
139 + -DENABLE_UTILS=$(usex utils)
140 + -DENABLE_QT6=OFF
141 + )
142 + use cairo && mycmakeargs+=( -DWITH_GObjectIntrospection=$(usex introspection) )
143 +
144 + cmake_src_configure
145 +}
146 +
147 +src_install() {
148 + cmake_src_install
149 +
150 + # live version doesn't provide html documentation
151 + if use cairo && use doc && [[ ${PV} != *9999* ]]; then
152 + # For now install gtk-doc there
153 + insinto /usr/share/gtk-doc/html/poppler
154 + doins -r "${S}"/glib/reference/html/*
155 + fi
156 +}