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: Sat, 09 Feb 2019 09:52:24
Message-Id: 1549705919.55b12af933ffd19ee2ffde2bc7c0b24123dfc5b7.asturm@gentoo
1 commit: 55b12af933ffd19ee2ffde2bc7c0b24123dfc5b7
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 8 20:20:34 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 9 09:51:59 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55b12af9
7
8 app-text/poppler: 0.74.0 version bump
9
10 Package-Manager: Portage-2.3.59, Repoman-2.3.12
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 app-text/poppler/Manifest | 1 +
14 app-text/poppler/poppler-0.74.0.ebuild | 127 +++++++++++++++++++++++++++++++++
15 2 files changed, 128 insertions(+)
16
17 diff --git a/app-text/poppler/Manifest b/app-text/poppler/Manifest
18 index 5b781522168..a79b002abed 100644
19 --- a/app-text/poppler/Manifest
20 +++ b/app-text/poppler/Manifest
21 @@ -2,3 +2,4 @@ DIST poppler-0.68.0.tar.xz 1461052 BLAKE2B e95aa872230ff88f2caf9b8fef7da369b3115
22 DIST poppler-0.71.0.tar.xz 1480852 BLAKE2B be23100e44f73cd024d50727a632b749629b6e36ef41d2aee94f1998a8362dd0fa11e64bfb0f0f04f87265029abec32088ef2dad3b5aeb2733c44447aaeb6817 SHA512 8e0ce95e7b58c37761c36a20f1282e63373a9557bf9f746ce2936562f12648506043d9559cf816944aa238814fc1b3f3a3c0a6cb002fd214b067e399bcc6ab1e
23 DIST poppler-0.72.0.tar.xz 1492912 BLAKE2B 6582b418031c52e5e9031e9f25b80841ba471c1308030bef2cdb13cd607ddd0ca51639d93c09f33e42d5f9378ee44b5ebe4dbac29254f952f7c2ec147799bc5e SHA512 57dc98ff3e433cb8c7e3c31016c080e09586410622d70fb2fe1aa36c2a55017508dd5b5b253cfe987b86f9197bdd34345e038c89f542003cf021900c86614145
24 DIST poppler-0.73.0.tar.xz 1507068 BLAKE2B d88a7595d0d8b779d623b56d8dc25c753f2cfc6f015092ec9d254a2b2d701d0e760a069324a15d3a03c65c9c85c3398ad142d7f8cc259e5455f53b4d391596d3 SHA512 6924a343032573504a0039c56a6263cd1183fa6aca75966fe1f084bd19da78553e455e541a3693896c1ed0c3865f11c11758a0f5a66b2f6cd48ac8a7eccf891a
25 +DIST poppler-0.74.0.tar.xz 1514044 BLAKE2B af3821d5a5c68a3f2541cd9468fd7318ad0182cda66cea068dc42208fef6c2af78a401e50a6a5906cdc943de7339620937ddc6f69f0d8d1b15082aabc6cc3482 SHA512 4e48e2ffb559863ee693930db3b8594fd7e60e4b4ca3cdeb198faf90a6f4dbb5e102461492a12058221bc1218fe7e17c9085afb9e7956ae4bf26c11674315e66
26
27 diff --git a/app-text/poppler/poppler-0.74.0.ebuild b/app-text/poppler/poppler-0.74.0.ebuild
28 new file mode 100644
29 index 00000000000..d6fdf5f55a3
30 --- /dev/null
31 +++ b/app-text/poppler/poppler-0.74.0.ebuild
32 @@ -0,0 +1,127 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit cmake-utils flag-o-matic 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 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
47 + SLOT="0/85" # 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 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.71.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-utils_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 + # we need to up the C++ version, bug #622526, #643278
116 + append-cxxflags -std=c++11
117 +}
118 +
119 +src_configure() {
120 + xdg_environment_reset
121 + local mycmakeargs=(
122 + -DBUILD_GTK_TESTS=OFF
123 + -DBUILD_QT5_TESTS=OFF
124 + -DBUILD_CPP_TESTS=OFF
125 + -DENABLE_SPLASH=ON
126 + -DENABLE_ZLIB=ON
127 + -DENABLE_ZLIB_UNCOMPRESS=OFF
128 + -DENABLE_UNSTABLE_API_ABI_HEADERS=ON
129 + -DSPLASH_CMYK=OFF
130 + -DUSE_FIXEDPOINT=OFF
131 + -DUSE_FLOAT=OFF
132 + -DWITH_Cairo=$(usex cairo)
133 + -DENABLE_LIBCURL=$(usex curl)
134 + -DENABLE_CPP=$(usex cxx)
135 + -DWITH_JPEG=$(usex jpeg)
136 + -DENABLE_DCTDECODER=$(usex jpeg libjpeg none)
137 + -DENABLE_LIBOPENJPEG=$(usex jpeg2k openjpeg2 none)
138 + -DENABLE_CMS=$(usex lcms lcms2 none)
139 + -DWITH_NSS3=$(usex nss)
140 + -DWITH_PNG=$(usex png)
141 + $(cmake-utils_use_find_package qt5 Qt5Core)
142 + -DWITH_TIFF=$(usex tiff)
143 + -DENABLE_UTILS=$(usex utils)
144 + )
145 + use cairo && mycmakeargs+=( -DWITH_GObjectIntrospection=$(usex introspection) )
146 +
147 + cmake-utils_src_configure
148 +}
149 +
150 +src_install() {
151 + cmake-utils_src_install
152 +
153 + # live version doesn't provide html documentation
154 + if use cairo && use doc && [[ ${PV} != *9999* ]]; then
155 + # For now install gtk-doc there
156 + insinto /usr/share/gtk-doc/html/poppler
157 + doins -r "${S}"/glib/reference/html/*
158 + fi
159 +}