1 |
commit: db49d036c77fc79c8688263fab970539132b1d34 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 24 14:07:03 2017 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 24 14:07:03 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db49d036 |
7 |
|
8 |
app-text/poppler: Remove old |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
app-text/poppler/Manifest | 3 - |
13 |
app-text/poppler/poppler-0.51.0.ebuild | 142 --------------------------------- |
14 |
app-text/poppler/poppler-0.52.0.ebuild | 129 ------------------------------ |
15 |
app-text/poppler/poppler-0.54.0.ebuild | 136 ------------------------------- |
16 |
4 files changed, 410 deletions(-) |
17 |
|
18 |
diff --git a/app-text/poppler/Manifest b/app-text/poppler/Manifest |
19 |
index ab8cbe8dbed..ade19e01b9d 100644 |
20 |
--- a/app-text/poppler/Manifest |
21 |
+++ b/app-text/poppler/Manifest |
22 |
@@ -1,5 +1,2 @@ |
23 |
DIST poppler-0.45.0.tar.xz 1674464 SHA256 96dd1a6024bcdaa4530a3b49687db3d5c24ddfd072ccb37c6de0e42599728798 SHA512 b703bed35da3572801834740bf61d59b6a3ee3b88bc1b3181bde3472264be4f6b89ceacb56179d7093329946abd6ba2501acfaf209d4f543352ff9fd38c47f1b WHIRLPOOL 687b1ba816dbff1b0a69cb05914dd7fb161bfd8c0fa4e26b77bb0ad26e27f7d7d94085a1022716a8d7a7563145f0acead9fccbbd332959d0216b81b27f3632e8 |
24 |
-DIST poppler-0.51.0.tar.xz 1691504 SHA256 e997c9ad81a8372f2dd03a02b00692b8cc479c220340c8881edaca540f402c1f SHA512 f2e49cc8587396e38ac9125fa662bcb472eb0b9c9e0ce57135d72ad1792d55db858c7d00b8322b52ac3fe0cd97eacd2d570d3e579367c4acf2f04051f723c5c5 WHIRLPOOL 5e625db67411d1a3b9da4fbd78c82cfef03b78dd03854f3d1ab394b2bc0f6afe3f27983ee03d67ab03d28b29f94375332ef03d6c2263750125579f99428fd819 |
25 |
-DIST poppler-0.52.0.tar.xz 1692144 SHA256 528b661738839f9a25f6e580fcd2d5db007e0a1948580c6489f0062798ca1992 SHA512 8047af6cb6b1daff12f26463addbaaf532ef1f5c5185bc37eba6bc110438bc88687115bfec2802d738612fbc0c51ca5f7a5182989a23e30a05e9dab7ae4f5a52 WHIRLPOOL 024ae2ce4a68bbf77a6147fd73488cef3363f8a2d87eb11feb6148d2d22b2e04bac315e6b4ecfa8583c4e027f1f599343b1f93dce3efef80d4d8fecb200ae35f |
26 |
-DIST poppler-0.54.0.tar.xz 1698392 SHA256 10cca9a67cc2e6f4f9024192b1067c444218bf94430891f43dc819d78536ca31 SHA512 1967cebdcc24c6a4ffc2ebea6940fafe315040afe5c8d797521897fe6ba851704af0e90122d3213d10d1dede7594b14198e6592c0666f4091e866c10cd104b43 WHIRLPOOL d33a7b315b4fe9c5b9c4746277ff2234269080e23fdd61f1fc7d7a3960beecfa30900fa8874890b5442ecefc105314b46f1f8bb0da661ad7770b5ce2b082a31a |
27 |
DIST poppler-0.55.0.tar.xz 1700440 SHA256 537f2bc60d796525705ad9ca8e46899dcc99c2e9480b80051808bae265cdc658 SHA512 ea3008f2945da862236fcc64d320367e04e3c71d4cc5e996e0c50ac49457e5e42eb06af92486fe7f15c04f07a88367f5344f8dc76549c57c4a19e2fbb60f55d6 WHIRLPOOL 9aec88be85548d217f90fedb12530b5a61e2bf8172154146b3003d6ebbe53b6b2af947ec6f07ddde499a6b0863090470d1b379485984e27068e6741ef3bbf101 |
28 |
|
29 |
diff --git a/app-text/poppler/poppler-0.51.0.ebuild b/app-text/poppler/poppler-0.51.0.ebuild |
30 |
deleted file mode 100644 |
31 |
index 935b684c55a..00000000000 |
32 |
--- a/app-text/poppler/poppler-0.51.0.ebuild |
33 |
+++ /dev/null |
34 |
@@ -1,142 +0,0 @@ |
35 |
-# Copyright 1999-2017 Gentoo Foundation |
36 |
-# Distributed under the terms of the GNU General Public License v2 |
37 |
- |
38 |
-EAPI=6 |
39 |
- |
40 |
-inherit cmake-utils toolchain-funcs xdg-utils |
41 |
- |
42 |
-if [[ "${PV}" == "9999" ]] ; then |
43 |
- inherit git-r3 |
44 |
- EGIT_REPO_URI="git://git.freedesktop.org/git/${PN}/${PN}" |
45 |
- SLOT="0/9999" |
46 |
-else |
47 |
- SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz" |
48 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
49 |
- SLOT="0/66" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION |
50 |
-fi |
51 |
- |
52 |
-DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base" |
53 |
-HOMEPAGE="https://poppler.freedesktop.org/" |
54 |
- |
55 |
-LICENSE="GPL-2" |
56 |
-IUSE="cairo cairo-qt cjk curl cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png qt4 qt5 tiff +utils" |
57 |
- |
58 |
-REQUIRED_USE="cairo-qt? ( qt4 )" |
59 |
- |
60 |
-# No test data provided |
61 |
-RESTRICT="test" |
62 |
- |
63 |
-COMMON_DEPEND=" |
64 |
- >=media-libs/fontconfig-2.6.0 |
65 |
- >=media-libs/freetype-2.3.9 |
66 |
- sys-libs/zlib |
67 |
- cairo? ( |
68 |
- dev-libs/glib:2 |
69 |
- >=x11-libs/cairo-1.10.0 |
70 |
- introspection? ( >=dev-libs/gobject-introspection-1.32.1:= ) |
71 |
- ) |
72 |
- cairo-qt? ( >=x11-libs/cairo-1.10.0 ) |
73 |
- curl? ( net-misc/curl ) |
74 |
- jpeg? ( virtual/jpeg:0 ) |
75 |
- jpeg2k? ( media-libs/openjpeg:2= ) |
76 |
- lcms? ( media-libs/lcms:2 ) |
77 |
- nss? ( >=dev-libs/nss-3.19:0 ) |
78 |
- png? ( media-libs/libpng:0= ) |
79 |
- qt4? ( |
80 |
- dev-qt/qtcore:4 |
81 |
- dev-qt/qtgui:4 |
82 |
- ) |
83 |
- qt5? ( |
84 |
- dev-qt/qtcore:5 |
85 |
- dev-qt/qtgui:5 |
86 |
- dev-qt/qtxml:5 |
87 |
- ) |
88 |
- tiff? ( media-libs/tiff:0 ) |
89 |
-" |
90 |
-DEPEND="${COMMON_DEPEND} |
91 |
- virtual/pkgconfig |
92 |
-" |
93 |
-RDEPEND="${COMMON_DEPEND} |
94 |
- cjk? ( >=app-text/poppler-data-0.4.7 ) |
95 |
-" |
96 |
- |
97 |
-DOCS=(AUTHORS NEWS README README-XPDF TODO) |
98 |
- |
99 |
-PATCHES=( |
100 |
- "${FILESDIR}/${PN}-0.26.0-qt5-dependencies.patch" |
101 |
- "${FILESDIR}/${PN}-0.28.1-fix-multilib-configuration.patch" |
102 |
- "${FILESDIR}/${PN}-0.28.1-respect-cflags.patch" |
103 |
- "${FILESDIR}/${PN}-0.33.0-openjpeg2.patch" |
104 |
- "${FILESDIR}/${PN}-0.40-FindQt4.patch" |
105 |
-) |
106 |
- |
107 |
-src_prepare() { |
108 |
- cmake-utils_src_prepare |
109 |
- |
110 |
- # Clang doesn't grok this flag, the configure nicely tests that, but |
111 |
- # cmake just uses it, so remove it if we use clang |
112 |
- if [[ ${CC} == clang ]] ; then |
113 |
- sed -i -e 's/-fno-check-new//' cmake/modules/PopplerMacros.cmake || die |
114 |
- fi |
115 |
- |
116 |
- # Enable experimental patchset for subpixel font rendering using cairo |
117 |
- # backend for poppler-qt4 from https://github.com/giddie/poppler-qt4-cairo-backend. |
118 |
- if use cairo-qt; then |
119 |
- ewarn "Enabling unsupported, experimental cairo-qt patchset. Please do not report bugs." |
120 |
- epatch "${FILESDIR}/cairo-qt-experimental/0001-Cairo-backend-added-to-Qt4-wrapper.patch" |
121 |
- epatch "${FILESDIR}/cairo-qt-experimental/0002-Setting-default-Qt4-backend-to-Cairo.patch" |
122 |
- epatch "${FILESDIR}/cairo-qt-experimental/0003-Forcing-subpixel-rendering-in-Cairo-backend.patch" |
123 |
- epatch "${FILESDIR}/cairo-qt-experimental/0004-Enabling-slight-hinting-in-Cairo-Backend.patch" |
124 |
- fi |
125 |
-} |
126 |
- |
127 |
-src_configure() { |
128 |
- xdg_environment_reset |
129 |
- local mycmakeargs=( |
130 |
- -DBUILD_GTK_TESTS=OFF |
131 |
- -DBUILD_QT4_TESTS=OFF |
132 |
- -DBUILD_QT5_TESTS=OFF |
133 |
- -DBUILD_CPP_TESTS=OFF |
134 |
- -DENABLE_SPLASH=ON |
135 |
- -DENABLE_ZLIB=ON |
136 |
- -DENABLE_ZLIB_UNCOMPRESS=OFF |
137 |
- -DENABLE_XPDF_HEADERS=ON |
138 |
- -DENABLE_LIBCURL="$(usex curl)" |
139 |
- -DENABLE_CPP="$(usex cxx)" |
140 |
- -DENABLE_UTILS="$(usex utils)" |
141 |
- -DSPLASH_CMYK=OFF |
142 |
- -DUSE_FIXEDPOINT=OFF |
143 |
- -DUSE_FLOAT=OFF |
144 |
- -DWITH_Cairo="$(usex cairo)" |
145 |
- -DWITH_GObjectIntrospection="$(usex introspection)" |
146 |
- -DWITH_JPEG="$(usex jpeg)" |
147 |
- -DWITH_NSS3="$(usex nss)" |
148 |
- -DWITH_PNG="$(usex png)" |
149 |
- -DWITH_Qt4="$(usex qt4)" |
150 |
- $(cmake-utils_use_find_package qt5 Qt5Core) |
151 |
- -DWITH_TIFF="$(usex tiff)" |
152 |
- ) |
153 |
- if use jpeg2k; then |
154 |
- mycmakeargs+=(-DENABLE_LIBOPENJPEG=openjpeg2) |
155 |
- else |
156 |
- mycmakeargs+=(-DENABLE_LIBOPENJPEG=) |
157 |
- fi |
158 |
- if use lcms; then |
159 |
- mycmakeargs+=(-DENABLE_CMS=lcms2) |
160 |
- else |
161 |
- mycmakeargs+=(-DENABLE_CMS=) |
162 |
- fi |
163 |
- |
164 |
- cmake-utils_src_configure |
165 |
-} |
166 |
- |
167 |
-src_install() { |
168 |
- cmake-utils_src_install |
169 |
- |
170 |
- # live version doesn't provide html documentation |
171 |
- if use cairo && use doc && [[ ${PV} != 9999 ]]; then |
172 |
- # For now install gtk-doc there |
173 |
- insinto /usr/share/gtk-doc/html/poppler |
174 |
- doins -r "${S}"/glib/reference/html/* |
175 |
- fi |
176 |
-} |
177 |
|
178 |
diff --git a/app-text/poppler/poppler-0.52.0.ebuild b/app-text/poppler/poppler-0.52.0.ebuild |
179 |
deleted file mode 100644 |
180 |
index 536c7e317e9..00000000000 |
181 |
--- a/app-text/poppler/poppler-0.52.0.ebuild |
182 |
+++ /dev/null |
183 |
@@ -1,129 +0,0 @@ |
184 |
-# Copyright 1999-2017 Gentoo Foundation |
185 |
-# Distributed under the terms of the GNU General Public License v2 |
186 |
- |
187 |
-EAPI=6 |
188 |
- |
189 |
-inherit cmake-utils toolchain-funcs xdg-utils |
190 |
- |
191 |
-if [[ "${PV}" == "9999" ]] ; then |
192 |
- inherit git-r3 |
193 |
- EGIT_REPO_URI="git://git.freedesktop.org/git/${PN}/${PN}" |
194 |
- SLOT="0/9999" |
195 |
-else |
196 |
- SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz" |
197 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
198 |
- SLOT="0/66" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION |
199 |
-fi |
200 |
- |
201 |
-DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base" |
202 |
-HOMEPAGE="https://poppler.freedesktop.org/" |
203 |
- |
204 |
-LICENSE="GPL-2" |
205 |
-IUSE="cairo cjk curl cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png qt4 qt5 tiff +utils" |
206 |
- |
207 |
-# No test data provided |
208 |
-RESTRICT="test" |
209 |
- |
210 |
-COMMON_DEPEND=" |
211 |
- >=media-libs/fontconfig-2.6.0 |
212 |
- >=media-libs/freetype-2.3.9 |
213 |
- sys-libs/zlib |
214 |
- cairo? ( |
215 |
- dev-libs/glib:2 |
216 |
- >=x11-libs/cairo-1.10.0 |
217 |
- introspection? ( >=dev-libs/gobject-introspection-1.32.1:= ) |
218 |
- ) |
219 |
- curl? ( net-misc/curl ) |
220 |
- jpeg? ( virtual/jpeg:0 ) |
221 |
- jpeg2k? ( media-libs/openjpeg:2= ) |
222 |
- lcms? ( media-libs/lcms:2 ) |
223 |
- nss? ( >=dev-libs/nss-3.19:0 ) |
224 |
- png? ( media-libs/libpng:0= ) |
225 |
- qt4? ( |
226 |
- dev-qt/qtcore:4 |
227 |
- dev-qt/qtgui:4 |
228 |
- ) |
229 |
- qt5? ( |
230 |
- dev-qt/qtcore:5 |
231 |
- dev-qt/qtgui:5 |
232 |
- dev-qt/qtxml:5 |
233 |
- ) |
234 |
- tiff? ( media-libs/tiff:0 ) |
235 |
-" |
236 |
-DEPEND="${COMMON_DEPEND} |
237 |
- virtual/pkgconfig |
238 |
-" |
239 |
-RDEPEND="${COMMON_DEPEND} |
240 |
- cjk? ( >=app-text/poppler-data-0.4.7 ) |
241 |
-" |
242 |
- |
243 |
-DOCS=(AUTHORS NEWS README README-XPDF TODO) |
244 |
- |
245 |
-PATCHES=( |
246 |
- "${FILESDIR}/${PN}-0.26.0-qt5-dependencies.patch" |
247 |
- "${FILESDIR}/${PN}-0.28.1-fix-multilib-configuration.patch" |
248 |
- "${FILESDIR}/${PN}-0.28.1-respect-cflags.patch" |
249 |
- "${FILESDIR}/${PN}-0.33.0-openjpeg2.patch" |
250 |
- "${FILESDIR}/${PN}-0.40-FindQt4.patch" |
251 |
-) |
252 |
- |
253 |
-src_prepare() { |
254 |
- cmake-utils_src_prepare |
255 |
- |
256 |
- # Clang doesn't grok this flag, the configure nicely tests that, but |
257 |
- # cmake just uses it, so remove it if we use clang |
258 |
- if [[ ${CC} == clang ]] ; then |
259 |
- sed -i -e 's/-fno-check-new//' cmake/modules/PopplerMacros.cmake || die |
260 |
- fi |
261 |
-} |
262 |
- |
263 |
-src_configure() { |
264 |
- xdg_environment_reset |
265 |
- local mycmakeargs=( |
266 |
- -DBUILD_GTK_TESTS=OFF |
267 |
- -DBUILD_QT4_TESTS=OFF |
268 |
- -DBUILD_QT5_TESTS=OFF |
269 |
- -DBUILD_CPP_TESTS=OFF |
270 |
- -DENABLE_SPLASH=ON |
271 |
- -DENABLE_ZLIB=ON |
272 |
- -DENABLE_ZLIB_UNCOMPRESS=OFF |
273 |
- -DENABLE_XPDF_HEADERS=ON |
274 |
- -DENABLE_LIBCURL="$(usex curl)" |
275 |
- -DENABLE_CPP="$(usex cxx)" |
276 |
- -DENABLE_UTILS="$(usex utils)" |
277 |
- -DSPLASH_CMYK=OFF |
278 |
- -DUSE_FIXEDPOINT=OFF |
279 |
- -DUSE_FLOAT=OFF |
280 |
- -DWITH_Cairo="$(usex cairo)" |
281 |
- -DWITH_GObjectIntrospection="$(usex introspection)" |
282 |
- -DWITH_JPEG="$(usex jpeg)" |
283 |
- -DWITH_NSS3="$(usex nss)" |
284 |
- -DWITH_PNG="$(usex png)" |
285 |
- -DWITH_Qt4="$(usex qt4)" |
286 |
- $(cmake-utils_use_find_package qt5 Qt5Core) |
287 |
- -DWITH_TIFF="$(usex tiff)" |
288 |
- ) |
289 |
- if use jpeg2k; then |
290 |
- mycmakeargs+=(-DENABLE_LIBOPENJPEG=openjpeg2) |
291 |
- else |
292 |
- mycmakeargs+=(-DENABLE_LIBOPENJPEG=) |
293 |
- fi |
294 |
- if use lcms; then |
295 |
- mycmakeargs+=(-DENABLE_CMS=lcms2) |
296 |
- else |
297 |
- mycmakeargs+=(-DENABLE_CMS=) |
298 |
- fi |
299 |
- |
300 |
- cmake-utils_src_configure |
301 |
-} |
302 |
- |
303 |
-src_install() { |
304 |
- cmake-utils_src_install |
305 |
- |
306 |
- # live version doesn't provide html documentation |
307 |
- if use cairo && use doc && [[ ${PV} != 9999 ]]; then |
308 |
- # For now install gtk-doc there |
309 |
- insinto /usr/share/gtk-doc/html/poppler |
310 |
- doins -r "${S}"/glib/reference/html/* |
311 |
- fi |
312 |
-} |
313 |
|
314 |
diff --git a/app-text/poppler/poppler-0.54.0.ebuild b/app-text/poppler/poppler-0.54.0.ebuild |
315 |
deleted file mode 100644 |
316 |
index 289730d1abc..00000000000 |
317 |
--- a/app-text/poppler/poppler-0.54.0.ebuild |
318 |
+++ /dev/null |
319 |
@@ -1,136 +0,0 @@ |
320 |
-# Copyright 1999-2017 Gentoo Foundation |
321 |
-# Distributed under the terms of the GNU General Public License v2 |
322 |
- |
323 |
-EAPI=6 |
324 |
- |
325 |
-inherit cmake-utils toolchain-funcs xdg-utils |
326 |
- |
327 |
-if [[ "${PV}" == "9999" ]] ; then |
328 |
- inherit git-r3 |
329 |
- EGIT_REPO_URI="git://git.freedesktop.org/git/${PN}/${PN}" |
330 |
- SLOT="0/9999" |
331 |
-else |
332 |
- SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz" |
333 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
334 |
- SLOT="0/67" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION |
335 |
-fi |
336 |
- |
337 |
-DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base" |
338 |
-HOMEPAGE="https://poppler.freedesktop.org/" |
339 |
- |
340 |
-LICENSE="GPL-2" |
341 |
-IUSE="cairo cjk curl cxx debug doc +introspection +jpeg +jpeg2k +lcms nss png qt4 qt5 tiff +utils" |
342 |
- |
343 |
-# No test data provided |
344 |
-RESTRICT="test" |
345 |
- |
346 |
-COMMON_DEPEND=" |
347 |
- >=media-libs/fontconfig-2.6.0 |
348 |
- >=media-libs/freetype-2.3.9 |
349 |
- sys-libs/zlib |
350 |
- cairo? ( |
351 |
- dev-libs/glib:2 |
352 |
- >=x11-libs/cairo-1.10.0 |
353 |
- introspection? ( >=dev-libs/gobject-introspection-1.32.1:= ) |
354 |
- ) |
355 |
- curl? ( net-misc/curl ) |
356 |
- jpeg? ( virtual/jpeg:0 ) |
357 |
- jpeg2k? ( media-libs/openjpeg:2= ) |
358 |
- lcms? ( media-libs/lcms:2 ) |
359 |
- nss? ( >=dev-libs/nss-3.19:0 ) |
360 |
- png? ( media-libs/libpng:0= ) |
361 |
- qt4? ( |
362 |
- dev-qt/qtcore:4 |
363 |
- dev-qt/qtgui:4 |
364 |
- ) |
365 |
- qt5? ( |
366 |
- dev-qt/qtcore:5 |
367 |
- dev-qt/qtgui:5 |
368 |
- dev-qt/qtxml:5 |
369 |
- ) |
370 |
- tiff? ( media-libs/tiff:0 ) |
371 |
-" |
372 |
-DEPEND="${COMMON_DEPEND} |
373 |
- virtual/pkgconfig |
374 |
-" |
375 |
-RDEPEND="${COMMON_DEPEND} |
376 |
- cjk? ( >=app-text/poppler-data-0.4.7 ) |
377 |
-" |
378 |
- |
379 |
-DOCS=(AUTHORS NEWS README README-XPDF TODO) |
380 |
- |
381 |
-PATCHES=( |
382 |
- "${FILESDIR}/${PN}-0.26.0-qt5-dependencies.patch" |
383 |
- "${FILESDIR}/${PN}-0.28.1-fix-multilib-configuration.patch" |
384 |
- "${FILESDIR}/${PN}-0.53.0-respect-cflags.patch" |
385 |
- "${FILESDIR}/${PN}-0.33.0-openjpeg2.patch" |
386 |
- "${FILESDIR}/${PN}-0.40-FindQt4.patch" |
387 |
-) |
388 |
- |
389 |
-src_prepare() { |
390 |
- cmake-utils_src_prepare |
391 |
- |
392 |
- # Clang doesn't grok this flag, the configure nicely tests that, but |
393 |
- # cmake just uses it, so remove it if we use clang |
394 |
- if [[ ${CC} == clang ]] ; then |
395 |
- sed -i -e 's/-fno-check-new//' cmake/modules/PopplerMacros.cmake || die |
396 |
- fi |
397 |
- |
398 |
- if ! grep -Fq 'cmake_policy(SET CMP0002 OLD)' CMakeLists.txt ; then |
399 |
- sed '/^cmake_minimum_required/acmake_policy(SET CMP0002 OLD)' \ |
400 |
- -i CMakeLists.txt || die |
401 |
- else |
402 |
- einfo "policy(SET CMP0002 OLD) - workaround can be removed" |
403 |
- fi |
404 |
-} |
405 |
- |
406 |
-src_configure() { |
407 |
- xdg_environment_reset |
408 |
- local mycmakeargs=( |
409 |
- -DBUILD_GTK_TESTS=OFF |
410 |
- -DBUILD_QT4_TESTS=OFF |
411 |
- -DBUILD_QT5_TESTS=OFF |
412 |
- -DBUILD_CPP_TESTS=OFF |
413 |
- -DENABLE_SPLASH=ON |
414 |
- -DENABLE_ZLIB=ON |
415 |
- -DENABLE_ZLIB_UNCOMPRESS=OFF |
416 |
- -DENABLE_XPDF_HEADERS=ON |
417 |
- -DENABLE_LIBCURL="$(usex curl)" |
418 |
- -DENABLE_CPP="$(usex cxx)" |
419 |
- -DENABLE_UTILS="$(usex utils)" |
420 |
- -DSPLASH_CMYK=OFF |
421 |
- -DUSE_FIXEDPOINT=OFF |
422 |
- -DUSE_FLOAT=OFF |
423 |
- -DWITH_Cairo="$(usex cairo)" |
424 |
- -DWITH_GObjectIntrospection="$(usex introspection)" |
425 |
- -DWITH_JPEG="$(usex jpeg)" |
426 |
- -DWITH_NSS3="$(usex nss)" |
427 |
- -DWITH_PNG="$(usex png)" |
428 |
- -DWITH_Qt4="$(usex qt4)" |
429 |
- $(cmake-utils_use_find_package qt5 Qt5Core) |
430 |
- -DWITH_TIFF="$(usex tiff)" |
431 |
- ) |
432 |
- if use jpeg2k; then |
433 |
- mycmakeargs+=(-DENABLE_LIBOPENJPEG=openjpeg2) |
434 |
- else |
435 |
- mycmakeargs+=(-DENABLE_LIBOPENJPEG=) |
436 |
- fi |
437 |
- if use lcms; then |
438 |
- mycmakeargs+=(-DENABLE_CMS=lcms2) |
439 |
- else |
440 |
- mycmakeargs+=(-DENABLE_CMS=) |
441 |
- fi |
442 |
- |
443 |
- cmake-utils_src_configure |
444 |
-} |
445 |
- |
446 |
-src_install() { |
447 |
- cmake-utils_src_install |
448 |
- |
449 |
- # live version doesn't provide html documentation |
450 |
- if use cairo && use doc && [[ ${PV} != 9999 ]]; then |
451 |
- # For now install gtk-doc there |
452 |
- insinto /usr/share/gtk-doc/html/poppler |
453 |
- doins -r "${S}"/glib/reference/html/* |
454 |
- fi |
455 |
-} |