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, 29 Apr 2020 11:37:26
Message-Id: 1588160226.3ad2406360fd9b8e3c08ca3b9f399e8d69f96b6d.asturm@gentoo
1 commit: 3ad2406360fd9b8e3c08ca3b9f399e8d69f96b6d
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 29 11:12:11 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 29 11:37:06 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ad24063
7
8 app-text/poppler: 0.88.0 version bump
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 app-text/poppler/Manifest | 1 +
14 app-text/poppler/poppler-0.88.0.ebuild | 123 +++++++++++++++++++++++++++++++++
15 2 files changed, 124 insertions(+)
16
17 diff --git a/app-text/poppler/Manifest b/app-text/poppler/Manifest
18 index 6a5550e158a..0a7d8076d81 100644
19 --- a/app-text/poppler/Manifest
20 +++ b/app-text/poppler/Manifest
21 @@ -1,2 +1,3 @@
22 DIST poppler-0.85.0.tar.xz 1588616 BLAKE2B d30c16ff214d2b64fade28bb4099567150e99df6ab967702f48e18ed2191e444728f51d4c1ce1772567c31f9b87a8cf64993ebc383184e06f8b3707436c89143 SHA512 2311bde5ae52e065c12a6129f500469860f5ebefafc3f7be581393f08c2121f3eae57394ff54c1f83ee1b926f28c61530bcd8149d42de10a16b9ba7345f2604e
23 DIST poppler-0.87.0.tar.xz 1595088 BLAKE2B 7bce4426b057ae8702399f0f3581ee844df89b01151dff9212e1d2c525847eba7614697ef02cc7278930b5e266e15f62d3b7c5d989951d44c62ee3f8fb9b2835 SHA512 4bdc432c75106b3f37643bfd57c66aba659864fdc3c4d9ffa5089ceaa33ad3bd10d2c4abfb09a4f7b9d7d137e31eb559b440d7df53f35f60d70eaef05f987630
24 +DIST poppler-0.88.0.tar.xz 1604348 BLAKE2B 3c78d15871398fb5f2125596f959d98a173de198c8460907be39ca5c5b91a05f0f4048a6ba01b59edb4643c4fdd2333462edf7ab0e0648cd607ffd2deb5a3b18 SHA512 2c4c1333d5bd7411eb6b05fa1c5967b8577798e439a22b2fd119cf7a8e7d519e04b253464c6892d31bae7483a8bda8492755089cef4131f760f95bc3f4e56880
25
26 diff --git a/app-text/poppler/poppler-0.88.0.ebuild b/app-text/poppler/poppler-0.88.0.ebuild
27 new file mode 100644
28 index 00000000000..0cd5e76d8ec
29 --- /dev/null
30 +++ b/app-text/poppler/poppler-0.88.0.ebuild
31 @@ -0,0 +1,123 @@
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/99" # 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 + )
140 + use cairo && mycmakeargs+=( -DWITH_GObjectIntrospection=$(usex introspection) )
141 +
142 + cmake_src_configure
143 +}
144 +
145 +src_install() {
146 + cmake_src_install
147 +
148 + # live version doesn't provide html documentation
149 + if use cairo && use doc && [[ ${PV} != *9999* ]]; then
150 + # For now install gtk-doc there
151 + insinto /usr/share/gtk-doc/html/poppler
152 + doins -r "${S}"/glib/reference/html/*
153 + fi
154 +}