1 |
commit: cc28b1ac7780a9084ada17080d7e73d0c6b806bb |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 3 12:07:14 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 3 12:09:51 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc28b1ac |
7 |
|
8 |
app-text/poppler: Bump to version 20.08.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.1, Repoman-2.3.23 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
app-text/poppler/Manifest | 1 + |
14 |
app-text/poppler/poppler-20.08.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 fdd913cd375..cab95b868c1 100644 |
19 |
--- a/app-text/poppler/Manifest |
20 |
+++ b/app-text/poppler/Manifest |
21 |
@@ -2,3 +2,4 @@ DIST poppler-0.88.0.tar.xz 1604348 BLAKE2B 3c78d15871398fb5f2125596f959d98a173de |
22 |
DIST poppler-0.89.0.tar.xz 1612156 BLAKE2B 071724f823214f3b3a775a1e6ee57992c18c65815cc139d88953ea3a7b348066981ce7933bd00ea27ddb60bf9f2f34a245bf09944d8cfda9732f0e33feecb017 SHA512 e2af2ab20cc1bba72080d42e229379bda0802aff355d2932dd970ee5924f454577529aef21f0f90fc57efba54caf15cd973c75446f309498f88199d5c2d93f11 |
23 |
DIST poppler-0.90.0.tar.xz 1619960 BLAKE2B 479c89b6e0881c674beb5c760e08e9277df40c08904dcb1bfc1b039e9ca95f3d24d4548017b3d06ac4e1324172b2c9e412db665d6ee1d7ffd11da0f3d0a0b42c SHA512 3b2a45c7fcdc41b0dad80b6454cd8bb50a6625537edbc537898790ef4b6425bb62e1934fd2aaa8565be9c045ab1ac40a8de2e939c5b5abf0254d8e6c833b4450 |
24 |
DIST poppler-0.90.1.tar.xz 1633804 BLAKE2B 5c7256bca74af6cc2732fb6c413bec10ea579f28fe623ccb5d4863c62d39329a4264c240ee0e395a78de577a960a5156ba20f957990c0cde91efcee72dbc2fef SHA512 c0a38c3c40196f8b847f0737152d0cbb40656870a8ceb766134ee22ec7c21bc979a13f56b7596a13ae2f08f1a9a2c396ba7f5ff176d02c262af7e863c2afde34 |
25 |
+DIST poppler-20.08.0.tar.xz 1635372 BLAKE2B ca8829fe031bc9565baea71dd7a565d16160aa26645fdd6b30fa0d26c427f8b9d966766df95ca0c1e98552af2e3104c45721f7111db0bcd47f9f29620d1b37ed SHA512 e3d7d85356c854e298bb96ac8a563d9b97174e07d220eb5e7fe0372354a9105a3a1f6ea16e2a34af09d65c61f5fb349412fa7100e7fdda3c98e5030d82b48679 |
26 |
|
27 |
diff --git a/app-text/poppler/poppler-20.08.0.ebuild b/app-text/poppler/poppler-20.08.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..39d7375ed1b |
30 |
--- /dev/null |
31 |
+++ b/app-text/poppler/poppler-20.08.0.ebuild |
32 |
@@ -0,0 +1,124 @@ |
33 |
+# Copyright 2005-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+inherit cmake toolchain-funcs xdg-utils |
39 |
+ |
40 |
+if [[ ${PV} == *9999* ]] ; then |
41 |
+ inherit git-r3 |
42 |
+ EGIT_REPO_URI="https://anongit.freedesktop.org/git/poppler/poppler.git" |
43 |
+ SLOT="0/9999" |
44 |
+else |
45 |
+ SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz" |
46 |
+ 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" |
47 |
+ SLOT="0/102" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION |
48 |
+fi |
49 |
+ |
50 |
+DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base" |
51 |
+HOMEPAGE="https://poppler.freedesktop.org/" |
52 |
+ |
53 |
+LICENSE="GPL-2" |
54 |
+IUSE="cairo cjk curl +cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png qt5 tiff +utils" |
55 |
+ |
56 |
+# No test data provided |
57 |
+RESTRICT="test" |
58 |
+ |
59 |
+BDEPEND=" |
60 |
+ dev-util/glib-utils |
61 |
+ virtual/pkgconfig |
62 |
+" |
63 |
+DEPEND=" |
64 |
+ media-libs/fontconfig |
65 |
+ media-libs/freetype |
66 |
+ sys-libs/zlib |
67 |
+ cairo? ( |
68 |
+ dev-libs/glib:2 |
69 |
+ x11-libs/cairo |
70 |
+ introspection? ( dev-libs/gobject-introspection:= ) |
71 |
+ ) |
72 |
+ curl? ( net-misc/curl ) |
73 |
+ jpeg? ( virtual/jpeg:0 ) |
74 |
+ jpeg2k? ( >=media-libs/openjpeg-2.3.0-r1:2= ) |
75 |
+ lcms? ( media-libs/lcms:2 ) |
76 |
+ nss? ( >=dev-libs/nss-3.19:0 ) |
77 |
+ png? ( media-libs/libpng:0= ) |
78 |
+ qt5? ( |
79 |
+ dev-qt/qtcore:5 |
80 |
+ dev-qt/qtgui:5 |
81 |
+ dev-qt/qtxml:5 |
82 |
+ ) |
83 |
+ tiff? ( media-libs/tiff:0 ) |
84 |
+" |
85 |
+RDEPEND="${DEPEND} |
86 |
+ cjk? ( app-text/poppler-data ) |
87 |
+" |
88 |
+ |
89 |
+DOCS=( AUTHORS NEWS README.md README-XPDF ) |
90 |
+ |
91 |
+PATCHES=( |
92 |
+ "${FILESDIR}/${PN}-0.60.1-qt5-dependencies.patch" |
93 |
+ "${FILESDIR}/${PN}-0.28.1-fix-multilib-configuration.patch" |
94 |
+ "${FILESDIR}/${PN}-0.82.0-respect-cflags.patch" |
95 |
+ "${FILESDIR}/${PN}-0.61.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 [[ ${CC} == 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 |
+ -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 |
+} |