1 |
commit: 715182afec8528d68a96b703393ac8b23621c178 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 2 11:53:13 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 2 15:43:43 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=715182af |
7 |
|
8 |
app-text/poppler: Bump to version 20.10.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
app-text/poppler/Manifest | 1 + |
14 |
app-text/poppler/poppler-20.10.0.ebuild | 124 ++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 125 insertions(+) |
16 |
|
17 |
diff --git a/app-text/poppler/Manifest b/app-text/poppler/Manifest |
18 |
index c043ab287ab..d0cb619887c 100644 |
19 |
--- a/app-text/poppler/Manifest |
20 |
+++ b/app-text/poppler/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST poppler-0.90.1.tar.xz 1633804 BLAKE2B 5c7256bca74af6cc2732fb6c413bec10ea579f28fe623ccb5d4863c62d39329a4264c240ee0e395a78de577a960a5156ba20f957990c0cde91efcee72dbc2fef SHA512 c0a38c3c40196f8b847f0737152d0cbb40656870a8ceb766134ee22ec7c21bc979a13f56b7596a13ae2f08f1a9a2c396ba7f5ff176d02c262af7e863c2afde34 |
23 |
DIST poppler-20.09.0.tar.xz 1642932 BLAKE2B be61275560bf57c639f185b5ebbd8b37b99fd008412f49890ed644e95f4d8f2c4ca865b081eea99f2604d44fa1c0c31bd551339340f03cb43ab7f5a03992f760 SHA512 fbd57dd0754279d4b0a20ccbdbfb06abc5a5d84e63915676353fd42d5b80318904cf7e6ae462db445ed6c6e011fc24675dccbb8bd3597fc6532657a4ea23406a |
24 |
+DIST poppler-20.10.0.tar.xz 1644528 BLAKE2B ce38491805ff8ecb45eea45c44c93ec85404cb310ed6da49d7ce752a4e572abfbd7f5740448d6fb0c0958aa5661ebf87a3a2988bf51b0d0f0b1ea102110952b9 SHA512 edbcd53a06df9a5911a58fd05066e44dc8ab9a1dbc6da852b40bbc5627b9c0fcb35d97f46e3fcd78f7d08f86cba37e2ab3ff81b9a18fad300571df2bf1ef91a9 |
25 |
|
26 |
diff --git a/app-text/poppler/poppler-20.10.0.ebuild b/app-text/poppler/poppler-20.10.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..6d79d6797de |
29 |
--- /dev/null |
30 |
+++ b/app-text/poppler/poppler-20.10.0.ebuild |
31 |
@@ -0,0 +1,124 @@ |
32 |
+# Copyright 2005-2020 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 ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
46 |
+ SLOT="0/103" # 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}-0.60.1-qt5-dependencies.patch" |
92 |
+ "${FILESDIR}/${PN}-0.28.1-fix-multilib-configuration.patch" |
93 |
+ "${FILESDIR}/${PN}-0.82.0-respect-cflags.patch" |
94 |
+ "${FILESDIR}/${PN}-0.61.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 |
+ -DRUN_GPERF_IF_PRESENT=OFF |
122 |
+ -DENABLE_SPLASH=ON |
123 |
+ -DENABLE_ZLIB=ON |
124 |
+ -DENABLE_ZLIB_UNCOMPRESS=OFF |
125 |
+ -DENABLE_UNSTABLE_API_ABI_HEADERS=ON |
126 |
+ -DUSE_FLOAT=OFF |
127 |
+ -DWITH_Cairo=$(usex cairo) |
128 |
+ -DENABLE_LIBCURL=$(usex curl) |
129 |
+ -DENABLE_CPP=$(usex cxx) |
130 |
+ -DWITH_JPEG=$(usex jpeg) |
131 |
+ -DENABLE_DCTDECODER=$(usex jpeg libjpeg none) |
132 |
+ -DENABLE_LIBOPENJPEG=$(usex jpeg2k openjpeg2 none) |
133 |
+ -DENABLE_CMS=$(usex lcms lcms2 none) |
134 |
+ -DWITH_NSS3=$(usex nss) |
135 |
+ -DWITH_PNG=$(usex png) |
136 |
+ $(cmake_use_find_package qt5 Qt5Core) |
137 |
+ -DWITH_TIFF=$(usex tiff) |
138 |
+ -DENABLE_UTILS=$(usex utils) |
139 |
+ -DENABLE_QT6=OFF |
140 |
+ ) |
141 |
+ use cairo && mycmakeargs+=( -DWITH_GObjectIntrospection=$(usex introspection) ) |
142 |
+ |
143 |
+ cmake_src_configure |
144 |
+} |
145 |
+ |
146 |
+src_install() { |
147 |
+ cmake_src_install |
148 |
+ |
149 |
+ # live version doesn't provide html documentation |
150 |
+ if use cairo && use doc && [[ ${PV} != *9999* ]]; then |
151 |
+ # For now install gtk-doc there |
152 |
+ insinto /usr/share/gtk-doc/html/poppler |
153 |
+ doins -r "${S}"/glib/reference/html/* |
154 |
+ fi |
155 |
+} |