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: Wed, 01 May 2019 10:37:51
Message-Id: 1556707057.aaef8d240f9d37ffc69d777c582ab6ee09c094d1.asturm@gentoo
1 commit: aaef8d240f9d37ffc69d777c582ab6ee09c094d1
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 1 10:35:00 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed May 1 10:37:37 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aaef8d24
7
8 app-text/poppler: 0.76.1 version bump
9
10 Package-Manager: Portage-2.3.66, 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.76.1.ebuild | 127 +++++++++++++++++++++++++++++++++
15 2 files changed, 128 insertions(+)
16
17 diff --git a/app-text/poppler/Manifest b/app-text/poppler/Manifest
18 index 46f7db3c5de..a6d9205ac25 100644
19 --- a/app-text/poppler/Manifest
20 +++ b/app-text/poppler/Manifest
21 @@ -1,3 +1,4 @@
22 DIST poppler-0.74.0.tar.xz 1514044 BLAKE2B af3821d5a5c68a3f2541cd9468fd7318ad0182cda66cea068dc42208fef6c2af78a401e50a6a5906cdc943de7339620937ddc6f69f0d8d1b15082aabc6cc3482 SHA512 4e48e2ffb559863ee693930db3b8594fd7e60e4b4ca3cdeb198faf90a6f4dbb5e102461492a12058221bc1218fe7e17c9085afb9e7956ae4bf26c11674315e66
23 DIST poppler-0.75.0.tar.xz 1523872 BLAKE2B 245f574e985570a1d0923e732da8694728506fc59382c9e4532159867e1b18ad9f03f6b995891796d72a6e401d2c86ac18403c9219bf533e36c8a07a1dc85d61 SHA512 6a1b76cc5095b7c5809eaa5072aeb4ea615744ff8ffce537f40a3f73a81fc12cc18d596876ceda1c78b5312ad20535f72366e69c861b620d108616f24a98e6b8
24 DIST poppler-0.76.0.tar.xz 1530264 BLAKE2B 6496b7e069c98b8ac0bdb9001abd96bf0d71129e436813f4c91832f732e9ae6e125dd1adf49c238cad095185ecdeb47f7efc70b39a03309964dc2bb8552bf4e6 SHA512 bff0dacfabcfb6d4843d3dbc526e45eca85c1e043734d4cd2adb11c025c432559a26d59427169e2172a89e1d7d2bd6cad773688d11410495c6dcda108cf5ca9c
25 +DIST poppler-0.76.1.tar.xz 1531548 BLAKE2B edbd9c1be99aadf4f14608a1e0dc58a2fed351b10e18aa3c006f4e54cf0f2082deaded9c67a0181bb0f012bcbc550f1208e8a632df9cbe26261b735ca44cde60 SHA512 e4af2785948ecc89c105ab00269b0072b33feea25224e5beb158d515b1de789f979084bed2d4260c9659382cf437c25c0baf2444f5b4fbbba5c58afeb707b7ac
26
27 diff --git a/app-text/poppler/poppler-0.76.1.ebuild b/app-text/poppler/poppler-0.76.1.ebuild
28 new file mode 100644
29 index 00000000000..61a50816fcf
30 --- /dev/null
31 +++ b/app-text/poppler/poppler-0.76.1.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/87" # 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 +}