1 |
commit: ef61db14d369e91ce96a7f44c437d8f7e5e98393 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 6 13:56:50 2021 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 6 15:02:34 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef61db14 |
7 |
|
8 |
app-text/poppler: 21.11.0 version bump |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
app-text/poppler/Manifest | 1 + |
14 |
app-text/poppler/poppler-21.11.0.ebuild | 126 ++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 127 insertions(+) |
16 |
|
17 |
diff --git a/app-text/poppler/Manifest b/app-text/poppler/Manifest |
18 |
index b0746d8e9bf..a0b246e9a2e 100644 |
19 |
--- a/app-text/poppler/Manifest |
20 |
+++ b/app-text/poppler/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST poppler-21.07.0.tar.xz 1709664 BLAKE2B 22c411c44a7f61344a0ea747fd435ad2b0180979d8117425167338b7f5cf963eefac19d38b5630df03b4ef978a113c9f031966d3bd8b0c1d86a5bdecd526d191 SHA512 ce1d8a5dd4a300a24aa71aea4919262e108ce1717dee04863da41de0962e4c0067e9c703c190386bd66d9c4ef54d04513cc8509f4beaf76e996576912d2583e8 |
23 |
DIST poppler-21.10.0.tar.xz 1779668 BLAKE2B f4464b70ba031ed697443803c435a79498184fc9a74381f5ac7c6ee0f856d77d6e270fe0cea70ee9bbc54713ec69d45ea0ffc66e820d80061856d6711d584e04 SHA512 4a125784716ee578f5be39830cc5903c27eeb707d3756c2ff04ef97328ed8d9e35d3873b7731d2144997cb31794674a1bd35461c84d4237335db27c8df43e4f1 |
24 |
+DIST poppler-21.11.0.tar.xz 1783592 BLAKE2B b0448ae0456ffda29c18732e6dd94cb285af67cf4adbaded05a4abe2e465cb63a17e0041240c82c83c89b313ec8c7bf9d68fc8d727b7d41c1ee70722529ce45d SHA512 354d6372093e7ecedf95c43e8d203e9b2781ff7ecd81cd3920cb8c72a37463b47423ce7ab3c8233c0f031f2c024ac1ba5c8d442c80e6643722192fb9638e5d3a |
25 |
|
26 |
diff --git a/app-text/poppler/poppler-21.11.0.ebuild b/app-text/poppler/poppler-21.11.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..337023d962c |
29 |
--- /dev/null |
30 |
+++ b/app-text/poppler/poppler-21.11.0.ebuild |
31 |
@@ -0,0 +1,126 @@ |
32 |
+# Copyright 2005-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
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 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
46 |
+ SLOT="0/115" # 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="boost 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 |
+DEPEND=" |
59 |
+ media-libs/fontconfig |
60 |
+ media-libs/freetype |
61 |
+ sys-libs/zlib |
62 |
+ cairo? ( |
63 |
+ dev-libs/glib:2 |
64 |
+ x11-libs/cairo |
65 |
+ introspection? ( dev-libs/gobject-introspection:= ) |
66 |
+ ) |
67 |
+ curl? ( net-misc/curl ) |
68 |
+ jpeg? ( virtual/jpeg:0 ) |
69 |
+ jpeg2k? ( >=media-libs/openjpeg-2.3.0-r1:2= ) |
70 |
+ lcms? ( media-libs/lcms:2 ) |
71 |
+ nss? ( >=dev-libs/nss-3.19:0 ) |
72 |
+ png? ( media-libs/libpng:0= ) |
73 |
+ qt5? ( |
74 |
+ dev-qt/qtcore:5 |
75 |
+ dev-qt/qtgui:5 |
76 |
+ dev-qt/qtxml:5 |
77 |
+ ) |
78 |
+ tiff? ( media-libs/tiff:0 ) |
79 |
+" |
80 |
+RDEPEND="${DEPEND} |
81 |
+ cjk? ( app-text/poppler-data ) |
82 |
+" |
83 |
+DEPEND+=" |
84 |
+ boost? ( dev-libs/boost ) |
85 |
+" |
86 |
+BDEPEND=" |
87 |
+ dev-util/glib-utils |
88 |
+ virtual/pkgconfig |
89 |
+" |
90 |
+ |
91 |
+DOCS=( AUTHORS NEWS README.md README-XPDF ) |
92 |
+ |
93 |
+PATCHES=( |
94 |
+ "${FILESDIR}/${PN}-20.12.1-qt5-deps.patch" |
95 |
+ "${FILESDIR}/${PN}-21.09.0-respect-cflags.patch" |
96 |
+ "${FILESDIR}/${PN}-0.57.0-disable-internal-jpx.patch" |
97 |
+) |
98 |
+ |
99 |
+src_prepare() { |
100 |
+ cmake_src_prepare |
101 |
+ |
102 |
+ # Clang doesn't grok this flag, the configure nicely tests that, but |
103 |
+ # cmake just uses it, so remove it if we use clang |
104 |
+ if tc-is-clang ; then |
105 |
+ sed -e 's/-fno-check-new//' -i cmake/modules/PopplerMacros.cmake || die |
106 |
+ fi |
107 |
+ |
108 |
+ if ! grep -Fq 'cmake_policy(SET CMP0002 OLD)' CMakeLists.txt ; then |
109 |
+ sed -e '/^cmake_minimum_required/acmake_policy(SET CMP0002 OLD)' \ |
110 |
+ -i CMakeLists.txt || die |
111 |
+ else |
112 |
+ einfo "policy(SET CMP0002 OLD) - workaround can be removed" |
113 |
+ fi |
114 |
+} |
115 |
+ |
116 |
+src_configure() { |
117 |
+ xdg_environment_reset |
118 |
+ local mycmakeargs=( |
119 |
+ -DBUILD_GTK_TESTS=OFF |
120 |
+ -DBUILD_QT5_TESTS=OFF |
121 |
+ -DBUILD_CPP_TESTS=OFF |
122 |
+ -DBUILD_MANUAL_TESTS=OFF |
123 |
+ -DRUN_GPERF_IF_PRESENT=OFF |
124 |
+ -DENABLE_BOOST="$(usex boost)" |
125 |
+ -DENABLE_ZLIB=ON |
126 |
+ -DENABLE_ZLIB_UNCOMPRESS=OFF |
127 |
+ -DENABLE_UNSTABLE_API_ABI_HEADERS=ON |
128 |
+ -DUSE_FLOAT=OFF |
129 |
+ -DWITH_Cairo=$(usex cairo) |
130 |
+ -DENABLE_LIBCURL=$(usex curl) |
131 |
+ -DENABLE_CPP=$(usex cxx) |
132 |
+ -DWITH_JPEG=$(usex jpeg) |
133 |
+ -DENABLE_DCTDECODER=$(usex jpeg libjpeg none) |
134 |
+ -DENABLE_LIBOPENJPEG=$(usex jpeg2k openjpeg2 none) |
135 |
+ -DENABLE_CMS=$(usex lcms lcms2 none) |
136 |
+ -DWITH_NSS3=$(usex nss) |
137 |
+ -DWITH_PNG=$(usex png) |
138 |
+ $(cmake_use_find_package qt5 Qt5Core) |
139 |
+ -DWITH_TIFF=$(usex tiff) |
140 |
+ -DENABLE_UTILS=$(usex utils) |
141 |
+ -DENABLE_QT6=OFF |
142 |
+ ) |
143 |
+ use cairo && mycmakeargs+=( -DWITH_GObjectIntrospection=$(usex introspection) ) |
144 |
+ |
145 |
+ cmake_src_configure |
146 |
+} |
147 |
+ |
148 |
+src_install() { |
149 |
+ cmake_src_install |
150 |
+ |
151 |
+ # live version doesn't provide html documentation |
152 |
+ if use cairo && use doc && [[ ${PV} != *9999* ]]; then |
153 |
+ # For now install gtk-doc there |
154 |
+ insinto /usr/share/gtk-doc/html/poppler |
155 |
+ doins -r "${S}"/glib/reference/html/* |
156 |
+ fi |
157 |
+} |